22 namespace dtCalibration {
25 : calibChamber_(pset.getParameter<
string>(
"calibChamber")), value_(pset.getParameter<double>(
"value")) {
28 LogVerbatim(
"Calibration") <<
"[DTTTrigConstantShift] Applying constant correction value: " <<
value_ << endl;
32 int selWheel, selStation, selSector;
34 linestr >> selWheel >> selStation >> selSector;
50 float tTrigMean, tTrigSigma, kFactor;
53 throw cms::Exception(
"[DTTTrigConstantShift]") <<
"Could not find tTrig entry in DB for" << slId << endl;
55 float tTrigMeanNew = tTrigMean;
58 tTrigMeanNew = tTrigMean +
value_;
62 return DTTTrigData(tTrigMeanNew, tTrigSigma, kFactor);
Log< level::Info, true > LogVerbatim
void setES(const edm::EventSetup &setup) override
T getUntrackedParameter(std::string const &, T const &) const
const DTTtrig * tTrigMap_
DTChamberId chosenChamberId_
DTChamberId chamberId() const
Return the corresponding ChamberId.
DTTTrigData correction(const DTSuperLayerId &) override
~DTTTrigConstantShift() override
edm::ESGetToken< DTTtrig, DTTtrigRcd > ttrigToken_
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::string calibChamber_