52 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar") <<
"DTRunConditionVar: destructor called";
60 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar") <<
"DTRunConditionVar: bookHistograms";
81 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar")
82 <<
"--- [DTRunConditionVar] Event analysed #Run: " <<
event.id().run() <<
" #Event: " <<
event.id().event()
98 uint32_t indexCh = DTid.
rawId();
101 if ((*segment).hasPhi()) {
102 int nHitsPhi = (*segment).phiSegment()->degreesOfFreedom() + 2;
103 double xdir = (*segment).phiSegment()->localDirection().x();
104 double zdir = (*segment).phiSegment()->localDirection().z();
106 double anglePhiSegm = fabs(atan(
xdir / zdir)) * 180. /
TMath::Pi();
109 double segmentVDrift = segment->phiSegment()->vDrift();
114 float vDriftPhi1(0.), vDriftPhi2(0.);
115 float ResPhi1(0.), ResPhi2(0.);
119 if (status1 != 0 || status2 != 0) {
121 throw cms::Exception(
"DTRunConditionVarClient") <<
"Could not find vDrift entry in DB for" << sl << endl;
124 float vDriftMed = (vDriftPhi1 + vDriftPhi2) / 2.;
126 segmentVDrift = vDriftMed * (1. - segmentVDrift);
128 double segmentT0 = segment->phiSegment()->t0();
130 if (segment->phiSegment()->ist0Valid())
132 if (segmentVDrift != vDriftMed)
143 int wh = dtCh.
wheel();
153 string bookingFolder =
"DT/02-Segments/Wheel" +
wheel.str() +
"/Sector" + sector.str() +
"/Station" +
station.str();
158 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar")
159 <<
"[DTRunConditionVar]: booking histos in " << bookingFolder << endl;