]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliAnalysisEventCuts.h
New Calibration and Trigger classes included
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisEventCuts.h
CommitLineData
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
cd286c84 15#include <TObject.h>
16
7fe612db 17class TPaveText;
18class AliESD;
cd286c84 19
20class AliAnalysisEventCuts : public TObject
21{
cd286c84 22 public:
23 AliAnalysisEventCuts();
24
25 ~AliAnalysisEventCuts();
26
27 void Reset();
28
29 void SetPrimaryVertexXRange(Float_t r1, Float_t r2);
30 void SetPrimaryVertexYRange(Float_t r1, Float_t r2);
31 void SetPrimaryVertexZRange(Float_t r1, Float_t r2);
32 void SetMultiplicityRange(Int_t n1, Int_t n2);
33
34 Bool_t IsAccepted(AliESD *esd);
35
36 TPaveText *GetEventCuts();
37 void PrintEventCuts();
38 void GetEventStats();
39 void GetMultStats();
40 void GetVxStats();
41 void GetVyStats();
42 void GetVzStats();
43
7fe612db 44 private:
45 Float_t fVxMin, fVxMax; //Definition of the range of the Vx
46 Float_t fVyMin, fVyMax; //Definition of the range of the Vy
47 Float_t fVzMin, fVzMax; //Definition of the range of the Vz
48 Int_t fMultMin, fMultMax; //Definition of the range of the multiplicity
49
50 Int_t fMult; //Number of events rejected due to multiplicity cut
51 Int_t fVx; //Number of events rejected due to Vx cut
52 Int_t fVy; //Number of events rejected due to Vy cut
53 Int_t fVz; //Number of events rejected due to Vz cut
54 Int_t fTotalEvents; //Total number of events
55 Int_t fAcceptedEvents; //Total number of events accepted
56
57 Int_t fFlagMult; //Flag that shows if the multiplicity cut was imposed
58 Int_t fFlagVx; //Flag that shows if the Vx cut was imposed
59 Int_t fFlagVy; //Flag that shows if the Vy cut was imposed
60 Int_t fFlagVz; //Flag that shows ifthe Vz cut was imposed
cd286c84 61
62 ClassDef(AliAnalysisEventCuts, 1)
63} ;
64
65#endif