]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderTPC.h
comments added AliHBTParticle.h
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderTPC.h
CommitLineData
16701d1b 1#ifndef AliHBTReaderTPC_H
2#define AliHBTReaderTPC_H
1b446896 3
4#include "AliHBTReader.h"
5
16701d1b 6//Multi file reader for TPC
7//
1b446896 8//This reader reads tracks AliTPCtracks.root
16701d1b 9// particles form gAlice
1b446896 10//Piotr.Skowronski@cern.ch
11//more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
12
13#include <TString.h>
14class TFile;
bfb09ece 15class TArrayF;
bed069a4 16class AliRunLoader;
17class AliTPCLoader;
3f745d47 18class AliTPCtrack;
1b446896 19
20class AliHBTReaderTPC: public AliHBTReader
21{
22 public:
88cb7938 23 AliHBTReaderTPC();
24 AliHBTReaderTPC(const Char_t* galicefilename);
25 AliHBTReaderTPC(TObjArray* dirs, const Char_t* galicefilename = "galice.root");
16701d1b 26
1b446896 27 virtual ~AliHBTReaderTPC();
28
bed069a4 29 void Rewind();
1b446896 30
bed069a4 31 Bool_t ReadsTracks() const {return kTRUE;}
32 Bool_t ReadsParticles() const {return kTRUE;}
33
34 void SetMagneticField(Float_t mf){fMagneticField=mf;}
35 void UseMagneticFieldFromRun(Bool_t flag = kTRUE){fUseMagFFromRun=flag;}
1b446896 36
3f745d47 37 void SetNClustersRange(Int_t min,Int_t max);
38 void SetChi2PerCluserRange(Float_t min, Float_t max);
39 void SetC44Range(Float_t min, Float_t max);
40
1b446896 41 protected:
42 //in the future this class is will read global tracking
bed069a4 43 Int_t ReadNext();
44 Int_t OpenNextSession();
45 void DoOpenError(const char* msgfmt, ...);
1b446896 46
bed069a4 47 TString fFileName;//name of the file with galice.root
48 AliRunLoader* fRunLoader;//!RL
49 AliTPCLoader* fTPCLoader;//!TPCLoader
50 Float_t fMagneticField;//magnetic field value that was enforced while reading
51 Bool_t fUseMagFFromRun;//flag indicating if using field specified in gAlice (kTRUE)
52 // or enforece other defined by fMagneticField
3f745d47 53
54 Int_t fNClustMin;
55 Int_t fNClustMax;
56
57 Float_t fNChi2PerClustMin;
58 Float_t fNChi2PerClustMax;
59
60 Float_t fC44Min;
61 Float_t fC44Max;
62
1b446896 63 private:
3f745d47 64
65 Bool_t CheckTrack(AliTPCtrack* t);
88cb7938 66 public:
bed069a4 67 ClassDef(AliHBTReaderTPC,3)
1b446896 68};
69
70
1b446896 71#endif