27 : metname_(
"TTrigDBValidation"),
30 lowerLimit_(pset.getUntrackedParameter<int>(
"lowerLimit", 1)),
31 higherLimit_(pset.getUntrackedParameter<int>(
"higherLimit", 3)),
49 for (
int wheel = -2; wheel <= 2; wheel++) {
59 DTSuperLayerId slId((*it).first.wheelId, (*it).first.stationId, (*it).first.sectorId, (*it).first.slId);
64 float tTrigCorr = tTrigMean + kFactor * tTrigRms;
66 <<
" Ttrig mean (ns): " << tTrigMean <<
" Ttrig rms (ns): " << tTrigRms
67 <<
" Ttrig k-Factor: " << kFactor <<
" Ttrig value (ns): " << tTrigCorr;
70 tTrigRefMap_[slId] = pair<float, float>(tTrigCorr, tTrigRms);
75 DTSuperLayerId slId((*it).first.wheelId, (*it).first.stationId, (*it).first.sectorId, (*it).first.slId);
80 float tTrigCorr = tTrigMean + kFactor * tTrigRms;
82 <<
" Ttrig mean (ns): " << tTrigMean <<
" Ttrig rms (ns): " << tTrigRms
83 <<
" Ttrig k-Factor: " << kFactor <<
" Ttrig value (ns): " << tTrigCorr;
86 tTrigMap_[slId] = pair<float, float>(tTrigCorr, tTrigRms);
95 float difference =
tTrigMap_[(*it).first].first - (*it).second.first;
98 int wheel = (*it).first.chamberId().wheel();
99 int sector = (*it).first.chamberId().sector();
103 LogTrace(
metname_) <<
"Filling histos for super-layer: " << (*it).first <<
" difference: " << difference;
107 int station = (*it).first.chamberId().station();
117 int slBin = entry + (*it).first.superLayer();
121 tTrigDiffHistos_[make_pair(wheel, sector)]->setBinContent(slBin, difference);
134 LogTrace(
metname_) <<
" Booking histos for Wheel, Sector: " << wheel <<
", " << sector;
137 stringstream str_wheel;
139 stringstream str_sector;
140 str_sector << sector;
142 string lHistoName =
"_W" + str_wheel.str() +
"_Sec" + str_sector.str();
144 iBooker.
setCurrentFolder(
"DT/DtCalib/TTrigDBValidation/Wheel" + str_wheel.str());
148 hDifference = iBooker.
book1D(
"TTrigDifference" + lHistoName,
"difference between the two tTrig values", 11, 0, 11);
150 pair<int, int> mypair(wheel, sector);
173 "TTrigDifference_W" + wh.str(),
"W" + wh.str() +
": summary of tTrig differences", 11, 1, 12, 14, 1, 15);
191 if (ret == 0 || bin == 11)
Log< level::Info, true > LogVerbatim
tuple ret
prodAgent to be discontinued
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Operations.
virtual void setCurrentFolder(std::string const &fullpath)
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
const std::string & version() const
access version
int slFromBin(int bin) const
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDB_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
bool getData(T &iHolder) const
Abs< T >::type abs(const T &t)
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDBRef_
int stationFromBin(int bin) const
const DTTtrig * DTTtrigRefMap
DTtTrigDBValidation(const edm::ParameterSet &pset)
Constructor.
~DTtTrigDBValidation() override
Destructor.
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
const DTTtrig * DTTtrigMap
std::map< int, MonitorElement * > tTrigDiffWheel_
void bookHistos(DQMStore::IBooker &, int, int)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
const DTGeometry * dtGeom
const_iterator begin() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
const_iterator end() const