25 dbLabel_( pset.getUntrackedParameter<
string>(
"dbLabel",
"") ),
26 calibChamber_( pset.getParameter<
string>(
"calibChamber") ),
27 value_( pset.getParameter<double>(
"value") ) {
29 LogVerbatim(
"Calibration") <<
"[DTTTrigConstantShift] Applying constant correction value: " <<
value_ << endl;
33 int selWheel, selStation, selSector;
35 linestr >> selWheel >> selStation >> selSector;
53 float tTrigMean,tTrigSigma,
kFactor;
55 if(status != 0)
throw cms::Exception(
"[DTTTrigConstantShift]") <<
"Could not find tTrig entry in DB for" 58 float tTrigMeanNew = tTrigMean;
62 tTrigMeanNew = tTrigMean +
value_;
66 return DTTTrigData(tTrigMeanNew,tTrigSigma,kFactor);
virtual void setES(const edm::EventSetup &setup)
const DTTtrig * tTrigMap_
DTChamberId chosenChamberId_
DTChamberId chamberId() const
Return the corresponding ChamberId.
def setup(process, global_tag, zero_tesla=False)
virtual ~DTTTrigConstantShift()
virtual DTTTrigData correction(const DTSuperLayerId &)
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
std::string calibChamber_