|
|
Go to the documentation of this file.
6 : lsb_(conf.getParameter<double>(
"lsb")),
7 fCperMIP_(conf.getParameter<
std::
vector<double>>(
"fCperMIP")),
8 chargeCollectionEfficiency_(conf.getParameter<
edm::
ParameterSet>(
"chargeCollectionEfficiency")
9 .getParameter<
std::
vector<double>>(
"values")),
10 thicknessCorrection_(conf.getParameter<
std::
vector<double>>(
"thicknessCorrection")),
11 dEdX_weights_(conf.getParameter<
std::
vector<double>>(
"dEdXweights")) {
14 edm::LogWarning(
"DivisionByZero") <<
"WARNING: zero or negative MIP->fC correction factor. It won't be "
15 "applied to correct trigger cell energies.";
20 edm::LogWarning(
"DivisionByZero") <<
"WARNING: zero or negative cell-thickness correction factor. It won't be "
21 "applied to correct trigger cell energies.";
26 edm::LogWarning(
"DivisionByZero") <<
"WARNING: zero or negative cell-thickness correction factor. It won't be "
27 "applied to correct trigger cell energies.";
35 constexpr
int kScintillatorIndex = 0;
39 <<
" in fCperMIP, which is of size " <<
fCperMIP_.size();
43 <<
" in chargeCollectionEfficiency, which is of size "
48 int hwPt = trgCell.
hwPt();
65 double trgCellMipPt = trgCellMipP / std::cosh(trgCell.
eta());
72 constexpr
double MevToGeV(0.001);
78 constexpr
int kScintillatorIndex = 0;
87 trgCellEt = trgCell.
mipPt() * MevToGeV;
96 trgCell.
setP4(calibP4);
std::vector< double > dEdX_weights_
std::vector< double > chargeCollectionEfficiency_
std::vector< double > thicknessCorrection_
Log< level::Warning, false > LogWarning
void setMipPt(double value)
double eta() const final
momentum pseudorapidity
HGCalTriggerCellCalibration(const edm::ParameterSet &conf)
std::vector< double > fCperMIP_
void setP4(const LorentzVector &p4) final
set 4-momentum
double phi() const final
momentum azimuthal angle
void calibrateInMipT(l1t::HGCalTriggerCell &) const
void calibrateMipTinGeV(l1t::HGCalTriggerCell &) const
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
void calibrateInGeV(l1t::HGCalTriggerCell &) const
HGCalTriggerTools triggerTools_