53 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar") <<
"DTRunConditionVar: destructor called";
61 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar") <<
"DTRunConditionVar: bookHistograms";
83 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar")
84 <<
"--- [DTRunConditionVar] Event analysed #Run: " <<
event.id().run() <<
" #Event: " <<
event.id().event()
104 uint32_t indexCh = DTid.
rawId();
107 if ((*segment).hasPhi()) {
108 int nHitsPhi = (*segment).phiSegment()->degreesOfFreedom() + 2;
109 double xdir = (*segment).phiSegment()->localDirection().x();
110 double zdir = (*segment).phiSegment()->localDirection().z();
112 double anglePhiSegm = fabs(atan(
xdir / zdir)) * 180. /
TMath::Pi();
115 double segmentVDrift = segment->phiSegment()->vDrift();
120 float vDriftPhi1(0.), vDriftPhi2(0.);
121 float ResPhi1(0.), ResPhi2(0.);
125 if (status1 != 0 || status2 != 0) {
127 throw cms::Exception(
"DTRunConditionVarClient") <<
"Could not find vDrift entry in DB for" << sl << endl;
130 float vDriftMed = (vDriftPhi1 + vDriftPhi2) / 2.;
132 segmentVDrift = vDriftMed * (1. - segmentVDrift);
134 double segmentT0 = segment->phiSegment()->t0();
136 if (segment->phiSegment()->ist0Valid())
138 if (segmentVDrift != vDriftMed)
149 int wh = dtCh.
wheel();
159 string bookingFolder =
"DT/02-Segments/Wheel" +
wheel.str() +
"/Sector" + sector.str() +
"/Station" +
station.str();
164 LogTrace(
"DTDQM|DTMonitorModule|DTRunConditionVar")
165 <<
"[DTRunConditionVar]: booking histos in " << bookingFolder << endl;