StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcPi0Reader.h
1 #ifndef __StEEmcPi0Reader_h__
2 #define __StEEmcPi0Reader_h__
3 
4 #include "StMaker.h"
5 #include "StEEmcMixEvent.h"
6 
7 #include "TChain.h"
8 #include "TString.h"
9 
10 class StEEmcPi0Reader : public StMaker
11 {
12 
13  public:
14 
15  StEEmcPi0Reader(const Char_t *name="mRealTree", const Char_t *bname="MixEvent" );
16  ~StEEmcPi0Reader(){ /* nada */ };
17 
18  void chainFile( const Char_t *name );
19 
20  StEEmcMixEvent *event(){ return mEvent; }
21 
22  Int_t Init();
23  Int_t Make();
24  void Clear(Option_t *opts="");
25 
26  Long64_t getNumberOfEvents(){ return mChain->GetEntries(); }
27  Int_t getEvent(Int_t event);
28 
29  TChain *chain(){ return mChain; }
30 
31  private:
32  protected:
33 
34  Int_t index;
35 
36  TChain *mChain;
38  TString mBranchName;
40  ClassDef(StEEmcPi0Reader,1);
41 
42 
43 };
44 
45 #endif
copied from muDst
StEEmcMixEvent * mEvent
void Clear(Option_t *opts="")
User defined functions.