]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderTPC.h
many directories support added
[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;
15
16class AliHBTReaderTPC: public AliHBTReader
17{
18 public:
19 AliHBTReaderTPC(const Char_t* trackfilename = "AliTPCtracks.root",
16701d1b 20 const Char_t* clusterfilename = "AliTPCclusters.root",
21 const Char_t* galicefilename = "galice.root");
22
23 AliHBTReaderTPC(TObjArray* dirs,
24 const Char_t* trackfilename = "AliTPCtracks.root",
25 const Char_t* clusterfilename = "AliTPCclusters.root",
26 const Char_t* galicefilename = "galice.root");
27
1b446896 28 virtual ~AliHBTReaderTPC();
29
30 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
31
32 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
33 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
34 Int_t GetNumberOfPartEvents();//returns number of particle events
35 Int_t GetNumberOfTrackEvents();//returns number of track events
36
37 protected:
38 //in the future this class is will read global tracking
39
40
16701d1b 41 Int_t OpenFiles(TFile*&,TFile*&,TFile*&,Int_t);//opens files to be read for given event
42 void CloseFiles(TFile*&,TFile*&,TFile*&);//close files
43 TString& GetDirName(Int_t);
44
1b446896 45
46 AliHBTRun* fParticles; //!simulated particles
47 AliHBTRun* fTracks; //!reconstructed tracks (particles)
16701d1b 48
49 TObjArray* fDirs;
1b446896 50
51 TString fTrackFileName;//name of the file with tracks
52 TString fClusterFileName;//name of the file with clusters
53 TString fGAliceFileName;//name of the file with galice.root
16701d1b 54
55
56
57 Bool_t fIsRead;//!flag indicating if the data are already read
1b446896 58 private:
59 public:
16701d1b 60 ClassDef(AliHBTReaderTPC,2)
1b446896 61};
62
63
1b446896 64#endif