5 : LSB_silicon_fC_(conf.getParameter<double>(
"siliconCellLSB_fC")),
6 LSB_scintillator_MIP_(conf.getParameter<double>(
"scintillatorCellLSB_MIP")),
7 fCperMIP_(conf.getParameter<double>(
"fCperMIP")),
8 thickCorr_(conf.getParameter<double>(
"thickCorr")),
9 dEdX_weights_(conf.getParameter<
std::vector<double>>(
"dEdXweights")) {
11 edm::LogWarning(
"DivisionByZero") <<
"WARNING: the MIP->fC correction factor is zero or negative. It won't be " 12 "applied to correct trigger cell energies.";
15 edm::LogWarning(
"DivisionByZero") <<
"WARNING: the cell-thickness correction factor is zero or negative. It won't " 16 "be applied to correct trigger cell energies.";
24 int hwPt = trgCell.
hwPt();
39 double trgCellMipPt = trgCellMipP / cosh(trgCell.
eta());
46 const double MevToGeV(0.001);
53 <<
"Trigger cell energy forced to 0 by calibration coefficients.\n" 54 <<
"The configuration should be changed. " 55 <<
"Discarded layers should be defined in hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedLayers " 56 "and not with calibration coefficients = 0\n";
70 trgCell.
setP4(calibP4);
double eta() const final
momentum pseudorapidity
HGCalTriggerTools triggerTools_
std::vector< double > dEdX_weights_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
void setMipPt(double value)
void calibrateInMipT(l1t::HGCalTriggerCell &)
void calibrateMipTinGeV(l1t::HGCalTriggerCell &)
double LSB_scintillator_MIP_
void calibrateInGeV(l1t::HGCalTriggerCell &)
double phi() const final
momentum azimuthal angle
void setP4(const LorentzVector &p4) final
set 4-momentum
HGCalTriggerCellCalibration(const edm::ParameterSet &conf)