33 : metname_(
"TTrigDBValidation"),
34 labelDBRef_(
pset.getParameter<
string>(
"labelDBRef")),
35 labelDB_(
pset.getParameter<
string>(
"labelDB")),
36 lowerLimit_(
pset.getUntrackedParameter<
int>(
"lowerLimit", 1)),
37 higherLimit_(
pset.getUntrackedParameter<
int>(
"higherLimit", 3)) {
49 const DTTtrig *DTTtrigRefMap = &*tTrig_Ref;
68 DTSuperLayerId slId((*it).first.wheelId, (*it).first.stationId, (*it).first.sectorId, (*it).first.slId);
73 float tTrigCorr = tTrigMean +
kFactor * tTrigRms;
75 <<
" Ttrig mean (ns): " << tTrigMean <<
" Ttrig rms (ns): " << tTrigRms
76 <<
" Ttrig k-Factor: " <<
kFactor <<
" Ttrig value (ns): " << tTrigCorr;
79 tTrigRefMap_[slId] = pair<float, float>(tTrigCorr, tTrigRms);
84 DTSuperLayerId slId((*it).first.wheelId, (*it).first.stationId, (*it).first.sectorId, (*it).first.slId);
89 float tTrigCorr = tTrigMean +
kFactor * tTrigRms;
91 <<
" Ttrig mean (ns): " << tTrigMean <<
" Ttrig rms (ns): " << tTrigRms
92 <<
" Ttrig k-Factor: " <<
kFactor <<
" Ttrig value (ns): " << tTrigCorr;
95 tTrigMap_[slId] = pair<float, float>(tTrigCorr, tTrigRms);
104 float difference =
tTrigMap_[(*it).first].first - (*it).second.first;
107 int wheel = (*it).first.chamberId().wheel();
108 int sector = (*it).first.chamberId().sector();
112 LogTrace(
metname_) <<
"Filling histos for super-layer: " << (*it).first <<
" difference: " << difference;
116 int station = (*it).first.chamberId().station();
126 int slBin =
entry + (*it).first.superLayer();
146 stringstream str_wheel;
148 stringstream str_sector;
149 str_sector << sector;
151 string lHistoName =
"_W" + str_wheel.str() +
"_Sec" + str_sector.str();
153 iBooker.
setCurrentFolder(
"DT/DtCalib/TTrigDBValidation/Wheel" + str_wheel.str());
157 hDifference = iBooker.
book1D(
"TTrigDifference" + lHistoName,
"difference between the two tTrig values", 11, 0, 11);
159 pair<int, int> mypair(
wheel, sector);
182 "TTrigDifference_W" + wh.str(),
"W" + wh.str() +
": summary of tTrig differences", 11, 1, 12, 14, 1, 15);
200 if (
ret == 0 ||
bin == 11)