Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:37

0001 
0002 /*
0003  *  See header file for a description of this class.
0004  *
0005  *  \author G. Cerminara - INFN Torino
0006  *
0007  *  threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
0008  *
0009  */
0010 
0011 #include "DQM/DTMonitorClient/src/DTDCSSummary.h"
0012 #include "DataFormats/FEDRawData/interface/FEDNumbering.h"
0013 
0014 #include "FWCore/ServiceRegistry/interface/Service.h"
0015 #include "FWCore/Framework/interface/ESHandle.h"
0016 #include "FWCore/Framework/interface/EventSetup.h"
0017 
0018 #include "DQMServices/Core/interface/DQMStore.h"
0019 
0020 using namespace std;
0021 using namespace edm;
0022 
0023 DTDCSSummary::DTDCSSummary(const ParameterSet& pset) { bookingdone = false; }
0024 
0025 DTDCSSummary::~DTDCSSummary() {}
0026 
0027 void DTDCSSummary::dqmEndLuminosityBlock(DQMStore::IBooker& ibooker,
0028                                          DQMStore::IGetter& igetter,
0029                                          edm::LuminosityBlock const& lumiSeg,
0030                                          edm::EventSetup const& context) {
0031   if (bookingdone)
0032     return;
0033 
0034   ibooker.setCurrentFolder("DT/EventInfo/DCSContents");
0035   // global fraction
0036   totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
0037   totalDCSFraction->Fill(-1);
0038   // Wheel "fractions" -> will be 0 or 1
0039   for (int wheel = -2; wheel != 3; ++wheel) {
0040     stringstream streams;
0041     streams << "DT_Wheel" << wheel;
0042     dcsFractions[wheel] = ibooker.bookFloat(streams.str());
0043     dcsFractions[wheel]->Fill(-1);
0044   }
0045 
0046   bookingdone = true;
0047 }
0048 
0049 void DTDCSSummary::dqmEndJob(DQMStore::IBooker& ibooker, DQMStore::IGetter& igetter) {}