AliPhysics  vAN-20150630 (513c479)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 AliTriggerAnalysis;
51 
52 #include "AliAnalysisTaskSE.h"
53 
54 class AliAnalysisTaskCounter : public AliAnalysisTaskSE {
55 
56  public:
57 
59 
60  AliAnalysisTaskCounter(const char *name);
61 
62  virtual ~AliAnalysisTaskCounter();
63 
64  virtual void UserCreateOutputObjects();
65 
66  virtual void UserExec(Option_t *option);
67 
68  virtual void FinishTaskOutput();
69 
70  virtual Bool_t Notify();
71 
72  static Bool_t PythiaInfoFromFile(TString currFile, Float_t & xsec, Float_t & trials) ;
73 
74  void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
75  void SetZVertexCut(Float_t vcut) { fZVertexCut = vcut ; }
76 
78  void RejectFastCluster() { fAcceptFastCluster = kFALSE ; }
79  Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
80 
81  Bool_t CheckForPrimaryVertex() ;
82 
85 
86  private:
87 
89  Float_t fZVertexCut;
90  Float_t fTrackMultEtaCut;
91  Float_t fAvgTrials;
93  AliESDtrackCuts * fESDtrackCuts;
94 //AliTriggerAnalysis * fTriggerAnalysis; ///< Trigger algorithm.
95  TString fCurrFileName;
97 
98  //Histograms
99  TH1I * fhNEvents;
100  TH1F * fhXVertex;
101  TH1F * fhYVertex;
102  TH1F * fhZVertex;
103  TH1F * fhXGoodVertex;
104  TH1F * fhYGoodVertex;
105  TH1F * fhZGoodVertex;
106  TH1F * fhCentrality;
108 
109  TH1F * fh1Xsec ;
110  TH1F * fh1Trials ;
111 
114 
117 
119  ClassDef(AliAnalysisTaskCounter, 6) ;
121 
122 };
123 
124 #endif //ALIANALYSISTASKCOUNTER_H
virtual void UserExec(Option_t *option)
Count events with different selection criteria.
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.
TH1F * fhZGoodVertex
! Z Vertex distribution, after event selection.
void SetTrackMultiplicityEtaCut(Float_t eta)
void SetZVertexCut(Float_t vcut)
AliESDtrackCuts * fESDtrackCuts
Track cut.
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.
TH1F * fhYGoodVertex
! Y Vertex distribution, after event selection.
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.