39 theDQMStore->setCurrentFolder(
"DT/EventInfo/DCSContents");
41 totalDCSFraction = theDQMStore->bookFloat(
"DTDCSSummary");
42 totalDCSFraction->setLumiFlag();
44 globalHVSummary = theDQMStore->book2D(
"HVGlbSummary",
"HV Status Summary",1,1,13,5,-2,3);
45 globalHVSummary->setAxisTitle(
"Sectors",1);
46 globalHVSummary->setAxisTitle(
"Wheel",2);
48 for(
int wh=-2;wh<=2;wh++){
50 stringstream wheel_str; wheel_str << wh;
52 MonitorElement* FractionWh = theDQMStore->bookFloat(
"DT_Wheel"+wheel_str.str());
55 totalDCSFractionWh.push_back(FractionWh);
58 globalHVSummary->Reset();
66 totalDCSFraction->Reset();
68 for(
int wh=-2;wh<=2;wh++){
69 totalDCSFractionWh[wh+2]->Reset();
80 bool null_pointer_histo(0);
82 std::vector<float> wh_activeFrac;
84 for(
int wh=-2;wh<=2;wh++){
86 stringstream wheel_str; wheel_str << wh;
88 string hActiveUnitsPath =
"DT/EventInfo/DCSContents/hActiveUnits"+wheel_str.str();
92 float activeFrac =
static_cast<float>(hActiveUnits->
getBinContent(2)) /
95 if(activeFrac < 0.) activeFrac=-1;
97 wh_activeFrac.push_back(activeFrac);
100 totalDCSFraction->Fill(activeFrac);
101 totalDCSFractionWh[wh+2]->Fill(activeFrac);
104 LogTrace(
"DTDQM|DTMonitorClient|DTDCSByLumiSummary")
105 <<
"[DTDCSByLumiSummary]: got null pointer retrieving histo at :"
106 << hActiveUnitsPath <<
" for lumi # " << lumiNumber
107 <<
"client operation not performed." << endl;
109 null_pointer_histo=
true;
114 if(!null_pointer_histo) dcsFracPerLumi[lumiNumber] = wh_activeFrac;
123 map<int,std::vector<float> >::const_iterator fracPerLumiIt = dcsFracPerLumi.begin();
124 map<int,std::vector<float> >::const_iterator fracPerLumiEnd = dcsFracPerLumi.end();
126 if (fracPerLumiIt != fracPerLumiEnd ) {
127 int fLumi = dcsFracPerLumi.begin()->first;
128 int lLumi = dcsFracPerLumi.rbegin()->first;
129 theDQMStore->setCurrentFolder(
"DT/EventInfo/DCSContents");
131 int nLumis = lLumi-fLumi + 1.;
134 for(
int wh=-2; wh<=2; wh++) {
136 stringstream wheel_str; wheel_str << wh;
140 trend =
new DTTimeEvolutionHisto(theDQMStore,
"hDCSFracTrendWh" + wheel_str.str(),
"Fraction of DT-HV ON Wh" + wheel_str.str(),
141 nLumis, fLumi, 1,
false, 2);
143 hDCSFracTrend.push_back(trend);
148 float goodLSperWh[5] = {0,0,0,0,0};
149 float badLSperWh[5] = {0,0,0,0,0};
152 for(;fracPerLumiIt!=fracPerLumiEnd;++fracPerLumiIt) {
154 for(
int wh=-2; wh<=2; wh++) {
156 std::vector<float> activeFracPerWh;
157 activeFracPerWh = fracPerLumiIt->second;
159 hDCSFracTrend[wh+2]->
setTimeSlotValue(activeFracPerWh[wh+2],fracPerLumiIt->first);
161 if( activeFracPerWh[wh+2] > 0 ) {
163 if( activeFracPerWh[wh+2] > 0.9 ) goodLSperWh[wh+2]++;
168 if( activeFracPerWh[wh+2] < 0 ) badLSperWh[wh+2]=-1;
176 for(
int wh=-2; wh<=2; wh++) {
178 if( goodLSperWh[wh+2] != 0 || badLSperWh[wh+2] == -1 ) {
180 float r = badLSperWh[wh+2]/fabs(goodLSperWh[wh+2] + badLSperWh[wh+2]);
181 if( r > 0.5 ) globalHVSummary->Fill(1,wh,0);
182 else globalHVSummary->Fill(1,wh,1);
183 if( r == -1 ) globalHVSummary->Fill(1,wh,-1);
187 globalHVSummary->Fill(1,wh,0);
LuminosityBlockID id() const
virtual void endRun(const edm::Run &run, const edm::EventSetup &setup)
void setTimeSlotValue(float value, int timeSlot)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
DTDCSByLumiSummary(const edm::ParameterSet &pset)
Constructor.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
LuminosityBlockNumber_t luminosityBlock() const
virtual ~DTDCSByLumiSummary()
Destructor.
double getBinContent(int binx) const
get content of bin (1-D)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")