15 #ifndef StPicoDstReader_h
16 #define StPicoDstReader_h
23 #include "TClonesArray.h"
26 #include "StPicoDst.h"
27 #include "StPicoEvent.h"
28 #include "StPicoArrays.h"
44 TChain *
chain() {
return mChain; }
46 TTree *
tree() {
return mTree; }
49 void SetStatus(
const Char_t* branchNameRegex, Int_t enable);
63 TString mInputFileName;
73 void setBranchAddresses(TChain *
chain);
86 TClonesArray *mPicoArrays[StPicoArrays::NAllPicoArrays];
88 Char_t mStatusArrays[StPicoArrays::NAllPicoArrays];
Bool_t readPicoEvent(Long64_t iEvent)
Read next event in the chain.
Allows to read picoDst file(s)
TChain * chain()
Return pointer to the chain of .picoDst.root files.
StPicoDst * picoDst()
Return a pointer to picoDst (return NULL if no dst is found)
void SetStatus(const Char_t *branchNameRegex, Int_t enable)
Set enable/disable branch matching when reading picoDst.
Main class that keeps TClonesArrays with main classes.
void Init()
Calls openRead()
TTree * tree()
Return pointer to the current TTree.
~StPicoDstReader()
Destructor.
StPicoDstReader(const Char_t *inFileName)
void Finish()
Close files and finilize.
Bool_t ReadPicoEvent(Long64_t iEvent)
Read next event in the chain.