#ifndef _MET_CALCULATOR_HH_ #define _MET_CALCULATOR_HH_ #ifdef USE_CDFEDM2 ////////////////////////////////////////////////////////////////////////// // // Component: MetCalculator.hh // Purpose: This class inherits from TowerCalculator. It sums the // EM and Hadronic compartements according to what was done // in Run 1. // // Created: 15/09/99 Pierre Savard // History: // ////////////////////////////////////////////////////////////////////////// #include #include #include #include "CalorGeometry/CalConstants.hh" #include "CalorObjects/EnergyData.hh" #include "Calor/TowerCalculator.hh" // namespace calor { class MetCalculator : public TowerCalculator { public: // // Memory management // MetCalculator(); MetCalculator(float etThreshold); // dtor, copy ctor and assignment operator do the right thing. // // Methods // PhysicsTower* makePhysicsTower(EnergyData* eData, Locations* loc) const; PhysicsTower* makeCorrPhysicsTower(EnergyData* eData, Locations* loc, float emc, float hadc) const; std::string calcName() const; float etThreshold() const; float energyThreshold() const; private: std::string _calcName; float _energyThreshold; }; inline std::string MetCalculator::calcName() const {return _calcName;} inline float MetCalculator::energyThreshold() const {return _energyThreshold;} inline float MetCalculator::etThreshold() const {return -999;} // } // namespace calor #endif // USE_CDFEDM2 #endif // _MET_CALCULATOR_HH_