Operations.
54 const DTTtrig* DTTtrigRefMap = &*tTrig_Ref;
59 const DTTtrig* DTTtrigMap = &*tTrig;
73 it != DTTtrigRefMap->
end(); ++it) {
75 (*it).first.stationId,
82 float tTrigCorr = tTrigMean + kFactor*tTrigRms;
84 <<
" Ttrig mean (ns): " << tTrigMean
85 <<
" Ttrig rms (ns): " << tTrigRms
86 <<
" Ttrig k-Factor: " << kFactor
87 <<
" Ttrig value (ns): " << tTrigCorr;
90 tTrigRefMap_[slId] = pair<float,float>(tTrigCorr,tTrigRms);
95 it != DTTtrigMap->
end(); ++it) {
97 (*it).first.stationId,
104 float tTrigCorr = tTrigMean + kFactor*tTrigRms;
106 <<
" Ttrig mean (ns): " << tTrigMean
107 <<
" Ttrig rms (ns): " << tTrigRms
108 <<
" Ttrig k-Factor: " << kFactor
109 <<
" Ttrig value (ns): " << tTrigCorr;
112 tTrigMap_[slId] = pair<float,float>(tTrigCorr,tTrigRms);
120 float difference =
tTrigMap_[(*it).first].first - (*it).second.first;
123 int wheel = (*it).first.chamberId().wheel();
124 int sector = (*it).first.chamberId().sector();
127 LogTrace(
metname_) <<
"Filling histos for super-layer: " << (*it).first <<
" difference: " << difference;
131 int station = (*it).first.chamberId().station();
132 if(station == 1) entry=0;
133 if(station == 2) entry=3;
134 if(station == 3) entry=6;
135 if(station == 4) entry=9;
137 int slBin = entry + (*it).first.superLayer();
138 if(slBin == 12) slBin=11;
140 tTrigDiffHistos_[make_pair(wheel,sector)]->setBinContent(slBin, difference);
const std::string & version() const
access version
def setup(process, global_tag, zero_tesla=False)
std::map< int, MonitorElement * > tTrigDiffWheel_
std::map< std::pair< int, int >, MonitorElement * > tTrigDiffHistos_
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
void setCurrentFolder(std::string const &fullpath)
edm::ESHandle< DTGeometry > dtGeom_
Abs< T >::type abs(const T &t)
std::map< DTSuperLayerId, std::pair< float, float > > tTrigRefMap_
std::map< DTSuperLayerId, std::pair< float, float > > tTrigMap_
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
void bookHistos(DQMStore::IBooker &, int, int)
const_iterator begin() const
const_iterator end() const