00001 // 00002 // Collect EmcDigi information and calculate total energy, etc. 00003 // 00004 // Created by Chengdong Fu, May 10,2007 00005 // 00006 // Change data format according EventFilter framework, June 8,2007/ 00007 00008 #ifndef EFGlobalEnergy_H 00009 #define EFGlobalEnergy_H 00010 00011 #include "EmcCalibConstSvc/EmcCalibConstSvc.h" 00012 00013 #include "HltDataTypes/CriteriaItemValue.h" 00014 #include "HltAlgorithms/IEFAlgorithm.h" 00015 00016 class EFGlobalEnergy: public IEFAlgorithm{ 00017 public: 00018 EFGlobalEnergy(const std::string& name, ISvcLocator* pSvcLocator); 00019 virtual ~EFGlobalEnergy(); 00020 virtual StatusCode initialize(); 00021 StatusCode execute(); 00022 StatusCode finalize(); 00023 void reset(); 00024 00025 private: 00026 CriteriaItemValue* m_etot; 00027 CriteriaItemValue* m_ebar; 00028 CriteriaItemValue* m_eend; 00029 CriteriaItemValue* m_ebal; 00030 00031 IEmcCalibConstSvc* m_emcCalibConstSvc; 00032 00033 }; 00034 #endif //EFGlobalEnergy_H