34 LogVerbatim(
"Calibration") <<
"[DTT0Correction] Constructor called" << endl;
38 LogVerbatim(
"Calibration") <<
"[DTT0Correction] Destructor called" << endl;
46 LogVerbatim(
"Calibration") <<
"[DTT0Correction]: T0 version: " << t0H->
version() << endl;
62 for(vector<const DTLayer*>::const_iterator layer = (*sl)->layers().begin();
63 layer != (*sl)->layers().end(); ++layer) {
65 const DTTopology& dtTopo = (*layer)->specificTopology();
71 for(
int wire = firstWire; wire <= lastWire; ++wire){
72 DTWireId wireId((*layer)->id(),wire);
81 float t0MeanNew = t0Corr.
mean;
82 float t0RMSNew = t0Corr.
rms;
85 LogVerbatim(
"Calibration") <<
"New t0 for: " << wireId
86 <<
" mean from " << t0Mean <<
" to " << t0MeanNew
87 <<
" rms from " << t0RMS <<
" to " << t0RMSNew << endl;
93 LogVerbatim(
"Calibration") <<
"Keep old t0 for: " << wireId
95 <<
" rms " << t0RMS << endl;
104 LogVerbatim(
"Calibration") <<
"[DTT0Correction]: Writing t0 object to DB!" << endl;
105 string record =
"DTT0Rcd";
106 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 std::string explainSelf() const
std::unique_ptr< dtCalibration::DTT0BaseCorrection > correctionAlgo_
def setup(process, global_tag, zero_tesla=False)
~DTT0Correction() override
Destructor.
edm::ESHandle< DTGeometry > muonGeom_
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
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.
const std::string & version() const
access version
T get(const Candidate &c)
const std::vector< const DTSuperLayer * > & superLayers() const
Return a vector of all SuperLayer.