CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/L1TriggerConfig/L1GtConfigProducers/interface/L1GtPrescaleFactorsAndMasksTester.h

Go to the documentation of this file.
00001 #ifndef L1GtConfigProducers_L1GtPrescaleFactorsAndMasksTester_h
00002 #define L1GtConfigProducers_L1GtPrescaleFactorsAndMasksTester_h
00003 
00020 // system include files
00021 
00022 // user include files
00023 //   base class
00024 #include "FWCore/Framework/interface/EDAnalyzer.h"
00025 
00026 #include "FWCore/Framework/interface/Event.h"
00027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00028 
00029 // forward declarations
00030 class L1GtPrescaleFactors;
00031 class L1GtTriggerMask;
00032 
00033 
00034 // class declaration
00035 class L1GtPrescaleFactorsAndMasksTester: public edm::EDAnalyzer {
00036 
00037 public:
00038 
00039     // constructor
00040     explicit L1GtPrescaleFactorsAndMasksTester(const edm::ParameterSet&);
00041 
00042     // destructor
00043     virtual ~L1GtPrescaleFactorsAndMasksTester();
00044 
00045 private:
00046 
00048     void beginJob();
00049 
00051     void beginRun(const edm::Run&, const edm::EventSetup&);
00052 
00054     void beginLuminosityBlock(const edm::LuminosityBlock&,
00055             const edm::EventSetup&);
00056 
00058     void analyze(const edm::Event&, const edm::EventSetup&);
00059 
00061     void
00062     endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&);
00063 
00065     void endRun(const edm::Run&, const edm::EventSetup&);
00066 
00068     void endJob();
00069 
00070 private:
00071 
00073     void retrieveL1EventSetup(const edm::EventSetup&);
00074 
00076     void printL1EventSetup(const edm::EventSetup&);
00077 
00078 private:
00079 
00081 
00083     bool m_testerPrescaleFactors;
00084     bool m_testerTriggerMask;
00085     bool m_testerTriggerVetoMask;
00086 
00088     bool m_retrieveInBeginRun;
00089     bool m_retrieveInBeginLuminosityBlock;
00090     bool m_retrieveInAnalyze;
00091 
00093     bool m_printInBeginRun;
00094     bool m_printInBeginLuminosityBlock;
00095     bool m_printInAnalyze;
00096 
00098      int m_printOutput;
00099 
00100 
00101 
00102 private:
00103 
00105     const L1GtPrescaleFactors* m_l1GtPfAlgo;
00106     const L1GtPrescaleFactors* m_l1GtPfTech;
00107 
00109     const L1GtTriggerMask* m_l1GtTmAlgo;
00110     const L1GtTriggerMask* m_l1GtTmTech;
00111 
00112     const L1GtTriggerMask* m_l1GtTmVetoAlgo;
00113     const L1GtTriggerMask* m_l1GtTmVetoTech;
00114 
00115 };
00116 
00117 #endif /*L1GtConfigProducers_L1GtPrescaleFactorsAndMasksTester_h*/