1 #ifndef __StGammaTreeReader_h__
2 #define __StGammaTreeReader_h__
5 #include "StGammaEvent.h"
20 void chainFile(
const Char_t *name,
const Char_t *matches=
".root" );
26 void Clear(Option_t *opts=
"");
35 Int_t
getEvent(Int_t runNumber, Int_t eventNumber );
43 virtual const char *GetCVS()
const {
44 static const char cvs[]=
"Tag $Name: $ $Id: StGammaTreeReader.h,v 1.3 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__
" " __TIME__ ;
56 std::map<Long64_t,Long64_t> mIndex;
58 Long64_t key( Int_t run, Int_t event );
void Test()
This is a "self test". Do not feed it alot of data.
TChain * chain()
Pointer to the chain itself.
Long64_t getNumberOfEvents()
Returns the total number of entries for this chain of events.
void Clear(Option_t *opts="")
User defined functions.
void chainFile(const Char_t *name, const Char_t *matches=".root")
Add a file to the list of files in the chain being processed.
Int_t getEvent(Long64_t entry)
Loads the specified entry in the chain. Access using event() defined above.