#ifndef ALIHBTREADERITSV2_H #define ALIHBTREADERITSV2_H #include "AliHBTReader.h" #include class TFile; class AliHBTReaderITSv2: public AliHBTReader { public: AliHBTReaderITSv2(const Char_t* trackfilename = "AliITStracksV2.root", const Char_t* clusterfilename = "AliITSclustersV2.root", const Char_t* galicefilename = "galice.root"); AliHBTReaderITSv2(TObjArray* dirs, const Char_t* trackfilename = "AliITStracksV2.root", const Char_t* clusterfilename = "AliITSclustersV2.root", const Char_t* galicefilename = "galice.root"); virtual ~AliHBTReaderITSv2(); Int_t Read(AliHBTRun*, AliHBTRun*);//reads tracks and particles and puts them in runs AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles Int_t GetNumberOfPartEvents();//returns number of particle events Int_t GetNumberOfTrackEvents();//returns number of track events protected: Int_t OpenFiles(TFile*&,TFile*&,TFile*&,Int_t);//opens files to be read for given event void CloseFiles(TFile*&,TFile*&,TFile*&);//close files AliHBTRun* fParticles; //!simulated particles AliHBTRun* fTracks; //!reconstructed tracks (particles) TString fTrackFileName;//name of the file with tracks TString fClusterFileName;//name of the file with clusters TString fGAliceFileName;//name of the file with galice.root Bool_t fIsRead;//!flag indicating if the data are already read private: public: ClassDef(AliHBTReaderITSv2,1) }; #endif