AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskCounter.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKCOUNTER_H
2 #define ALIANALYSISTASKCOUNTER_H
3 
4 //_________________________________________________________________________
44 //_________________________________________________________________________
45 
46 
47 class TH1F;
48 class TList;
49 class AliESDtrackCuts;
50 class AliGenPythiaEventHeader;
51 //class AliTriggerAnalysis;
52 
53 #include "AliAnalysisTaskSE.h"
54 
55 class AliAnalysisTaskCounter : public AliAnalysisTaskSE {
56 
57  public:
58 
60 
61  AliAnalysisTaskCounter(const char *name);
62 
63  virtual ~AliAnalysisTaskCounter();
64 
65  virtual void UserCreateOutputObjects();
66 
67  virtual void UserExec(Option_t *option);
68 
69  virtual void FinishTaskOutput();
70 
71  virtual Bool_t Notify();
72 
73  static Bool_t PythiaInfoFromFile(TString currFile, Float_t & xsec, Float_t & trials) ;
74 
75  void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
76  void SetZVertexCut(Float_t vcut) { fZVertexCut = vcut ; }
77 
79  void RejectFastCluster() { fAcceptFastCluster = kFALSE ; }
80  Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
81 
82  Bool_t CheckForPrimaryVertex() ;
83 
86 
89 
90  void SetCentralityClass(TString name) { fCentralityClass = name ; }
91  TString GetCentralityClass() const { return fCentralityClass ; }
92 
93  private:
94 
96  Float_t fZVertexCut;
97  Float_t fTrackMultEtaCut;
98  Float_t fAvgTrials;
100  AliESDtrackCuts * fESDtrackCuts;
101 //AliTriggerAnalysis * fTriggerAnalysis; ///< Trigger algorithm.
102  TString fCurrFileName;
106 
107  //
108  // Histograms
109  //
110  TH1I * fhNEvents;
111  TH1F * fhXVertex;
112  TH1F * fhYVertex;
113  TH1F * fhZVertex;
114  TH1F * fhXGoodVertex;
115  TH1F * fhYGoodVertex;
116  TH1F * fhZGoodVertex;
117  TH1F * fhCentrality;
119 
120  TH1F * fh1Xsec ;
121  TH1F * fh1Trials ;
122 
125 
128 
130  ClassDef(AliAnalysisTaskCounter, 7) ;
132 
133 };
134 
135 #endif //ALIANALYSISTASKCOUNTER_H
virtual void UserExec(Option_t *option)
Count events with different selection criteria.
void SetCentralityClass(TString name)
virtual void UserCreateOutputObjects()
Init histogram pointers and add them to container.
TH1F * fhXGoodVertex
! X Vertex distribution, after event selection.
virtual void FinishTaskOutput()
Put in the output some event summary histograms.
static Bool_t PythiaInfoFromFile(TString currFile, Float_t &xsec, Float_t &trials)
TH1F * fhZVertex
! Z Vertex distribution.
TString fCurrFileName
Current file path name.
TH1F * fhCentrality
! Centrality.
Bool_t fAcceptFastCluster
Accept events from fast cluster, exclude these events for LHC11a.
Float_t fZVertexCut
Z vertex cut.
Float_t fTrackMultEtaCut
Track multiplicity eta cut.
TString fCentralityClass
Multiplicity percentile/centrality estimator, for ex. V0M.
TH1F * fhZGoodVertex
! Z Vertex distribution, after event selection.
void SetTrackMultiplicityEtaCut(Float_t eta)
void SetZVertexCut(Float_t vcut)
AliESDtrackCuts * fESDtrackCuts
Track cut.
AliAnalysisTaskCounter()
Default Constructor.
virtual ~AliAnalysisTaskCounter()
Destructor.
Bool_t fCheckMCCrossSection
Retrieve from the pyxsec.root file only if requested.
AliAnalysisTaskCounter & operator=(const AliAnalysisTaskCounter &)
Assignment operator not implemented.
TH1F * fh1Xsec
! Cross section in PYTHIA.
TH1F * fhYVertex
! Y Vertex distribution.
TH1I * fhNEvents
! Events that delivers the analysis frame after different assumptions.
Bool_t IsFastClusterAccepted() const
TList * fOutputContainer
! Histogram container.
TString GetCentralityClass() const
TH1F * fhYGoodVertex
! Y Vertex distribution, after event selection.
Bool_t fUseAliCentrality
Use the centrality estimator from AliCentrality or AliMultSelection.
TH1F * fhXVertex
! X Vertex distribution.
TH1F * fh1Trials
! Number of event trials in PYTHIA.
TH1F * fhEventPlaneAngle
! Event plane angle.
Float_t fAvgTrials
Average number of event trials.