]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTReaderESD.h
Modifications needed by the HBT analysis (P.Skowronski)
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderESD.h
1 #ifndef ALIHBTREADERESD_H
2 #define ALIHBTREADERESD_H
3
4 #include "AliHBTReader.h"
5 //___________________________________________________________________________
6 /////////////////////////////////////////////////////////////////////////////
7 //                                                                         //
8 // Multi file reader for ESD                                               //
9 //                                                                         //
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    //
14 //                                                                         //
15 /////////////////////////////////////////////////////////////////////////////
16
17 #include <TString.h>
18 class TFile;
19 class AliRunLoader;
20
21 class AliHBTReaderESD: public AliHBTReader
22 {
23   public:
24     AliHBTReaderESD(const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root");
25
26     AliHBTReaderESD(TObjArray* dirs,const Char_t* esdfilename = "AliESDs.root", const Char_t* galfilename = "galice.root");
27
28     virtual ~AliHBTReaderESD();
29     
30     void          Rewind();
31     
32     void          ReadParticles(Bool_t flag){fReadParticles = flag;}
33     Bool_t        ReadsTracks() const {return kTRUE;}
34     Bool_t        ReadsParticles() const {return fReadParticles;}
35     
36     enum ESpecies {kESDElectron = 0, kESDMuon, kESDPion, kESDKaon, kESDProton, kNSpecies};
37     static Int_t  GetSpeciesPdgCode(ESpecies spec);//skowron
38     
39   protected:
40     Int_t         ReadNext();
41     TFile*        OpenFile(Int_t evno);//opens files to be read for given event
42     void          CloseFiles(TFile*);//close files
43
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
49     
50   private:
51     ClassDef(AliHBTReaderESD,2)
52 };
53
54
55 #endif