Reader for ESD
[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;
19
20class AliHBTReaderESD: public AliHBTReader
21{
22 public:
23 AliHBTReaderESD(const Char_t* esdfilename = "AliESDs.root");
24
25 AliHBTReaderESD(TObjArray* dirs,const Char_t* esdfilename = "AliESDs.root");
26
27 virtual ~AliHBTReaderESD();
28
29 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
30
31 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
32 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
33 Int_t GetNumberOfPartEvents();//returns number of particle events
34 Int_t GetNumberOfTrackEvents();//returns number of track events
35
36 enum ESpecies {kESDElectron = 0, kESDMuon, kESDPion, kESDKaon, kESDProton, kNSpecies};
37 static Int_t GetSpeciesPdgCode(ESpecies spec);//skowron
38 protected:
39
40 TFile* OpenFile(Int_t evno);//opens files to be read for given event
41 void CloseFiles(TFile*);//close files
42
43 AliHBTRun* fParticles; //!simulated particles
44 AliHBTRun* fTracks; //!reconstructed tracks (particles)
45
46 TString fESDFileName;//name of the file with tracks
47 Bool_t fIsRead;//!flag indicating if the data are already read
48
49 private:
50 ClassDef(AliHBTReaderESD,1)
51};
52
53
54#endif