![]() |
AliPhysics
7c9d977 (7c9d977)
|
Count events with different selection criteria. More...
#include <AliAnalysisTaskCounter.h>
Public Member Functions | |
AliAnalysisTaskCounter () | |
Default Constructor. More... | |
AliAnalysisTaskCounter (const char *name) | |
Constructor. More... | |
virtual | ~AliAnalysisTaskCounter () |
Destructor. More... | |
virtual void | UserCreateOutputObjects () |
Init histogram pointers and add them to container. More... | |
virtual void | UserExec (Option_t *option) |
virtual void | FinishTaskOutput () |
Put in the output some event summary histograms. More... | |
virtual Bool_t | Notify () |
void | SetTrackMultiplicityEtaCut (Float_t eta) |
void | SetZVertexCut (Float_t vcut) |
void | AcceptFastCluster () |
void | RejectFastCluster () |
Bool_t | IsFastClusterAccepted () const |
Bool_t | CheckForPrimaryVertex () |
void | SwitchOnMCCrossSectionCalculation () |
void | SwitchOffMCCrossSectionCalculation () |
void | SwitchOnAliCentrality () |
void | SwitchOffAliCentrality () |
void | SetCentralityClass (TString name) |
TString | GetCentralityClass () const |
Static Public Member Functions | |
static Bool_t | PythiaInfoFromFile (TString currFile, Float_t &xsec, Float_t &trials) |
Private Member Functions | |
AliAnalysisTaskCounter (const AliAnalysisTaskCounter &) | |
Copy constructor not implemented. More... | |
AliAnalysisTaskCounter & | operator= (const AliAnalysisTaskCounter &) |
Assignment operator not implemented. More... | |
Private Attributes | |
Bool_t | fAcceptFastCluster |
Accept events from fast cluster, exclude these events for LHC11a. More... | |
Float_t | fZVertexCut |
Z vertex cut. More... | |
Float_t | fTrackMultEtaCut |
Track multiplicity eta cut. More... | |
Float_t | fAvgTrials |
Average number of event trials. More... | |
TList * | fOutputContainer |
! Histogram container. More... | |
AliESDtrackCuts * | fESDtrackCuts |
Track cut. More... | |
TString | fCurrFileName |
Current file path name. More... | |
Bool_t | fCheckMCCrossSection |
Retrieve from the pyxsec.root file only if requested. More... | |
Bool_t | fUseAliCentrality |
Use the centrality estimator from AliCentrality or AliMultSelection. More... | |
TString | fCentralityClass |
Multiplicity percentile/centrality estimator, for ex. V0M. More... | |
TH1I * | fhNEvents |
! Events that delivers the analysis frame after different assumptions. More... | |
TH1F * | fhXVertex |
! X Vertex distribution. More... | |
TH1F * | fhYVertex |
! Y Vertex distribution. More... | |
TH1F * | fhZVertex |
! Z Vertex distribution. More... | |
TH1F * | fhXGoodVertex |
! X Vertex distribution, after event selection. More... | |
TH1F * | fhYGoodVertex |
! Y Vertex distribution, after event selection. More... | |
TH1F * | fhZGoodVertex |
! Z Vertex distribution, after event selection. More... | |
TH1F * | fhCentrality |
! Centrality. More... | |
TH1F * | fhEventPlaneAngle |
! Event plane angle. More... | |
TH1F * | fh1Xsec |
! Cross section in PYTHIA. More... | |
TH1F * | fh1Trials |
! Number of event trials in PYTHIA. More... | |
Count events with different selection criteria.
It produces a histogram, fhNEvents, with the number of events with 9 bins representing different selection criteria:
Other histograms:
This class also recovers the cross section and number of trials in case of MC PYTHIA productions done in pT-hard bins, and stores them in a histogram fh1Xsec and fh1Trials
Definition at line 56 of file AliAnalysisTaskCounter.h.
AliAnalysisTaskCounter::AliAnalysisTaskCounter | ( | ) |
Default Constructor.
Definition at line 69 of file AliAnalysisTaskCounter.cxx.
AliAnalysisTaskCounter::AliAnalysisTaskCounter | ( | const char * | name | ) |
Constructor.
Definition at line 46 of file AliAnalysisTaskCounter.cxx.
|
virtual |
Destructor.
Definition at line 91 of file AliAnalysisTaskCounter.cxx.
|
private |
Copy constructor not implemented.
|
inline |
Definition at line 79 of file AliAnalysisTaskCounter.h.
Bool_t AliAnalysisTaskCounter::CheckForPrimaryVertex | ( | ) |
Check if the vertex was well reconstructed, copy of PCM.
Definition at line 410 of file AliAnalysisTaskCounter.cxx.
Referenced by IsFastClusterAccepted(), and UserExec().
|
virtual |
Put in the output some event summary histograms.
Definition at line 469 of file AliAnalysisTaskCounter.cxx.
|
inline |
Definition at line 92 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 81 of file AliAnalysisTaskCounter.h.
|
virtual |
Implemented Notify() to read the cross sections and number of trials from pyxsec.root, values stored in specific histograms.
Definition at line 491 of file AliAnalysisTaskCounter.cxx.
Referenced by UserExec().
|
private |
Assignment operator not implemented.
|
static |
This method gets and returns the
file | : either pyxsec.root (ESDs) or pysec_hists.root (AODs) files |
xsec | : cross section |
trials | : number of event trials that should be located where the main data file is. This is called in Notify and should provide the path to the AOD/ESD file |
Definition at line 584 of file AliAnalysisTaskCounter.cxx.
Referenced by Notify().
|
inline |
Definition at line 80 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 91 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 76 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 77 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 89 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 86 of file AliAnalysisTaskCounter.h.
Referenced by AddTaskCounter().
|
inline |
Definition at line 88 of file AliAnalysisTaskCounter.h.
|
inline |
Definition at line 85 of file AliAnalysisTaskCounter.h.
Referenced by AddTaskCounter().
|
virtual |
Init histogram pointers and add them to container.
Definition at line 110 of file AliAnalysisTaskCounter.cxx.
|
virtual |
Main event loop It does the event counting, depending on different cuts (see criteria in class description). It fills the event vertex, centrality and plane histograms
Definition at line 196 of file AliAnalysisTaskCounter.cxx.
|
private |
Accept events from fast cluster, exclude these events for LHC11a.
Definition at line 96 of file AliAnalysisTaskCounter.h.
Referenced by AcceptFastCluster(), IsFastClusterAccepted(), RejectFastCluster(), and UserExec().
|
private |
Average number of event trials.
Definition at line 99 of file AliAnalysisTaskCounter.h.
Referenced by Notify().
|
private |
Multiplicity percentile/centrality estimator, for ex. V0M.
Definition at line 106 of file AliAnalysisTaskCounter.h.
Referenced by GetCentralityClass(), SetCentralityClass(), and UserExec().
|
private |
Retrieve from the pyxsec.root file only if requested.
Definition at line 104 of file AliAnalysisTaskCounter.h.
Referenced by Notify(), SwitchOffMCCrossSectionCalculation(), SwitchOnMCCrossSectionCalculation(), and UserCreateOutputObjects().
|
private |
Current file path name.
Definition at line 103 of file AliAnalysisTaskCounter.h.
Referenced by Notify().
|
private |
Track cut.
Definition at line 101 of file AliAnalysisTaskCounter.h.
Referenced by UserExec(), and ~AliAnalysisTaskCounter().
|
private |
! Number of event trials in PYTHIA.
Definition at line 122 of file AliAnalysisTaskCounter.h.
Referenced by Notify(), and UserCreateOutputObjects().
|
private |
! Cross section in PYTHIA.
Definition at line 121 of file AliAnalysisTaskCounter.h.
Referenced by Notify(), and UserCreateOutputObjects().
|
private |
! Centrality.
Definition at line 118 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Event plane angle.
Definition at line 119 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Events that delivers the analysis frame after different assumptions.
Definition at line 111 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! X Vertex distribution, after event selection.
Definition at line 115 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! X Vertex distribution.
Definition at line 112 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Y Vertex distribution, after event selection.
Definition at line 116 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Y Vertex distribution.
Definition at line 113 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Z Vertex distribution, after event selection.
Definition at line 117 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Z Vertex distribution.
Definition at line 114 of file AliAnalysisTaskCounter.h.
Referenced by UserCreateOutputObjects(), and UserExec().
|
private |
! Histogram container.
Definition at line 100 of file AliAnalysisTaskCounter.h.
Referenced by FinishTaskOutput(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskCounter().
|
private |
Track multiplicity eta cut.
Definition at line 98 of file AliAnalysisTaskCounter.h.
Referenced by SetTrackMultiplicityEtaCut(), and UserExec().
|
private |
Use the centrality estimator from AliCentrality or AliMultSelection.
Definition at line 105 of file AliAnalysisTaskCounter.h.
Referenced by SwitchOffAliCentrality(), SwitchOnAliCentrality(), and UserExec().
|
private |
Z vertex cut.
Definition at line 97 of file AliAnalysisTaskCounter.h.
Referenced by SetZVertexCut(), and UserExec().