#ifndef _STANDARD_CALCULATOR_HH_ #define _STANDARD_CALCULATOR_HH_ #ifdef USE_CDFEDM2 ////////////////////////////////////////////////////////////////////////// // // Component: StandardCalculator.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 StandardCalculator : public TowerCalculator { public: // // Memory management // StandardCalculator(); StandardCalculator(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 _etThreshold; }; inline std::string StandardCalculator::calcName() const {return _calcName;} inline float StandardCalculator::etThreshold() const {return _etThreshold;} inline float StandardCalculator::energyThreshold() const {return -999;} // } // namespace calor #endif // USE_CDFEDM2 #endif // _STANDARD_CALCULATOR_HH_