1 #ifndef ALIHBTREADERESD_H
2 #define ALIHBTREADERESD_H
4 #include "AliHBTReader.h"
5 //___________________________________________________________________________
6 /////////////////////////////////////////////////////////////////////////////
8 // Multi file reader for ESD //
10 // This reader reads tracks from Event Summary Data //
11 // do not read particles //
12 // Piotr.Skowronski@cern.ch //
13 // more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html //
15 /////////////////////////////////////////////////////////////////////////////
21 class AliHBTReaderESD: public AliHBTReader
24 AliHBTReaderESD(const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root");
26 AliHBTReaderESD(TObjArray* dirs,const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root");
28 virtual ~AliHBTReaderESD();
32 void ReadParticles(Bool_t flag){fReadParticles = flag;}
33 Bool_t ReadsTracks() const {return kTRUE;}
34 Bool_t ReadsParticles() const {return fReadParticles;}
36 enum ESpecies {kESDElectron = 0, kESDMuon, kESDPion, kESDKaon, kESDProton, kNSpecies};
37 static Int_t GetSpeciesPdgCode(ESpecies spec);//skowron
41 TFile* OpenFile(Int_t evno);//opens files to be read for given event
42 void CloseFiles(TFile*);//close files
44 TString fESDFileName;//name of the file with tracks
45 TString fGAlFileName;//name of the file with tracks
46 TFile* fFile;//! pointer to current ESD file
47 AliRunLoader* fRunLoader;//!Run Loader
48 Bool_t fReadParticles;//flag indicating wether to read particles from kinematics
51 ClassDef(AliHBTReaderESD,2)