]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderInternal.h
Removed ASV version in AliL3FileHandler by another effective i/o method using index...
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderInternal.h
CommitLineData
91923a38 1#ifndef ALIHBTREADERINTERNAL_H
2#define ALIHBTREADERINTERNAL_H
3
4#include "AliHBTReader.h"
5
6//Multi file reader for Internal Data Format
7//
8//This reader reads data created by
9//
10//Piotr.Skowronski@cern.ch
11//more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
12
13
14#include <TString.h>
15class TFile;
16
17class AliHBTReaderInternal: public AliHBTReader
18{
19 public:
20 AliHBTReaderInternal();
21 AliHBTReaderInternal(const char *filename);
22 AliHBTReaderInternal(TObjArray* dirs, const char *filename);
23 virtual ~AliHBTReaderInternal();
24
25 Int_t Read(AliHBTRun* particles, AliHBTRun *tracks);//reads tracks and particles and puts them in runs
26 static Int_t Write(AliHBTReader* reader,const char* outfile = "data.root");//reads tracks from runs and writes them to file
27
28 AliHBTEvent* GetParticleEvent(Int_t);//returns pointer to event with particles
29 AliHBTEvent* GetTrackEvent(Int_t);//returns pointer to event with particles
30 Int_t GetNumberOfPartEvents();//returns number of particle events
31 Int_t GetNumberOfTrackEvents();//returns number of track events
32
33 protected:
34 AliHBTRun* fParticles; //!simulated particles
35 AliHBTRun* fTracks; //!reconstructed tracks (particles)
36 Bool_t fIsRead;//!flag indicating if the data are already read
37 TString fFileName;//name of the file with tracks
38
39 Int_t OpenFile(TFile*& aFile,Int_t event);//opens file to be read for given event
40
41 public:
42 ClassDef(AliHBTReaderInternal,1)
43};
44#endif