1 #ifndef ALIHBTREADERITSV2_H
2 #define ALIHBTREADERITSV2_H
4 #include "AliHBTReader.h"
10 class AliHBTReaderITSv2: public AliHBTReader
13 AliHBTReaderITSv2(const Char_t* trackfilename = "AliITStracksV2.root",
14 const Char_t* clusterfilename = "AliITSclustersV2.root",
15 const Char_t* galicefilename = "galice.root");
17 AliHBTReaderITSv2(TObjArray* dirs,
18 const Char_t* trackfilename = "AliITStracksV2.root",
19 const Char_t* clusterfilename = "AliITSclustersV2.root",
20 const Char_t* galicefilename = "galice.root");
21 virtual ~AliHBTReaderITSv2();
23 Int_t Read(AliHBTRun*, AliHBTRun*);//reads tracks and particles and puts them in runs
25 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
26 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
27 Int_t GetNumberOfPartEvents();//returns number of particle events
28 Int_t GetNumberOfTrackEvents();//returns number of track events
30 void SetMagneticField(Float_t mf){fMagneticField=mf;}
31 void UseMagneticFieldFromRun(Bool_t flag = kTRUE){fUseMagFFromRun=flag;}
35 Int_t OpenFiles(TFile*&,TFile*&,TFile*&,Int_t);//opens files to be read for given event
36 void CloseFiles(TFile*&,TFile*&,TFile*&);//close files
38 AliHBTRun* fParticles; //!simulated particles
39 AliHBTRun* fTracks; //!reconstructed tracks (particles)
41 TString fTrackFileName;//name of the file with tracks
42 TString fClusterFileName;//name of the file with clusters
43 TString fGAliceFileName;//name of the file with galice.root
45 Bool_t fIsRead;//!flag indicating if the data are already read
47 Float_t fMagneticField;//magnetic field value that was enforced while reading
48 Bool_t fUseMagFFromRun;//flag indicating if using field specified in gAlice (kTRUE)
49 // or enforece other defined by fMagneticField
51 ClassDef(AliHBTReaderITSv2,1)