]>
Commit | Line | Data |
---|---|---|
7be13e68 | 1 | #ifndef ALIHBTREADERESD_H |
2 | #define ALIHBTREADERESD_H | |
7be13e68 | 3 | //___________________________________________________________________________ |
4 | ///////////////////////////////////////////////////////////////////////////// | |
5 | // // | |
6 | // Multi file reader for ESD // | |
7 | // // | |
8 | // This reader reads tracks from Event Summary Data // | |
9 | // do not read particles // | |
10 | // Piotr.Skowronski@cern.ch // | |
11 | // more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html // | |
12 | // // | |
13 | ///////////////////////////////////////////////////////////////////////////// | |
14 | ||
61f231ad | 15 | #include "AliHBTReader.h" |
7be13e68 | 16 | #include <TString.h> |
17 | class TFile; | |
bed069a4 | 18 | class AliRunLoader; |
61f231ad | 19 | class AliESD; |
7be13e68 | 20 | |
21 | class AliHBTReaderESD: public AliHBTReader | |
22 | { | |
23 | public: | |
bed069a4 | 24 | AliHBTReaderESD(const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root"); |
7be13e68 | 25 | |
bed069a4 | 26 | AliHBTReaderESD(TObjArray* dirs,const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root"); |
7be13e68 | 27 | |
28 | virtual ~AliHBTReaderESD(); | |
29 | ||
bed069a4 | 30 | void Rewind(); |
7be13e68 | 31 | |
bed069a4 | 32 | void ReadParticles(Bool_t flag){fReadParticles = flag;} |
33 | Bool_t ReadsTracks() const {return kTRUE;} | |
34 | Bool_t ReadsParticles() const {return fReadParticles;} | |
7be13e68 | 35 | |
88378f71 | 36 | void ReadDataTPC(){} |
37 | void ReadDataITS(){} | |
38 | ||
39 | void SetTPCNClustersRange(Int_t min,Int_t max); | |
40 | void SetTPCChi2PerCluserRange(Float_t min, Float_t max); | |
41 | void SetC00Range(Float_t min, Float_t max); | |
42 | void SetC11Range(Float_t min, Float_t max); | |
43 | void SetC22Range(Float_t min, Float_t max); | |
44 | void SetC33Range(Float_t min, Float_t max); | |
45 | void SetC44Range(Float_t min, Float_t max); | |
46 | void SetNumberOfTrackPoints(Int_t n = 5,Float_t dr = 30.0) {fNTrackPoints = n; fdR = dr;} | |
47 | Int_t GetNumberOfTrackPoints() const {return fNTrackPoints;} | |
48 | void SetClusterMap(Bool_t flag = kTRUE){fClusterMap = flag;} | |
49 | ||
50 | ||
7be13e68 | 51 | enum ESpecies {kESDElectron = 0, kESDMuon, kESDPion, kESDKaon, kESDProton, kNSpecies}; |
bed069a4 | 52 | static Int_t GetSpeciesPdgCode(ESpecies spec);//skowron |
7be13e68 | 53 | |
61f231ad | 54 | Int_t ReadESD(AliESD* esd); |
bed069a4 | 55 | protected: |
56 | Int_t ReadNext(); | |
57 | TFile* OpenFile(Int_t evno);//opens files to be read for given event | |
bed069a4 | 58 | |
59 | TString fESDFileName;//name of the file with tracks | |
60 | TString fGAlFileName;//name of the file with tracks | |
61 | TFile* fFile;//! pointer to current ESD file | |
62 | AliRunLoader* fRunLoader;//!Run Loader | |
88378f71 | 63 | TIter* fKeyIterator; |
bed069a4 | 64 | Bool_t fReadParticles;//flag indicating wether to read particles from kinematics |
7be13e68 | 65 | |
88378f71 | 66 | Int_t fNTrackPoints;//number of track points; if==0 track points are not created |
67 | Float_t fdR;//spacing between points (along radius) in cm | |
68 | //Track Points are needed for Anti-Merging Cut | |
69 | ||
70 | Bool_t fClusterMap;//Flag indicating if Claster Map should be created for each track | |
71 | //Claster map is needed for Anti-Splitting Cut | |
72 | ||
73 | //Cut Parameters specific to TPC tracks | |
74 | ||
75 | Int_t fNTPCClustMin;//Number of clusters min value | |
76 | Int_t fNTPCClustMax;//Number of clusters max value | |
77 | ||
78 | Float_t fTPCChi2PerClustMin;//Chi^2 per number of clusters min value | |
79 | Float_t fTPCChi2PerClustMax;//Chi^2 per number of clusters max value | |
80 | ||
81 | ||
82 | // Required parameters at vertex | |
83 | Float_t fC00Min;//C00 (0th diagonal element of covariance matrix) min value | |
84 | Float_t fC00Max;//C00 (0th diagonal element of covariance matrix) max value | |
85 | ||
86 | Float_t fC11Min;//C11 (1th diagonal element of covariance matrix) min value | |
87 | Float_t fC11Max;//C11 (1th diagonal element of covariance matrix) max value | |
88 | ||
89 | Float_t fC22Min;//C22 (2th diagonal element of covariance matrix) min value | |
90 | Float_t fC22Max;//C22 (2th diagonal element of covariance matrix) max value | |
91 | ||
92 | Float_t fC33Min;//C33 (3th diagonal element of covariance matrix) min value | |
93 | Float_t fC33Max;//C33 (3th diagonal element of covariance matrix) max value | |
94 | ||
95 | Float_t fC44Min;//C44 (4th diagonal element of covariance matrix) min value | |
96 | Float_t fC44Max;//C44 (4th diagonal element of covariance matrix) max value | |
97 | ||
98 | // Required parameters at TPC Inner Layer | |
99 | Float_t fTPCC00Min;//C00 (0th diagonal element of covariance matrix) min value | |
100 | Float_t fTPCC00Max;//C00 (0th diagonal element of covariance matrix) max value | |
101 | ||
102 | Float_t fTPCC11Min;//C11 (1th diagonal element of covariance matrix) min value | |
103 | Float_t fTPCC11Max;//C11 (1th diagonal element of covariance matrix) max value | |
104 | ||
105 | Float_t fTPCC22Min;//C22 (2th diagonal element of covariance matrix) min value | |
106 | Float_t fTPCC22Max;//C22 (2th diagonal element of covariance matrix) max value | |
107 | ||
108 | Float_t fTPCC33Min;//C33 (3th diagonal element of covariance matrix) min value | |
109 | Float_t fTPCC33Max;//C33 (3th diagonal element of covariance matrix) max value | |
110 | ||
111 | Float_t fTPCC44Min;//C44 (4th diagonal element of covariance matrix) min value | |
112 | Float_t fTPCC44Max;//C44 (4th diagonal element of covariance matrix) max value | |
113 | ||
7be13e68 | 114 | private: |
bed069a4 | 115 | ClassDef(AliHBTReaderESD,2) |
7be13e68 | 116 | }; |
117 | ||
118 | ||
119 | #endif |