00001 00002 /* 00003 * See header file for a description of this class. 00004 * 00005 * $Date: 2010/01/05 10:15:46 $ 00006 * $Revision: 1.2 $ 00007 * \author G. Cerminara - INFN Torino 00008 */ 00009 00010 00011 #include "DQM/DTMonitorClient/src/DTDCSSummary.h" 00012 #include "DataFormats/FEDRawData/interface/FEDNumbering.h" 00013 00014 #include "FWCore/ServiceRegistry/interface/Service.h" 00015 #include "FWCore/Framework/interface/ESHandle.h" 00016 #include "FWCore/Framework/interface/EventSetup.h" 00017 00018 #include "DQMServices/Core/interface/DQMStore.h" 00019 #include "DQMServices/Core/interface/MonitorElement.h" 00020 00021 00022 using namespace std; 00023 using namespace edm; 00024 00025 00026 00027 DTDCSSummary::DTDCSSummary(const ParameterSet& pset) {} 00028 00029 00030 00031 00032 DTDCSSummary::~DTDCSSummary() {} 00033 00034 00035 00036 void DTDCSSummary::beginJob(){ 00037 // get the DQMStore 00038 theDbe = Service<DQMStore>().operator->(); 00039 00040 // book the ME 00041 theDbe->setCurrentFolder("DT/EventInfo/DCSContents"); 00042 // global fraction 00043 totalDCSFraction = theDbe->bookFloat("DTDCSSummary"); 00044 totalDCSFraction->Fill(-1); 00045 // Wheel "fractions" -> will be 0 or 1 00046 for(int wheel = -2; wheel != 3; ++wheel) { 00047 stringstream streams; 00048 streams << "DT_Wheel" << wheel; 00049 dcsFractions[wheel] = theDbe->bookFloat(streams.str()); 00050 dcsFractions[wheel]->Fill(-1); 00051 } 00052 00053 } 00054 00055 00056 00057 void DTDCSSummary::beginLuminosityBlock(const LuminosityBlock& lumi, const EventSetup& setup) { 00058 } 00059 00060 00061 00062 00063 void DTDCSSummary::endLuminosityBlock(const LuminosityBlock& lumi, const EventSetup& setup){} 00064 00065 00066 00067 void DTDCSSummary::endJob() {} 00068 00069 00070 00071 void DTDCSSummary::analyze(const Event& event, const EventSetup& setup){} 00072 00073 00074