]>
Commit | Line | Data |
---|---|---|
1ee39b3a | 1 | #ifndef ALITRDINFOGEN_H |
2 | #define ALITRDINFOGEN_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliTRDinfoGen.h 27496 2008-07-22 08:35:45Z cblume $ */ | |
7 | ||
8 | //////////////////////////////////////////////////////////////////////////// | |
9 | // // | |
705f8b0a | 10 | // TRD Performance tender wagon // |
1ee39b3a | 11 | // // |
12 | //////////////////////////////////////////////////////////////////////////// | |
13 | ||
705f8b0a | 14 | #ifndef ALIANALYSISTASKSE_H |
15 | #include "AliAnalysisTaskSE.h" | |
3f19c2cd | 16 | #endif |
17 | ||
1ee39b3a | 18 | class AliESDEvent; |
19 | class AliMCEvent; | |
20 | class AliESDfriend; | |
21 | class AliTRDtrackInfo; | |
22 | class AliTRDeventInfo; | |
23 | class AliTRDv0Info; | |
07ece31c | 24 | class AliTRDeventCuts; |
25 | class AliESDtrackCuts; | |
1ee39b3a | 26 | class TObjArray; |
705f8b0a | 27 | class TString; |
1ee39b3a | 28 | class TTreeSRedirector; |
fd7ffd88 | 29 | class AliTRDReconstructor; |
30 | class AliTRDgeometry; | |
705f8b0a | 31 | class AliTRDinfoGen : public AliAnalysisTaskSE |
32 | { | |
1ee39b3a | 33 | public: |
3f19c2cd | 34 | enum AliTRDinfoGenSteeringBits{ |
705f8b0a | 35 | kMCdata = BIT(18) |
36 | ,kUseLocalEvSelection = BIT(19) | |
37 | ,kUseLocalTrkSelection = BIT(20) | |
38 | ,kCollision = BIT(21) | |
801d4d50 | 39 | ,kOCDB = BIT(22) |
3f19c2cd | 40 | }; |
705f8b0a | 41 | |
1ee39b3a | 42 | AliTRDinfoGen(); |
f8f46e4d | 43 | AliTRDinfoGen(char* name); |
1ee39b3a | 44 | virtual ~AliTRDinfoGen(); |
45 | ||
b4414720 | 46 | void ConnectInputData(Option_t *opt) {AliAnalysisTaskSE::ConnectInputData(opt);} |
3d2a3dff | 47 | static Float_t GetEndITS() { return fgkITS;} |
48 | static Float_t GetEndTPC() { return fgkTPC;} | |
49 | static Float_t GetEndTRD() { return fgkTRD;} | |
058c3053 | 50 | Int_t GetNRefFigures() const { return 1;} |
801d4d50 | 51 | const char* GetOCDB() const {return fOCDB.Data();} |
058c3053 | 52 | Bool_t GetRefFigure(Int_t ifig); |
53 | Bool_t Load(const Char_t *fn="AnalysisResults.root", const Char_t *dir="TRD_Performance", const Char_t *name=NULL); | |
1ee39b3a | 54 | |
705f8b0a | 55 | Bool_t HasMCdata() const { return TestBit(kMCdata);}; |
058c3053 | 56 | // temporary until check with AliAnalysisTaskSE collision selection mechanism |
801d4d50 | 57 | Bool_t IsInitOCDB() const {return TestBit(kOCDB);} |
3f19c2cd | 58 | Bool_t IsCollision() const {return TestBit(kCollision);} |
fd7ffd88 | 59 | static const AliTRDReconstructor* Reconstructor() {return fgReconstructor;} |
60 | static AliTRDgeometry* Geometry() {return fgGeo;} | |
801d4d50 | 61 | void SetInitOCDB(Bool_t set=kTRUE) {SetBit(kOCDB, set);} |
3f19c2cd | 62 | void SetCollision(Bool_t set=kTRUE) {SetBit(kCollision, set);} |
61f6b45e | 63 | //void SetLocalEvSelection(const AliTRDeventCuts */*cut*/){;} |
3f19c2cd | 64 | void SetLocalEvSelection(Bool_t use=kTRUE) {SetBit(kUseLocalEvSelection, use);} |
61f6b45e | 65 | //void SetLocalTrkSelection(const AliESDtrackCuts */*cut*/){;} |
3f19c2cd | 66 | void SetLocalTrkSelection(Bool_t use=kTRUE) {SetBit(kUseLocalTrkSelection, use);} |
61f6b45e | 67 | void SetLocalV0Selection(const AliTRDv0Info *v0); |
705f8b0a | 68 | void SetMCdata(Bool_t mc = kTRUE) {SetBit(kMCdata, mc);} |
801d4d50 | 69 | void SetOCDB(const char *ocdb) {fOCDB=ocdb;} |
705f8b0a | 70 | void SetTrigger(const Char_t *trigger); |
3f19c2cd | 71 | |
72 | Bool_t UseLocalEvSelection() const {return TestBit(kUseLocalEvSelection);} | |
73 | Bool_t UseLocalTrkSelection() const {return TestBit(kUseLocalTrkSelection);} | |
705f8b0a | 74 | void UserCreateOutputObjects(); |
75 | void UserExec(Option_t *); | |
3f19c2cd | 76 | |
1ee39b3a | 77 | private: |
3f19c2cd | 78 | // rough radial limits for TRD |
3d2a3dff | 79 | static const Float_t fgkITS; // end ITS |
3f19c2cd | 80 | static const Float_t fgkTPC; // end TPC |
3d2a3dff | 81 | static const Float_t fgkTRD; // end TRD |
82 | ||
3f19c2cd | 83 | // Trigger selection |
705f8b0a | 84 | TString *fEvTrigger; // list of trigger classes separated by space |
3f19c2cd | 85 | // Vertex selection |
86 | static const Float_t fgkEvVertexZ;// cm | |
87 | static const Int_t fgkEvVertexN;// cm | |
88 | // Track selection | |
89 | static const Float_t fgkTrkDCAxy; // cm | |
90 | static const Float_t fgkTrkDCAz; // cm | |
91 | static const Int_t fgkNclTPC; // N clusters TPC | |
92 | static const Float_t fgkPt; // min. pt | |
93 | static const Float_t fgkEta; // eta range | |
fd7ffd88 | 94 | static AliTRDReconstructor *fgReconstructor; // single instance of TRD reconstructor used by all tasks |
95 | static AliTRDgeometry *fgGeo; // single instance of TRD geometry used by all tasks | |
96 | ||
1ee39b3a | 97 | AliTRDinfoGen(const AliTRDinfoGen&); |
98 | AliTRDinfoGen& operator=(const AliTRDinfoGen&); | |
705f8b0a | 99 | TTreeSRedirector* DebugStream(); |
1ee39b3a | 100 | |
101 | AliESDEvent *fESDev; //! ESD event | |
102 | AliMCEvent *fMCev; //! MC event | |
07ece31c | 103 | // event/track cuts OO - to be used |
104 | AliTRDeventCuts *fEventCut; // event cut | |
105 | AliESDtrackCuts *fTrackCut; // track cut | |
3d19c1b0 | 106 | AliTRDv0Info *fV0Cut; // v0 cut |
801d4d50 | 107 | TString fOCDB; // OCDB location |
705f8b0a | 108 | AliTRDtrackInfo *fTrackInfo; //! Track info |
109 | AliTRDeventInfo *fEventInfo; //! Event info | |
110 | AliTRDv0Info *fV0Info; //! V0 info | |
111 | TObjArray *fTracksBarrel; //! Array of barrel tracks | |
112 | TObjArray *fTracksSA; //! Array of stand alone tracks | |
113 | TObjArray *fTracksKink; //! Array of kink tracks | |
114 | TObjArray *fV0List; //! V0 container | |
058c3053 | 115 | TObjArray *fContainer; //! container to store results |
705f8b0a | 116 | TTreeSRedirector *fDebugStream; //! debug stream |
1ee39b3a | 117 | |
fd7ffd88 | 118 | ClassDef(AliTRDinfoGen, 7) // entry to TRD analysis train |
1ee39b3a | 119 | }; |
120 | #endif |