]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderInternal.h
Coding violations corrected
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReaderInternal.h
CommitLineData
91923a38 1#ifndef ALIHBTREADERINTERNAL_H
2#define ALIHBTREADERINTERNAL_H
2efd465d 3//_________________________________________________________________________
4///////////////////////////////////////////////////////////////////////////
5// //
6// class AliHBTReaderInternal //
7// //
8// Multi file reader for Internal Data Format //
9// //
10// This reader reads data created by itself //
11// (method AliHBTReaderInternal::Write) //
12// //
13// Piotr.Skowronski@cern.ch //
14// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html //
15// //
16///////////////////////////////////////////////////////////////////////////
91923a38 17
18#include "AliHBTReader.h"
91923a38 19#include <TString.h>
2efd465d 20
91923a38 21class TFile;
bed069a4 22class TTree;
23class TBranch;
27bb2a54 24class TClonesArray;
91923a38 25
26class AliHBTReaderInternal: public AliHBTReader
27{
28 public:
29 AliHBTReaderInternal();
30 AliHBTReaderInternal(const char *filename);
31 AliHBTReaderInternal(TObjArray* dirs, const char *filename);
ad4ad1d6 32 AliHBTReaderInternal(const AliHBTReaderInternal& in);
33
91923a38 34 virtual ~AliHBTReaderInternal();
35
ad4ad1d6 36 AliHBTReaderInternal& operator=(const AliHBTReaderInternal& in);
37
bed069a4 38 void Rewind();
39
40 Bool_t ReadsTracks() const {return kTRUE;}
41 Bool_t ReadsParticles() const {return kTRUE;}
91923a38 42
bed069a4 43 static Int_t Write(AliHBTReader* reader,const char* outfile = "data.root", Bool_t multcheck = kFALSE);//reads tracks from runs and writes them to file
91923a38 44
45 protected:
bed069a4 46
47 TString fFileName;//name of the file with tracks
48 TBranch* fPartBranch;//!branch with particles
49 TBranch* fTrackBranch;//!branch with tracks
50 TTree* fTree;//!tree
51 TFile* fFile;//!file
52 TClonesArray* fPartBuffer;//!buffer array that tree is read to
53 TClonesArray* fTrackBuffer;//!
54
55 Int_t ReadNext();//reads next event
56 Int_t OpenNextFile();//opens file to be read for given event
27bb2a54 57 static Bool_t FindIndex(TClonesArray* arr,Int_t idx);
58
bed069a4 59 ClassDef(AliHBTReaderInternal,2)
91923a38 60};
61#endif