|
|
#include <DTtTrigDBValidation.h>
|
const DTGeometry * | dtGeom |
|
const DTTtrig * | DTTtrigMap |
|
const DTTtrig * | DTTtrigRefMap |
|
int | higherLimit_ |
|
edm::ESGetToken< DTTtrig, DTTtrigRcd > | labelDB_ |
|
edm::ESGetToken< DTTtrig, DTTtrigRcd > | labelDBRef_ |
|
int | lowerLimit_ |
|
std::string | metname_ |
|
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | muonGeomToken_ |
|
std::map< std::pair< int, int >, MonitorElement * > | tTrigDiffHistos_ |
|
std::map< int, MonitorElement * > | tTrigDiffWheel_ |
|
std::map< DTSuperLayerId, std::pair< float, float > > | tTrigMap_ |
|
std::map< DTSuperLayerId, std::pair< float, float > > | tTrigRefMap_ |
|
Definition at line 25 of file DTtTrigDBValidation.h.
◆ DTtTrigDBValidation()
◆ ~DTtTrigDBValidation()
DTtTrigDBValidation::~DTtTrigDBValidation |
( |
| ) |
|
|
override |
◆ analyze()
◆ bookHistograms()
Operations.
Implements DQMEDAnalyzer.
Definition at line 38 of file DTtTrigDBValidation.cc.
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();
References funct::abs(), DTTtrig::begin(), bookHistos(), dtGeom, DTTtrigMap, DTTtrigRefMap, DTTtrig::end(), mps_splice::entry, DTTtrig::get(), higherLimit_, dttriganalyzer_cfi::kFactor, labelDB_, labelDBRef_, LogTrace, lowerLimit_, genParticles_cff::map, metname_, muonGeomToken_, DTTimeUnits::ns, dqm::implementation::NavigatorBase::setCurrentFolder(), singleTopDQM_cfi::setup, relativeConstraints::station, tTrigDiffHistos_, tTrigDiffWheel_, tTrigMap_, tTrigRefMap_, DTTtrig::version(), and makeMuonMisalignmentScenario::wheel.
◆ bookHistos() [1/2]
Definition at line 167 of file DTtTrigDBValidation.cc.
173 "TTrigDifference_W" + wh.str(),
"W" + wh.str() +
": summary of tTrig differences", 11, 1, 12, 14, 1, 15);
References dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::setCurrentFolder(), tTrigDiffWheel_, and makeMuonMisalignmentScenario::wheel.
◆ bookHistos() [2/2]
void DTtTrigDBValidation::bookHistos |
( |
DQMStore::IBooker & |
iBooker, |
|
|
int |
wheel, |
|
|
int |
sector |
|
) |
| |
|
private |
Definition at line 133 of file DTtTrigDBValidation.cc.
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);
References dqm::implementation::IBooker::book1D(), LogTrace, metname_, dqm::implementation::NavigatorBase::setCurrentFolder(), tTrigDiffHistos_, and makeMuonMisalignmentScenario::wheel.
Referenced by bookHistograms().
◆ slFromBin()
int DTtTrigDBValidation::slFromBin |
( |
int |
bin | ) |
const |
|
private |
◆ stationFromBin()
int DTtTrigDBValidation::stationFromBin |
( |
int |
bin | ) |
const |
|
private |
◆ dtGeom
◆ DTTtrigMap
const DTTtrig* DTtTrigDBValidation::DTTtrigMap |
|
private |
◆ DTTtrigRefMap
const DTTtrig* DTtTrigDBValidation::DTTtrigRefMap |
|
private |
◆ higherLimit_
int DTtTrigDBValidation::higherLimit_ |
|
private |
◆ labelDB_
◆ labelDBRef_
◆ lowerLimit_
int DTtTrigDBValidation::lowerLimit_ |
|
private |
◆ metname_
std::string DTtTrigDBValidation::metname_ |
|
private |
◆ muonGeomToken_
◆ tTrigDiffHistos_
std::map<std::pair<int, int>, MonitorElement *> DTtTrigDBValidation::tTrigDiffHistos_ |
|
private |
◆ tTrigDiffWheel_
◆ tTrigMap_
std::map<DTSuperLayerId, std::pair<float, float> > DTtTrigDBValidation::tTrigMap_ |
|
private |
◆ tTrigRefMap_
std::map<DTSuperLayerId, std::pair<float, float> > DTtTrigDBValidation::tTrigRefMap_ |
|
private |
ret
prodAgent to be discontinued
const std::string & version() const
access version
virtual void setCurrentFolder(std::string const &fullpath)
const_iterator end() const
const DTTtrig * DTTtrigRefMap
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
const_iterator begin() const
const DTGeometry * dtGeom
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< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
Log< level::Info, true > LogVerbatim
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDB_
void bookHistos(DQMStore::IBooker &, int, int)
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
std::map< int, MonitorElement * > tTrigDiffWheel_
edm::ESGetToken< DTTtrig, DTTtrigRcd > labelDBRef_
Abs< T >::type abs(const T &t)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())