]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderESD.h
negative indexes allowed
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderESD.h
CommitLineData
7be13e68 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>
18class TFile;
bed069a4 19class AliRunLoader;
7be13e68 20
21class 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
36 enum ESpecies {kESDElectron = 0, kESDMuon, kESDPion, kESDKaon, kESDProton, kNSpecies};
bed069a4 37 static Int_t GetSpeciesPdgCode(ESpecies spec);//skowron
7be13e68 38
bed069a4 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
7be13e68 49
50 private:
bed069a4 51 ClassDef(AliHBTReaderESD,2)
7be13e68 52};
53
54
55#endif