]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderTPC.h
Moved from AliTransbit to AliL3Transbit.
[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
7da9bdd2 43
16701d1b 44
1b446896 45
46 AliHBTRun* fParticles; //!simulated particles
47 AliHBTRun* fTracks; //!reconstructed tracks (particles)
16701d1b 48
1b446896 49
50 TString fTrackFileName;//name of the file with tracks
51 TString fClusterFileName;//name of the file with clusters
52 TString fGAliceFileName;//name of the file with galice.root
16701d1b 53
54
55
56 Bool_t fIsRead;//!flag indicating if the data are already read
1b446896 57 private:
58 public:
16701d1b 59 ClassDef(AliHBTReaderTPC,2)
1b446896 60};
61
62
1b446896 63#endif