AliPhysics  58f3d52 (58f3d52)
 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 //_________________________________________________________________________
45 //_________________________________________________________________________
46 
47 
48 class TH1F;
49 class TList;
50 class AliESDtrackCuts;
51 class AliGenPythiaEventHeader;
52 //class AliTriggerAnalysis;
53 
54 #include "AliAnalysisTaskSE.h"
55 
57 
58  public:
59 
61 
62  AliAnalysisTaskCounter(const char *name);
63 
64  virtual ~AliAnalysisTaskCounter();
65 
66  virtual void UserCreateOutputObjects();
67 
68  virtual void UserExec(Option_t *option);
69 
70  virtual void FinishTaskOutput();
71 
72  virtual Bool_t Notify();
73 
74  static Bool_t PythiaInfoFromFile(TString currFile, Float_t & xsec, Float_t & trials) ;
75 
77  void SetZVertexCut(Float_t vcut) { fZVertexCut = vcut ; }
78 
80  void RejectFastCluster() { fAcceptFastCluster = kFALSE ; }
82 
84 
87 
90 
93 
94  private:
95 
101  AliESDtrackCuts * fESDtrackCuts;
102 //AliTriggerAnalysis * fTriggerAnalysis; ///< Trigger algorithm.
107 
108  //
109  // Histograms
110  //
112  TH1F * fhXVertex;
113  TH1F * fhYVertex;
114  TH1F * fhZVertex;
115  TH1F * fhXGoodVertex;
116  TH1F * fhYGoodVertex;
117  TH1F * fhZGoodVertex;
118  TH1F * fhCentrality;
120 
121  TH1F * fh1Xsec ;
122  TH1F * fh1Trials ;
123 
126 
129 
131  ClassDef(AliAnalysisTaskCounter, 7) ;
133 
134 };
135 
136 #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.
Definition: External.C:204
Float_t fTrackMultEtaCut
Track multiplicity eta cut.
float Float_t
Definition: External.C:68
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.
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
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.