#include <RecoLocalCalo/EcalRecAlgos/interface/EcalRecHitSimpleAlgo.h>
Public Member Functions | |
EcalRecHitSimpleAlgo () | |
virtual EcalRecHit | makeRecHit (const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant) const |
Compute parameters. | |
virtual void | setADCToGeVConstant (const float &value) |
Constructor. | |
virtual | ~EcalRecHitSimpleAlgo () |
Private Attributes | |
float | adcToGeVConstant_ |
bool | adcToGeVConstantIsSet_ |
Definition at line 16 of file EcalRecHitSimpleAlgo.h.
EcalRecHitSimpleAlgo::EcalRecHitSimpleAlgo | ( | ) | [inline] |
Definition at line 19 of file EcalRecHitSimpleAlgo.h.
References adcToGeVConstant_, and adcToGeVConstantIsSet_.
00019 { 00020 adcToGeVConstant_ = -1; 00021 adcToGeVConstantIsSet_ = false; 00022 }
virtual EcalRecHitSimpleAlgo::~EcalRecHitSimpleAlgo | ( | ) | [inline, virtual] |
virtual EcalRecHit EcalRecHitSimpleAlgo::makeRecHit | ( | const EcalUncalibratedRecHit & | uncalibRH, | |
const float & | intercalibConstant | |||
) | const [inline, virtual] |
Compute parameters.
Implements EcalRecHitAbsAlgo.
Definition at line 34 of file EcalRecHitSimpleAlgo.h.
References adcToGeVConstant_, adcToGeVConstantIsSet_, EcalUncalibratedRecHit::amplitude(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), relval_parameters_module::energy, EcalUncalibratedRecHit::id(), and EcalUncalibratedRecHit::jitter().
00035 { 00036 00037 if(!adcToGeVConstantIsSet_) { 00038 std::cout << "EcalRecHitSimpleAlgo::makeRecHit: adcToGeVConstant_ not set before calling this method!" << 00039 " will use -1 and produce bogus rechits!" << std::endl; 00040 } 00041 00042 float energy = uncalibRH.amplitude()*adcToGeVConstant_*intercalibConstant; 00043 float time = uncalibRH.jitter(); 00044 00045 return EcalRecHit( uncalibRH.id(), energy, time ); 00046 }
virtual void EcalRecHitSimpleAlgo::setADCToGeVConstant | ( | const float & | value | ) | [inline, virtual] |
Constructor.
Destructor make rechits from dataframes
Implements EcalRecHitAbsAlgo.
Definition at line 24 of file EcalRecHitSimpleAlgo.h.
References adcToGeVConstant_, and adcToGeVConstantIsSet_.
00024 { 00025 adcToGeVConstant_ = value; 00026 adcToGeVConstantIsSet_ = true; 00027 }
float EcalRecHitSimpleAlgo::adcToGeVConstant_ [private] |
Definition at line 49 of file EcalRecHitSimpleAlgo.h.
Referenced by EcalRecHitSimpleAlgo(), makeRecHit(), and setADCToGeVConstant().
Definition at line 50 of file EcalRecHitSimpleAlgo.h.
Referenced by EcalRecHitSimpleAlgo(), makeRecHit(), and setADCToGeVConstant().