00001
00002
00003 #ifndef STAR_StECalEnergyIter
00004 #define STAR_StECalEnergyIter
00005
00018 class StMuEmcCollection;
00019 class StEEmcDb;
00020
00021 class StECalEnergyIter {
00022 private:
00023 StMuEmcCollection *mEmCol;
00024 StEEmcDb *mEEdb;
00025 int mdetector;
00026 int mNhits;
00027 int mIhits;
00028 int mSuppBad;
00029 static bool mIsSimu;
00030 inline StECalEnergyIter() { }
00031
00032 protected:
00033
00034
00035 public:
00036 StECalEnergyIter(StMuEmcCollection *, int, StEEmcDb *db, bool=true);
00037 bool next(float &e, int &adc, int &adclessped, int &sec, int &eta,
00038 int &phi, char &cdet);
00039 inline bool operator()(float &e, int &adc, int &adclessped, int &sec,
00040 int &eta, int &phi, char &cdet)
00041 { return next(e, adc, adclessped, sec, eta, phi, cdet); }
00042 inline static void DeclareSimu() { mIsSimu = true; }
00043
00045 virtual const char *GetCVS() const {
00046 static const char cvs[]="Tag $Name: $ $Id: StECalEnergyIter.h,v 1.7 2009/02/04 20:33:16 ogrebeny Exp $ built "__DATE__" "__TIME__ ;
00047 return cvs;
00048 }
00049
00050 };
00051
00052 #endif
00053