Retrofeeded recent developement in from AliHBTReaderESD (ITS track points, additional...
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderITSv2.h
CommitLineData
1b446896 1#ifndef ALIHBTREADERITSV2_H
2#define ALIHBTREADERITSV2_H
3
4#include "AliHBTReader.h"
5
1b446896 6
bed069a4 7class AliLoader;
8class AliRunLoader;
9class TString;
1b446896 10
a9bfdd7b 11class AliHBTReaderITSv2: public AliHBTReader
1b446896 12{
88cb7938 13 public:
14
15 AliHBTReaderITSv2();
16 AliHBTReaderITSv2(const Char_t* galicefilename);
17 AliHBTReaderITSv2(TObjArray* dirs, const Char_t* galicefilename = "galice.root");
18
1b446896 19 virtual ~AliHBTReaderITSv2();
20
bed069a4 21 void Rewind();
a9bfdd7b 22
bed069a4 23 Bool_t ReadsTracks() const {return kTRUE;}
24 Bool_t ReadsParticles() const {return kTRUE;}
a9bfdd7b 25
bed069a4 26 void SetMagneticField(Float_t mf){fMagneticField=mf;}
27 void UseMagneticFieldFromRun(Bool_t flag = kTRUE){fUseMagFFromRun=flag;}
a9bfdd7b 28
bed069a4 29 protected:
1b446896 30
bed069a4 31 Int_t ReadNext();//reads tracks and particles and puts them in runs
32 Int_t OpenNextFile();
33 void DoOpenError( const char *va_(fmt), ...);
34
35 TString fFileName;//name of the file with galice.root
36 AliRunLoader* fRunLoader;//!Run Loader
37 AliLoader* fITSLoader;//! ITS Loader
38
39 Float_t fMagneticField;//magnetic field value that was enforced while reading
40 Bool_t fUseMagFFromRun;//flag indicating if using field specified in gAlice (kTRUE)
98295f4b 41 // or enforece other defined by fMagneticField
bed069a4 42
43 ClassDef(AliHBTReaderITSv2,2)
1b446896 44};
a9bfdd7b 45
46#endif