00001 #ifndef __mEmcRecalRecoModuleRealYear3v1_h__ 00002 #define __mEmcRecalRecoModuleRealYear3v1_h__ 00003 00004 #include "emcRecoModule.h" 00005 #include <string> 00006 00007 class emcModuleHelper; 00008 class PHTimeStamp; 00009 class PHFlag; 00010 00011 class mEmcRecalRecoModuleRealYear3v1 : public emcRecoModule 00012 { 00013 public: 00014 00015 mEmcRecalRecoModuleRealYear3v1(const PHFlag&); 00016 00017 virtual ~mEmcRecalRecoModuleRealYear3v1(); 00018 00019 int ana(PHCompositeNode* topNode); 00020 00021 int end(PHCompositeNode* topNode); 00022 00023 const char* getName() const { return "mEmcRecalRecoModuleRealYear3v1"; } 00024 00025 int setup(PHCompositeNode* topNode); 00026 00027 virtual void identify(ostream& os = std::cout) const; 00028 00029 virtual void Reset() { } 00030 00031 virtual int isValid() const { return 1; } 00032 00033 private: 00034 00035 void createNodeTree(PHCompositeNode* topNode); 00036 void setup_calibrator(PHCompositeNode* topNode); 00037 void setup_clustering(PHCompositeNode* topNode); 00038 00039 private: 00040 emcModuleHelper* fModules; 00041 PHTimeStamp* fTimeStamp; 00042 int fRunNumber; 00043 std::string fDstNodeName; 00044 bool fConstantGains; 00045 static const float fgTowerThresholdPbSc; 00046 static const float fgTowerThresholdPbGl; 00047 static const float fgMinClusterEnergyPbSc; 00048 static const float fgMinClusterEnergyPbGl; 00049 }; 00050 00051 #endif