7 #ifndef L2upsilon2006_hh
8 #define L2upsilon2006_hh
17 #ifdef IS_REAL_L2 //in l2-ana environmen
18 #include "L2VirtualAlgo.h"
20 #include "StTriggerUtilities/L2Emulator/L2algoUtil/L2VirtualAlgo.h"
36 int numberOfNeighbors;
64 int initRun(
int runNumber,
int* userInt,
float* userFloat);
65 bool doEvent(
int L0trg,
int eventNumber,
TrgDataType* trgData,
66 int bemcIn,
unsigned short* bemcData,
67 int eemcIn,
unsigned short* eemcData);
70 void readGeomXYZ(
const char *fname);
73 void findSeedTowers(vector<int>& L0Seeds, vector<int>& L2Seeds);
74 void calcCluster(
int rdo);
76 void createHistograms();
77 void writeHistograms();
78 void resetHistograms();
79 void deleteHistograms();
81 const char* timeString()
const;
85 int mSoftIdToRdo[4801];
86 int mPhiEtaToRdo[120][40];
88 unsigned short* bemcData;
98 float mMinL0ClusterEnergy;
99 float mMinL2ClusterEnergy;
105 int mL0SeedThreshold;
106 int mL2SeedThreshold;
109 int mNumberOfTowersPerCluster;
112 list<L2Histo*> mHistograms;
133 inline void Timer::start() { startTime = std::time(0); }
134 inline time_t Timer::time()
const {
return std::time(0) - startTime; }
136 inline const char* L2upsilon2006::timeString()
const