36 LogVerbatim(
"Calibration") <<
"[DTT0Correction] Constructor called" << endl;
39 string theAlgoName = pset.
getParameter<
string>(
"correctionAlgo");
44 LogVerbatim(
"Calibration") <<
"[DTT0Correction] Destructor called" << endl;
45 delete correctionAlgo_;
53 LogVerbatim(
"Calibration") <<
"[DTT0Correction]: T0 version: " << t0H->version() << endl;
59 correctionAlgo_->setES(setup);
67 for(
auto sl = muonGeom_->superLayers().begin();
68 sl != muonGeom_->superLayers().end(); ++sl) {
69 for(vector<const DTLayer*>::const_iterator layer = (*sl)->layers().begin();
70 layer != (*sl)->layers().end(); ++layer) {
72 const DTTopology& dtTopo = (*layer)->specificTopology();
78 for(
int wire = firstWire; wire <= lastWire; ++wire){
79 DTWireId wireId((*layer)->id(),wire);
88 float t0MeanNew = t0Corr.
mean;
89 float t0RMSNew = t0Corr.
rms;
92 LogVerbatim(
"Calibration") <<
"New t0 for: " << wireId
93 <<
" mean from " << t0Mean <<
" to " << t0MeanNew
94 <<
" rms from " << t0RMS <<
" to " << t0RMSNew << endl;
100 LogVerbatim(
"Calibration") <<
"Keep old t0 for: " << wireId
101 <<
" mean " << t0Mean
102 <<
" rms " << t0RMS << endl;
111 LogVerbatim(
"Calibration") <<
"[DTT0Correction]: Writing t0 object to DB!" << endl;
112 string record =
"DTT0Rcd";
113 DTCalibDBUtils::writeToDB<DTT0>(
record, t0NewMap);
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit)
T getParameter(std::string const &) const
virtual void beginRun(const edm::Run &run, const edm::EventSetup &setup)
virtual std::string explainSelf() const
int firstChannel() const
Returns the wire number of the first wire.
int lastChannel() const
Returns the wire number of the last wire.
DTT0Correction(const edm::ParameterSet &pset)
Constructor.
virtual ~DTT0Correction()
Destructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T get(const Candidate &c)