#include <CondTools/L1GtRunSettingsViewer/src/L1GtRunSettingsViewer.cc>
Public Member Functions | |
L1GtRunSettingsViewer (const edm::ParameterSet &) | |
~L1GtRunSettingsViewer () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
Private Attributes | |
std::string | m_maskAlgoKey |
std::string | m_maskTechKey |
std::string | m_maskVetoAlgoKey |
std::string | m_maskVetoTechKey |
std::string | m_prescalesKey |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 56 of file L1GtRunSettingsViewer.cc.
L1GtRunSettingsViewer::L1GtRunSettingsViewer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 86 of file L1GtRunSettingsViewer.cc.
: m_prescalesKey( iConfig.getParameter< std::string >( "prescalesKey" ) ), m_maskAlgoKey( iConfig.getParameter< std::string >( "maskAlgoKey" ) ), m_maskTechKey( iConfig.getParameter< std::string >( "maskTechKey" ) ), m_maskVetoAlgoKey( iConfig.getParameter< std::string >( "maskVetoAlgoKey" ) ), m_maskVetoTechKey( iConfig.getParameter< std::string >( "maskVetoTechKey" ) ) { //now do what ever initialization is needed }
L1GtRunSettingsViewer::~L1GtRunSettingsViewer | ( | ) |
Definition at line 97 of file L1GtRunSettingsViewer.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void L1GtRunSettingsViewer::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 112 of file L1GtRunSettingsViewer.cc.
References gather_cfg::cout, m_maskAlgoKey, m_maskTechKey, m_maskVetoAlgoKey, m_maskVetoTechKey, m_prescalesKey, L1GtPrescaleFactors::print(), L1GtTriggerMask::print(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ using namespace edm; // Utility class l1t::DataWriter dataWriter ; // Get most recent L1TriggerKeyList L1TriggerKeyList keyList ; dataWriter.fillLastTriggerKeyList( keyList ) ; // For the given GTRS key, find the corresponding payload tokens. // Use the payload tokens to retrieve the corresponding objects. // Call the print functions for these objects. if( !m_prescalesKey.empty() ) { std::string pfAlgoToken = keyList.token( "L1GtPrescaleFactorsAlgoTrigRcd", "L1GtPrescaleFactors", m_prescalesKey ) ; if( pfAlgoToken.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtPrescaleFactorsAlgoTrigRcd with key " << m_prescalesKey ; } else { L1GtPrescaleFactors pfAlgo ; dataWriter.readObject( pfAlgoToken, pfAlgo ) ; pfAlgo.print( std::cout ) ; } std::string pfTechToken = keyList.token( "L1GtPrescaleFactorsTechTrigRcd", "L1GtPrescaleFactors", m_prescalesKey ) ; if( pfTechToken.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtPrescaleFactorsTechTrigRcd with key " << m_prescalesKey ; } else { L1GtPrescaleFactors pfTech ; dataWriter.readObject( pfTechToken, pfTech ) ; pfTech.print( std::cout ) ; } } if( !m_maskAlgoKey.empty() ) { std::string token = keyList.token( "L1GtTriggerMaskAlgoTrigRcd", "L1GtTriggerMask", m_maskAlgoKey ) ; if( token.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtTriggerMaskAlgoTrigRcd with key " << m_maskAlgoKey ; } else { L1GtTriggerMask mask ; dataWriter.readObject( token, mask ) ; mask.print( std::cout ) ; } } if( !m_maskTechKey.empty() ) { std::string token = keyList.token( "L1GtTriggerMaskTechTrigRcd", "L1GtTriggerMask", m_maskTechKey ) ; if( token.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtTriggerMaskTechTrigRcd with key " << m_maskTechKey ; } else { L1GtTriggerMask mask ; dataWriter.readObject( token, mask ) ; mask.print( std::cout ) ; } } if( !m_maskVetoAlgoKey.empty() ) { std::string token = keyList.token( "L1GtTriggerMaskVetoAlgoTrigRcd", "L1GtTriggerMask", m_maskVetoAlgoKey ) ; if( token.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtTriggerMaskVetoAlgoTrigRcd with key " << m_maskVetoAlgoKey ; } else { L1GtTriggerMask mask ; dataWriter.readObject( token, mask ) ; mask.print( std::cout ) ; } } if( !m_maskVetoTechKey.empty() ) { std::string token = keyList.token( "L1GtTriggerMaskVetoTechTrigRcd", "L1GtTriggerMask", m_maskVetoTechKey ) ; if( token.empty() ) { edm::LogError( "L1-O2O" ) << "No payload for L1GtTriggerMaskVetoTechTrigRcd with key " << m_maskVetoTechKey ; } else { L1GtTriggerMask mask ; dataWriter.readObject( token, mask ) ; mask.print( std::cout ) ; } } }
void L1GtRunSettingsViewer::beginJob | ( | void | ) | [private, virtual] |
void L1GtRunSettingsViewer::endJob | ( | void | ) | [private, virtual] |
std::string L1GtRunSettingsViewer::m_maskAlgoKey [private] |
Definition at line 69 of file L1GtRunSettingsViewer.cc.
Referenced by analyze().
std::string L1GtRunSettingsViewer::m_maskTechKey [private] |
Definition at line 70 of file L1GtRunSettingsViewer.cc.
Referenced by analyze().
std::string L1GtRunSettingsViewer::m_maskVetoAlgoKey [private] |
Definition at line 71 of file L1GtRunSettingsViewer.cc.
Referenced by analyze().
std::string L1GtRunSettingsViewer::m_maskVetoTechKey [private] |
Definition at line 72 of file L1GtRunSettingsViewer.cc.
Referenced by analyze().
std::string L1GtRunSettingsViewer::m_prescalesKey [private] |
Definition at line 68 of file L1GtRunSettingsViewer.cc.
Referenced by analyze().