22 namespace dtCalibration {
28 DTTTrigMatchRPhi::~DTTTrigMatchRPhi() {}
39 float tTrigMean,tTrigSigma,kFactor;
43 if(status != 0)
throw cms::Exception(
"[DTTTrigMatchRPhi]") <<
"Could not find tTrig entry in DB for"
48 float tTrigMeanNew,tTrigSigmaNew,kFactorNew;
50 if(!tTrigMap_->get(partnerSLId,tTrigMeanNew,tTrigSigmaNew,kFactorNew,
DTTimeUnits::ns)){
51 tTrigMeanNew = (tTrigMean + tTrigMeanNew)/2.;
53 tTrigSigmaNew = (tTrigSigmaNew + tTrigSigma)/2.;
56 return DTTTrigData(tTrigMeanNew,tTrigSigmaNew,kFactorNew);
57 }
else return DTTTrigData(tTrigMean,tTrigSigma,kFactor);
59 if(!tTrigMap_->get(partnerSLId,tTrigMeanNew,tTrigSigmaNew,kFactorNew,
DTTimeUnits::ns))
60 return DTTTrigData(tTrigMeanNew,tTrigSigmaNew,kFactorNew);
62 throw cms::Exception(
"[DTTTrigMatchRPhi]") <<
"Could not find tTrig entry in DB for"
63 << 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="")