41 theDbe->setCurrentFolder(
"DT/EventInfo");
43 totalCertFraction = theDbe->bookFloat(
"CertificationSummary");
44 totalCertFraction->Fill(-1);
47 certMap = theDbe->book2D(
"CertificationSummaryMap",
"DT Certification Summary Map",12,1,13,5,-2,3);
48 certMap->setAxisTitle(
"sector",1);
49 certMap->setAxisTitle(
"wheel",2);
51 theDbe->setCurrentFolder(
"DT/EventInfo/CertificationContents");
53 for(
int wheel = -2; wheel != 3; ++wheel) {
55 streams <<
"DT_Wheel" << wheel;
56 certFractions[wheel] = theDbe->bookFloat(streams.str());
57 certFractions[wheel]->Fill(-1);
85 MonitorElement* effSummary = theDbe->get(
"DT/05-ChamberEff/EfficiencyGlbSummary");
86 MonitorElement* resSummary = theDbe->get(
"DT/02-Segments/ResidualsGlbSummary");
87 MonitorElement* segQualSummary = theDbe->get(
"DT/02-Segments/segmentSummary");
90 if(effSummary == 0 || resSummary == 0 || segQualSummary == 0) {
91 LogWarning(
"DQM|DTMonitorClient|DTCertificationSummary") <<
"*** Warning: not all needed summaries are present!" << endl;
96 totalCertFraction->Fill(0.);
97 certFractions[-2]->Fill(0.);
98 certFractions[-1]->Fill(0.);
99 certFractions[-0]->Fill(0.);
100 certFractions[1]->Fill(0.);
101 certFractions[2]->Fill(0.);
105 for(
int wheel = -2; wheel != 3; ++wheel) {
106 for(
int sector = 1; sector != 13; ++sector) {
109 double segQual = segQualSummary->
getBinContent(sector, wheel+3);
113 total =
min(res,eff);
118 certMap->Fill(sector,wheel,total);
121 certFractions[wheel]->Fill(certFractions[wheel]->getFloatValue() + weight*total);
122 double totalWeight = 1./60.;
123 totalCertFraction->Fill(totalCertFraction->getFloatValue() + totalWeight*
total);
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
DTCertificationSummary(const edm::ParameterSet &pset)
Constructor.
virtual void endRun(const edm::Run &run, const edm::EventSetup &setup)
virtual void beginRun(const edm::Run &run, const edm::EventSetup &setup)
virtual ~DTCertificationSummary()
Destructor.
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup)
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)
double getBinContent(int binx) const
get content of bin (1-D)