]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTReaderInternal.h
Num and Den histograms should not bound to output file (SetDirectory(null) at functio...
[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);
32 virtual ~AliHBTReaderInternal();
33
bed069a4 34 void Rewind();
35
36 Bool_t ReadsTracks() const {return kTRUE;}
37 Bool_t ReadsParticles() const {return kTRUE;}
91923a38 38
bed069a4 39 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 40
41 protected:
bed069a4 42
43 TString fFileName;//name of the file with tracks
44 TBranch* fPartBranch;//!branch with particles
45 TBranch* fTrackBranch;//!branch with tracks
46 TTree* fTree;//!tree
47 TFile* fFile;//!file
48 TClonesArray* fPartBuffer;//!buffer array that tree is read to
49 TClonesArray* fTrackBuffer;//!
50
51 Int_t ReadNext();//reads next event
52 Int_t OpenNextFile();//opens file to be read for given event
27bb2a54 53 static Bool_t FindIndex(TClonesArray* arr,Int_t idx);
54
bed069a4 55 ClassDef(AliHBTReaderInternal,2)
91923a38 56};
57#endif