20 namespace dtCalibration {
26 DTTTrigMatchRPhi::~DTTTrigMatchRPhi() {}
37 float tTrigMean,tTrigSigma,kFactor;
41 if(status != 0)
throw cms::Exception(
"[DTTTrigMatchRPhi]") <<
"Could not find tTrig entry in DB for"
46 float tTrigMeanNew,tTrigSigmaNew,kFactorNew;
48 if(!tTrigMap_->get(partnerSLId,tTrigMeanNew,tTrigSigmaNew,kFactorNew,
DTTimeUnits::ns)){
49 tTrigMeanNew = (tTrigMean + tTrigMeanNew)/2.;
51 tTrigSigmaNew = (tTrigSigmaNew + tTrigSigma)/2.;
54 return DTTTrigData(tTrigMeanNew,tTrigSigmaNew,kFactorNew);
55 }
else return DTTTrigData(tTrigMean,tTrigSigma,kFactor);
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"
61 << slId <<
"\n" << partnerSLId << endl;
T getUntrackedParameter(std::string const &, T const &) const
DTChamberId chamberId() const
Return the corresponding ChamberId.
int superLayer() const
Return the superlayer number.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")