StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StECalEnergyIter.h
1 // $Id: StECalEnergyIter.h,v 1.8 2014/08/06 11:42:58 jeromel Exp $
2 
3 #ifndef STAR_StECalEnergyIter
4 #define STAR_StECalEnergyIter
5 
18 class StMuEmcCollection;
19 class StEEmcDb;
20 
22  private:
23  StMuEmcCollection *mEmCol;
24  StEEmcDb *mEEdb;
25  int mdetector;
26  int mNhits;
27  int mIhits;
28  int mSuppBad;
29  static bool mIsSimu;
30  inline StECalEnergyIter() { /* no-op */ }
31 
32  protected:
33  // Protected method if any
34 
35  public:
36  StECalEnergyIter(StMuEmcCollection *, int, StEEmcDb *db, bool=true);
37  bool next(float &e, int &adc, int &adclessped, int &sec, int &eta,
38  int &phi, char &cdet);
39  inline bool operator()(float &e, int &adc, int &adclessped, int &sec,
40  int &eta, int &phi, char &cdet)
41  { return next(e, adc, adclessped, sec, eta, phi, cdet); }
42  inline static void DeclareSimu() { mIsSimu = true; }
43 
45  virtual const char *GetCVS() const {
46  static const char cvs[]="Tag $Name: $ $Id: StECalEnergyIter.h,v 1.8 2014/08/06 11:42:58 jeromel Exp $ built " __DATE__ " " __TIME__ ;
47  return cvs;
48  }
49 
50 };
51 
52 #endif
53 
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
Iterate over hits and extract energy using database.