00001 #ifndef __MEMCRECOMODULEREALYEAR4_H__ 00002 #define __MEMCRECOMODULEREALYEAR4_H__ 00003 00004 #include "emcRecoModule.h" 00005 #include "emcManageable.h" 00006 #include <string> 00007 #include <sstream> 00008 00009 class emcDataStorageMap; 00010 class emcModuleHelper; 00011 class PHTimeStamp; 00012 class PHFlag; 00013 00046 class mEmcRecoModuleRealYear4 : public emcRecoModule 00047 { 00048 public: 00049 00050 mEmcRecoModuleRealYear4(const PHFlag&); 00051 00052 virtual ~mEmcRecoModuleRealYear4(); 00053 00054 int ana(PHCompositeNode* topNode); 00055 00056 int end(PHCompositeNode* topNode); 00057 00058 const char* getName() const { return "mEmcRecoModuleRealYear4"; } 00059 00066 int setup(PHCompositeNode* topNode); 00067 00068 virtual void identify(std::ostream& os = std::cout) const; 00069 00070 virtual void Reset() { } 00071 00072 virtual int isValid() const { return 1; } 00073 00074 private: 00075 00076 void createNodeTree(PHCompositeNode* topNode); 00077 void setup_calibrator(PHCompositeNode* topNode); 00078 void setup_clustering(PHCompositeNode* topNode); 00079 00080 private: 00081 emcModuleHelper* fModules; 00082 PHTimeStamp* fTimeStamp; 00083 int fRunNumber; 00084 std::string fDstNodeName; 00085 bool fConstantGains; 00086 std::string fSectors; 00087 emcDataStorageMap* fDataStorageMap; 00088 std::ostringstream fStartupMessage; 00089 static const float fgTowerThresholdPbSc; 00090 static const float fgTowerThresholdPbGl; 00091 static const float fgMinClusterEnergyPbSc; 00092 static const float fgMinClusterEnergyPbGl; 00093 }; 00094 00095 #endif