35 dbLabel_( pset.getUntrackedParameter<
string>(
"dbLabel",
"") ) {
37 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection] Constructor called" << endl;
40 string theAlgoName = pset.
getParameter<
string>(
"correctionAlgo");
45 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection] Destructor called" << endl;
54 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection]: TTrig version: " << tTrig->version() << endl;
67 for(
auto sl =
muonGeom_->superLayers().begin();
68 sl !=
muonGeom_->superLayers().end(); ++sl) {
70 float tTrigMean,tTrigSigma,kFactor;
76 float tTrigMeanNew = tTrigCorr.
mean;
77 float tTrigSigmaNew = tTrigCorr.
sigma;
78 float kFactorNew = tTrigCorr.
kFactor;
81 LogVerbatim(
"Calibration") <<
"New tTrig for: " << (*sl)->id()
82 <<
" mean from " << tTrigMean <<
" to " << tTrigMeanNew
83 <<
" sigma from " << tTrigSigma <<
" to " << tTrigSigmaNew
84 <<
" kFactor from " << kFactor <<
" to " << kFactorNew << endl;
90 LogVerbatim(
"Calibration") <<
"Keep old tTrig for: " << (*sl)->id()
91 <<
" mean " << tTrigMean
92 <<
" sigma " << tTrigSigma
93 <<
" kFactor " << kFactor << endl;
100 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection]: Writing ttrig object to DB!" << endl;
101 string record =
"DTTtrigRcd";
102 DTCalibDBUtils::writeToDB<DTTtrig>(
record, tTrigNewMap);
T getParameter(std::string const &) const
int set(int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit)
virtual DTTTrigData correction(const DTSuperLayerId &)=0
virtual std::string explainSelf() const
virtual void setES(const edm::EventSetup &setup)=0
virtual void beginRun(const edm::Run &run, const edm::EventSetup &setup)
virtual ~DTTTrigCorrection()
Destructor.
const DTTtrig * tTrigMap_
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
edm::ESHandle< DTGeometry > muonGeom_
dtCalibration::DTTTrigBaseCorrection * correctionAlgo_
DTTTrigCorrection(const edm::ParameterSet &pset)
Constructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T get(const Candidate &c)