CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 /*
00002  * \file L1TEfficiencyJets_Offline.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/L1TEfficiencyJets_Offline.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 L1TEfficiencyJets_Offline::L1TEfficiencyJets_Offline(const ParameterSet & ps){
00037   
00038   // Inicializing Variables
00039   if (m_verbose) {
00040     cout << "[L1TEfficiencyJets_Offline:] ____________ Storage inicialization ____________ " << endl;
00041     cout << "[L1TEfficiencyJets_Offline:] Setting up dbe folder: L1T/Efficiency/Jets" << endl;
00042   }
00043   
00044   dbe = Service < DQMStore > ().operator->();
00045   dbe->setVerbose(0);
00046   dbe->setCurrentFolder("L1T/Efficiency/Jets");
00047   
00048   // Inicializing Variables
00049   if (m_verbose) {cout << "[L1TEfficiencyJets_Offline:] Pointer for DQM Store: " << dbe << endl;}
00050 }
00051 
00052 //_____________________________________________________________________
00053 L1TEfficiencyJets_Offline::~L1TEfficiencyJets_Offline(){}
00054 
00055 //_____________________________________________________________________
00056 void L1TEfficiencyJets_Offline::beginJob(void){
00057   
00058   if (m_verbose) {cout << "[L1TEfficiencyJets_Offline:] Called beginJob." << endl;}
00059 
00060 }
00061 
00062 //_____________________________________________________________________
00063 void L1TEfficiencyJets_Offline::endJob(void){
00064   
00065   if (m_verbose) {cout << "[L1TEfficiencyJets_Offline:] Called endJob." << endl;}
00066 
00067 }
00068 
00069 //_____________________________________________________________________
00070 // BeginRun: as input you get filtered events...
00071 //_____________________________________________________________________
00072 void L1TEfficiencyJets_Offline::beginRun(const edm::Run& run, const edm::EventSetup& iSetup){
00073   
00074   if (m_verbose) {cout << "[L1TEfficiencyJets_Offline:] Called endRun." << endl;}
00075   
00076 }  
00077 
00078 //_____________________________________________________________________
00079 void L1TEfficiencyJets_Offline::endRun(const edm::Run& run, const edm::EventSetup& iSetup){
00080   
00081   if (m_verbose) {cout << "[L1TEfficiencyJets_Offline:] Called endRun." << endl;}
00082   
00083 }
00084 
00085 //_____________________________________________________________________
00086 void L1TEfficiencyJets_Offline::beginLuminosityBlock(LuminosityBlock const& lumiBlock, EventSetup const& c) {
00087   
00088   if(m_verbose){
00089     cout << "[L1TEfficiencyJets_Offline:] Called beginLuminosityBlock at LS=" 
00090          << lumiBlock.id().luminosityBlock() << endl;
00091   }
00092 }
00093 
00094 //_____________________________________________________________________
00095 void L1TEfficiencyJets_Offline::endLuminosityBlock(LuminosityBlock const& lumiBlock, EventSetup const& c) {
00096    
00097    if(m_verbose){
00098      cout << "[L1TEfficiencyJets_Offline:] Called endLuminosityBlock at LS=" 
00099           << lumiBlock.id().luminosityBlock() << endl;
00100   }
00101 }
00102  
00103  
00104 //_____________________________________________________________________
00105 void L1TEfficiencyJets_Offline::analyze(const Event & iEvent, const EventSetup & eventSetup){
00106 
00107 }
00108 
00109 //define this as a plug-in
00110 DEFINE_FWK_MODULE(L1TEfficiencyJets_Offline);