20 namespace dtCalibration {
27 DTTTrigMatchRPhi::~DTTTrigMatchRPhi() {}
36 float tTrigMean, tTrigSigma, kFactor;
41 throw cms::Exception(
"[DTTTrigMatchRPhi]") <<
"Could not find tTrig entry in DB for" << slId << endl;
45 float tTrigMeanNew, tTrigSigmaNew, kFactorNew;
47 if (!tTrigMap_->get(partnerSLId, tTrigMeanNew, tTrigSigmaNew, kFactorNew,
DTTimeUnits::ns)) {
48 tTrigMeanNew = (tTrigMean + tTrigMeanNew) / 2.;
50 tTrigSigmaNew = (tTrigSigmaNew + tTrigSigma) / 2.;
53 return DTTTrigData(tTrigMeanNew, tTrigSigmaNew, kFactorNew);
57 if (!tTrigMap_->get(partnerSLId, tTrigMeanNew, tTrigSigmaNew, kFactorNew,
DTTimeUnits::ns))
58 return DTTTrigData(tTrigMeanNew, tTrigSigmaNew, kFactorNew);
60 throw cms::Exception(
"[DTTTrigMatchRPhi]") <<
"Could not find tTrig entry in DB for" << slId <<
"\n"
61 << partnerSLId << endl;
T getUntrackedParameter(std::string const &, T const &) const
DTChamberId chamberId() const
Return the corresponding ChamberId.
int superLayer() const
Return the superlayer number.
constexpr float correction(int sizeM1, int q_f, int q_l, uint16_t upper_edge_first_pix, uint16_t lower_edge_last_pix, float lorentz_shift, float theThickness, float cot_angle, float pitch, bool first_is_big, bool last_is_big)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const