34 granularity_( pset.getUntrackedParameter<
string>(
"calibGranularity",
"bySL") ),
39 LogVerbatim(
"Calibration") <<
"[DTVDriftWriter]Constructor called!";
42 throw cms::Exception(
"Configuration") <<
"[DTVDriftWriter] Check parameter calibGranularity: " <<
granularity_ <<
" option not available.";
46 LogVerbatim(
"Calibration") <<
"[DTVDriftWriter]Destructor called!";
68 auto sl = superLayers.begin();
69 auto sl_end = superLayers.end();
70 for(; sl != sl_end; ++sl){
80 float vDriftNew = vDriftData.
vdrift;
83 mTimeNewMap->
set(slId,
87 LogVerbatim(
"Calibration") <<
"vDrift for: " << slId
88 <<
" Mean " << vDriftNew
89 <<
" Resolution " << resolutionNew;
94 mTimeNewMap->
set(slId,
98 LogVerbatim(
"Calibration") <<
"Keep original vDrift for: " << slId
107 LogVerbatim(
"Calibration") <<
"[DTVDriftWriter]Writing vdrift object to DB!";
108 string record =
"DTMtimeRcd";
109 DTCalibDBUtils::writeToDB<DTMtime>(
record, mTimeNewMap);
T getParameter(std::string const &) const
edm::ESHandle< DTGeometry > dtGeom_
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
virtual std::string explainSelf() const
def setup(process, global_tag, zero_tesla=False)
DTVDriftWriter(const edm::ParameterSet &pset)
~DTVDriftWriter() override
std::unique_ptr< dtCalibration::DTVDriftBaseAlgo > vDriftAlgo_
int get(int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
const DTMtime * mTimeMap_
void beginRun(const edm::Run &run, const edm::EventSetup &setup) override
T get(const Candidate &c)
const std::vector< const DTSuperLayer * > & superLayers() const
Return a vector of all SuperLayer.