]>
Commit | Line | Data |
---|---|---|
cd286c84 | 1 | #ifndef ALIANALYSISEVENTCUTS_H |
2 | #define ALIANALYSISEVENTCUTS_H | |
3 | /* See cxx source for full Copyright notice */ | |
4 | ||
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // Class AliAnalysisEventCuts | |
10 | // This is the class for the cuts in event & track level | |
11 | // | |
12 | // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | #include <TPaveText.h> | |
16 | #include <TROOT.h> | |
17 | #include <TObject.h> | |
18 | ||
19 | #include "AliESD.h" | |
20 | ||
21 | class AliAnalysisEventCuts : public TObject | |
22 | { | |
23 | private: | |
24 | Float_t fVxMin, fVxMax; //Definition of the range of the Vx | |
25 | Float_t fVyMin, fVyMax; //Definition of the range of the Vy | |
26 | Float_t fVzMin, fVzMax; //Definition of the range of the Vz | |
27 | Int_t fMultMin, fMultMax; //Definition of the range of the multiplicity | |
28 | ||
29 | Int_t fMult; //Number of events rejected due to multiplicity cut | |
30 | Int_t fVx; //Number of events rejected due to Vx cut | |
31 | Int_t fVy; //Number of events rejected due to Vy cut | |
32 | Int_t fVz; //Number of events rejected due to Vz cut | |
33 | Int_t fTotalEvents; //Total number of events | |
34 | Int_t fAcceptedEvents; //Total number of events accepted | |
35 | ||
36 | Int_t fFlagMult; //Flag that shows if the multiplicity cut was imposed | |
37 | Int_t fFlagVx; //Flag that shows if the Vx cut was imposed | |
38 | Int_t fFlagVy; //Flag that shows if the Vy cut was imposed | |
39 | Int_t fFlagVz; //Flag that shows ifthe Vz cut was imposed | |
40 | ||
41 | ||
42 | public: | |
43 | AliAnalysisEventCuts(); | |
44 | ||
45 | ~AliAnalysisEventCuts(); | |
46 | ||
47 | void Reset(); | |
48 | ||
49 | void SetPrimaryVertexXRange(Float_t r1, Float_t r2); | |
50 | void SetPrimaryVertexYRange(Float_t r1, Float_t r2); | |
51 | void SetPrimaryVertexZRange(Float_t r1, Float_t r2); | |
52 | void SetMultiplicityRange(Int_t n1, Int_t n2); | |
53 | ||
54 | Bool_t IsAccepted(AliESD *esd); | |
55 | ||
56 | TPaveText *GetEventCuts(); | |
57 | void PrintEventCuts(); | |
58 | void GetEventStats(); | |
59 | void GetMultStats(); | |
60 | void GetVxStats(); | |
61 | void GetVyStats(); | |
62 | void GetVzStats(); | |
63 | ||
64 | ||
65 | ClassDef(AliAnalysisEventCuts, 1) | |
66 | } ; | |
67 | ||
68 | #endif |