5 #include <EVENT/CalorimeterHit.h>
8 using namespace marlin ;
15 _description =
"This processor transforms the threshold value of digitized SDHCAL CalorimeterHits into energy" ;
17 std::vector<float> energyCoefficients = {0.4f} ;
18 registerProcessorParameter(
"EnergyCalibration" ,
19 "Threshold to Energy correspondace" ,
36 float threshold = hit->getEnergy() - 1.0f ;
41 unsigned int iCoeff =
static_cast<unsigned int>( threshold ) ;
std::vector< float > _energyCoefficients
SimDigitalToEnergy aSimDigitalToEnergy
std::vector< float > _calibrCoeff
virtual float reconstructEnergy(const CalorimeterHit *hit)
std::vector< int > _calLayers