CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/DQMOffline/L1Trigger/src/L1TEfficiency_Harvesting.cc

Go to the documentation of this file.
00001 /*
00002  * \file L1TEfficiency_Harvesting.cc
00003  *
00004  * $Date: 2012/11/22 17:10:19 $
00005  * $Revision: 1.1 $
00006  * \author J. Pela, P. Musella
00007  *
00008  */
00009 
00010 // L1TMonitor includes
00011 #include "DQMOffline/L1Trigger/interface/L1TEfficiency_Harvesting.h"
00012 
00013 #include "DQMServices/Core/interface/DQMStore.h"
00014 
00015 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
00016 #include "DataFormats/Common/interface/ConditionsInEdm.h" // Parameters associated to Run, LS and Event
00017 #include "DataFormats/Luminosity/interface/LumiDetails.h" // Luminosity Information
00018 #include "DataFormats/Luminosity/interface/LumiSummary.h" // Luminosity Information
00019 
00020 #include "CondFormats/L1TObjects/interface/L1GtTriggerMenu.h"
00021 #include "CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h"
00022 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
00023 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"            // L1Gt - Masks
00024 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskAlgoTrigRcd.h" // L1Gt - Masks
00025 #include "CondFormats/DataRecord/interface/L1GtTriggerMenuRcd.h"
00026 #include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsAlgoTrigRcd.h"
00027 
00028 #include "DataFormats/Histograms/interface/MEtoEDMFormat.h"
00029 
00030 #include "TList.h"
00031 
00032 using namespace edm;
00033 using namespace std;
00034 
00035 //_____________________________________________________________________
00036 L1TEfficiency_Harvesting::L1TEfficiency_Harvesting(const ParameterSet & ps){
00037   
00038   // Inicializing Variables
00039   if (m_verbose) {
00040     cout << "[L1TEfficiency_Harvesting:] ____________ Storage inicialization ____________ " << endl;
00041     cout << "[L1TEfficiency_Harvesting:] Setting up dbe folder: L1T/Efficiency" << endl;
00042   }
00043   
00044   dbe = Service < DQMStore > ().operator->();
00045   dbe->setVerbose(0);
00046   dbe->setCurrentFolder("L1T/Efficiency");
00047   
00048   // Inicializing Variables
00049   if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Pointer for DQM Store: " << dbe << endl;}
00050 }
00051 
00052 //_____________________________________________________________________
00053 L1TEfficiency_Harvesting::~L1TEfficiency_Harvesting(){}
00054 
00055 //_____________________________________________________________________
00056 void L1TEfficiency_Harvesting::beginJob(void){
00057   
00058   if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called beginJob." << endl;}
00059   
00060   // get hold of back-end interface
00061 //   DQMStore *dbe = 0;
00062 //   dbe = Service < DQMStore > ().operator->();
00063   
00064 }
00065 
00066 //_____________________________________________________________________
00067 void L1TEfficiency_Harvesting::endJob(void){
00068   
00069   if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endJob." << endl;}
00070 
00071 }
00072 
00073 //_____________________________________________________________________
00074 // BeginRun: as input you get filtered events...
00075 //_____________________________________________________________________
00076 void L1TEfficiency_Harvesting::beginRun(const edm::Run& run, const edm::EventSetup& iSetup){
00077   
00078   if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
00079 
00080 }  
00081 
00082 //_____________________________________________________________________
00083 void L1TEfficiency_Harvesting::endRun(const edm::Run& run, const edm::EventSetup& iSetup){
00084   
00085   if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
00086   
00087 }
00088 
00089 //_____________________________________________________________________
00090 void L1TEfficiency_Harvesting::beginLuminosityBlock(LuminosityBlock const& lumiBlock, EventSetup const& c) {
00091   
00092   if(m_verbose){
00093     cout << "[L1TEfficiency_Harvesting:] Called beginLuminosityBlock at LS=" 
00094          << lumiBlock.id().luminosityBlock() << endl;
00095   }
00096 }
00097 
00098 //_____________________________________________________________________
00099 void L1TEfficiency_Harvesting::endLuminosityBlock(LuminosityBlock const& lumiBlock, EventSetup const& c) {
00100   
00101   if(m_verbose){
00102     cout << "[L1TEfficiency_Harvesting:] Called endLuminosityBlock at LS=" 
00103          << lumiBlock.id().luminosityBlock() << endl;
00104   }
00105 }
00106 
00107 
00108 //_____________________________________________________________________
00109 void L1TEfficiency_Harvesting::analyze(const Event & iEvent, const EventSetup & eventSetup){
00110   
00111   
00112 }
00113 
00114 //define this as a plug-in
00115 DEFINE_FWK_MODULE(L1TEfficiency_Harvesting);