19 namespace dtCalibration {
22 : foundAverage_(
false) {
41 float tTrigMean, tTrigSigma, kFactor;
51 return DTTTrigData(corrMean, corrSigma, corrKFactor);
57 vector<const DTSuperLayer*> dtSupLylist =
muonGeom_->superLayers();
66 for (
auto sl =
muonGeom_->superLayers().begin(); sl !=
muonGeom_->superLayers().end(); ++sl) {
67 float tTrigMean, tTrigSigma, kFactor;
72 ave2Mean += tTrigMean * tTrigMean;
73 aveSigma += tTrigSigma;
74 ave2Sigma += tTrigSigma * tTrigSigma;
75 aveKFactor += kFactor;
81 float rmsMean = ave2Mean / (nIter - 1) - aveMean * aveMean;
82 rmsMean =
sqrt(rmsMean);
84 float rmsSigma = ave2Sigma / (nIter - 1) - aveSigma * aveSigma;
85 rmsSigma =
sqrt(rmsSigma);
94 LogVerbatim(
"Calibration") <<
"[DTTTrigFillWithAverage] Found from " << nIter <<
" SL's\n"
95 <<
" average tTrig mean: " << aveMean <<
"\n"
96 <<
" tTrig mean RMS: " << rmsMean <<
"\n"
97 <<
" average tTrig sigma: " << aveSigma <<
"\n"
98 <<
" tTrig sigma RMS: " << rmsSigma <<
"\n"
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
void setES(const edm::EventSetup &setup) override
edm::ESHandle< DTGeometry > muonGeom_
DTTTrigData correction(const DTSuperLayerId &) override
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
const DTTtrig * tTrigMap_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
struct dtCalibration::DTTTrigFillWithAverage::@63 initialTTrig_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
~DTTTrigFillWithAverage() override
edm::ESGetToken< DTTtrig, DTTtrigRcd > ttrigToken_