CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1TriggerConfig/L1GtConfigProducers/src/L1GtPrescaleFactorsAndMasksTester.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtPrescaleFactorsAndMasksTester.h"
00019 
00020 // system include files
00021 #include <iomanip>
00022 
00023 // user include files
00024 //   base class
00025 #include "FWCore/Framework/interface/EDAnalyzer.h"
00026 
00027 #include "FWCore/Framework/interface/Event.h"
00028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00029 
00030 #include "FWCore/Framework/interface/EventSetup.h"
00031 #include "FWCore/Framework/interface/ESHandle.h"
00032 
00033 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
00034 
00035 #include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsAlgoTrigRcd.h"
00036 #include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsTechTrigRcd.h"
00037 
00038 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
00039 
00040 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskAlgoTrigRcd.h"
00041 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskTechTrigRcd.h"
00042 
00043 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskVetoAlgoTrigRcd.h"
00044 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskVetoTechTrigRcd.h"
00045 
00046 // forward declarations
00047 
00048 // constructor(s)
00049 L1GtPrescaleFactorsAndMasksTester::L1GtPrescaleFactorsAndMasksTester(
00050         const edm::ParameterSet& parSet) {
00051     // empty
00052 }
00053 
00054 // destructor
00055 L1GtPrescaleFactorsAndMasksTester::~L1GtPrescaleFactorsAndMasksTester() {
00056     // empty
00057 }
00058 
00059 // loop over events
00060 void L1GtPrescaleFactorsAndMasksTester::analyze(const edm::Event& iEvent,
00061         const edm::EventSetup& evSetup) {
00062 
00063     //
00064     edm::ESHandle< L1GtPrescaleFactors> l1GtPfAlgo;
00065     evSetup.get< L1GtPrescaleFactorsAlgoTrigRcd>().get(l1GtPfAlgo) ;
00066 
00067     std::cout << "\nL1 GT prescale factors for algorithm triggers" << std::endl;
00068     l1GtPfAlgo->print(std::cout);
00069 
00070     edm::ESHandle< L1GtPrescaleFactors> l1GtPfTech;
00071     evSetup.get< L1GtPrescaleFactorsTechTrigRcd>().get(l1GtPfTech) ;
00072 
00073     std::cout << "\nL1 GT prescale factors for technical triggers" << std::endl;
00074     l1GtPfTech->print(std::cout);
00075 
00076     // 
00077     edm::ESHandle< L1GtTriggerMask> l1GtTmAlgo;
00078     evSetup.get< L1GtTriggerMaskAlgoTrigRcd>().get(l1GtTmAlgo) ;
00079 
00080     std::cout << "\nL1 GT trigger masks for algorithm triggers" << std::endl;
00081     l1GtTmAlgo->print(std::cout);
00082 
00083     edm::ESHandle< L1GtTriggerMask> l1GtTmTech;
00084     evSetup.get< L1GtTriggerMaskTechTrigRcd>().get(l1GtTmTech) ;
00085 
00086     std::cout << "\nL1 GT trigger masks for technical triggers" << std::endl;
00087     l1GtTmTech->print(std::cout);
00088 
00089     // 
00090     edm::ESHandle< L1GtTriggerMask> l1GtTmVetoAlgo;
00091     evSetup.get< L1GtTriggerMaskVetoAlgoTrigRcd>().get(l1GtTmVetoAlgo) ;
00092 
00093     std::cout << "\nL1 GT trigger veto masks for algorithm triggers"
00094             << std::endl;
00095     l1GtTmVetoAlgo->print(std::cout);
00096 
00097     edm::ESHandle< L1GtTriggerMask> l1GtTmVetoTech;
00098     evSetup.get< L1GtTriggerMaskVetoTechTrigRcd>().get(l1GtTmVetoTech) ;
00099 
00100     std::cout << "\nL1 GT trigger veto masks for technical triggers"
00101             << std::endl;
00102     l1GtTmVetoTech->print(std::cout);
00103 
00104 }