21 namespace dtCalibration {
23 DTTTrigFillWithAverage::DTTTrigFillWithAverage(
const ParameterSet& pset):foundAverage_(
false) {
40 float tTrigMean,tTrigSigma, kFactor;
55 vector<DTSuperLayer*> dtSupLylist =
muonGeom_->superLayers();
64 for(vector<DTSuperLayer*>::const_iterator sl =
muonGeom_->superLayers().begin();
65 sl !=
muonGeom_->superLayers().end(); ++sl) {
66 float tTrigMean,tTrigSigma,kFactor;
71 ave2Mean += tTrigMean*tTrigMean;
72 aveSigma += tTrigSigma;
73 ave2Sigma += tTrigSigma*tTrigSigma;
74 aveKFactor += kFactor;
80 float rmsMean = ave2Mean/(nIter - 1) - aveMean*aveMean;
81 rmsMean =
sqrt(rmsMean);
83 float rmsSigma = ave2Sigma/(nIter - 1) - aveSigma*aveSigma;
84 rmsSigma =
sqrt(rmsSigma);
93 LogVerbatim(
"Calibration") <<
"[DTTTrigFillWithAverage] Found from " << nIter <<
" SL's\n"
94 <<
" average tTrig mean: " << aveMean <<
"\n"
95 <<
" tTrig mean RMS: " << rmsMean <<
"\n"
96 <<
" average tTrig sigma: " << aveSigma <<
"\n"
97 <<
" tTrig sigma RMS: " << rmsSigma <<
"\n"
T getUntrackedParameter(std::string const &, T const &) const
struct dtCalibration::DTTTrigFillWithAverage::@54 initialTTrig_
virtual ~DTTTrigFillWithAverage()
virtual void setES(const edm::EventSetup &setup)
edm::ESHandle< DTGeometry > muonGeom_
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_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual DTTTrigData correction(const DTSuperLayerId &)