36 dbLabel_( pset.getUntrackedParameter<
string>(
"dbLabel",
"") ),
40 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection] Constructor called" << endl;
44 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection] Destructor called" << endl;
52 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection]: TTrig version: " << tTrig->
version() << endl;
68 float tTrigMean,tTrigSigma,
kFactor;
74 float tTrigMeanNew = tTrigCorr.
mean;
75 float tTrigSigmaNew = tTrigCorr.
sigma;
76 float kFactorNew = tTrigCorr.
kFactor;
79 LogVerbatim(
"Calibration") <<
"New tTrig for: " << (*sl)->id()
80 <<
" mean from " << tTrigMean <<
" to " << tTrigMeanNew
81 <<
" sigma from " << tTrigSigma <<
" to " << tTrigSigmaNew
82 <<
" kFactor from " << kFactor <<
" to " << kFactorNew << endl;
88 LogVerbatim(
"Calibration") <<
"Keep old tTrig for: " << (*sl)->id()
89 <<
" mean " << tTrigMean
90 <<
" sigma " << tTrigSigma
91 <<
" kFactor " << kFactor << endl;
98 LogVerbatim(
"Calibration") <<
"[DTTTrigCorrection]: Writing ttrig object to DB!" << endl;
99 string record =
"DTTtrigRcd";
100 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 std::string explainSelf() const
const std::string & version() const
access version
def setup(process, global_tag, zero_tesla=False)
~DTTTrigCorrection() override
Destructor.
const DTTtrig * tTrigMap_
std::unique_ptr< dtCalibration::DTTTrigBaseCorrection > correctionAlgo_
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_
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
DTTTrigCorrection(const edm::ParameterSet &pset)
Constructor.
T get(const Candidate &c)
const std::vector< const DTSuperLayer * > & superLayers() const
Return a vector of all SuperLayer.