Transition to NewIO
[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:
88cb7938 19 AliHBTReaderTPC();
20 AliHBTReaderTPC(const Char_t* galicefilename);
21 AliHBTReaderTPC(TObjArray* dirs, const Char_t* galicefilename = "galice.root");
16701d1b 22
1b446896 23 virtual ~AliHBTReaderTPC();
24
25 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
26
27 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
28 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
29 Int_t GetNumberOfPartEvents();//returns number of particle events
30 Int_t GetNumberOfTrackEvents();//returns number of track events
31
32 protected:
33 //in the future this class is will read global tracking
1b446896 34
35 AliHBTRun* fParticles; //!simulated particles
36 AliHBTRun* fTracks; //!reconstructed tracks (particles)
37
88cb7938 38 TString fFileName;//name of the file with galice.root
16701d1b 39
88cb7938 40 Bool_t fIsRead;//!flag indicating if the data are already read
1b446896 41 private:
88cb7938 42 public:
16701d1b 43 ClassDef(AliHBTReaderTPC,2)
1b446896 44};
45
46
1b446896 47#endif