24 namespace dtCalibration {
26 DTTTrigConstantShift::DTTTrigConstantShift(
const ParameterSet& pset):
27 dbLabel_( pset.getUntrackedParameter<
string>(
"dbLabel",
"") ),
28 calibChamber_( pset.getParameter<
string>(
"calibChamber") ),
29 value_( pset.getParameter<double>(
"value") ) {
31 LogVerbatim(
"Calibration") <<
"[DTTTrigConstantShift] Applying constant correction value: " <<
value_ << endl;
35 int selWheel, selStation, selSector;
37 linestr >> selWheel >> selStation >> selSector;
55 float tTrigMean,tTrigSigma,kFactor;
57 if(status != 0)
throw cms::Exception(
"[DTTTrigConstantShift]") <<
"Could not find tTrig entry in DB for"
60 float tTrigMeanNew = tTrigMean;
64 tTrigMeanNew = tTrigMean +
value_;
68 return DTTTrigData(tTrigMeanNew,tTrigSigma,kFactor);
virtual void setES(const edm::EventSetup &setup)
const DTTtrig * tTrigMap_
DTChamberId chosenChamberId_
DTChamberId chamberId() const
Return the corresponding ChamberId.
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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::string calibChamber_