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;
int superLayer() const
Return the superlayer number.
DTChamberId chamberId() const
Return the corresponding ChamberId.