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