CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HLTPrescaleProvider Class Reference

#include <HLTPrescaleProvider.h>

Public Member Functions

HLTConfigProvider const & hltConfigProvider () const
 
template<typename T >
 HLTPrescaleProvider (edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
 
template<typename T >
 HLTPrescaleProvider (edm::ParameterSet const &pset, edm::ConsumesCollector &iC, T &module)
 
bool init (const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
 
L1GtUtils const & l1GtUtils () const
 
l1t::L1TGlobalUtil const & l1tGlobalUtil () const
 
int prescaleSet (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
unsigned int prescaleValue (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
 combining the two methods above More...
 
std::pair< int, int > prescaleValues (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
 Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path. More...
 
std::pair< std::vector
< std::pair< std::string, int >
>, int > 
prescaleValuesInDetail (const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
 

Private Attributes

unsigned char count_ [5] = {0,0,0,0,0}
 
HLTConfigProvider hltConfigProvider_
 
L1GtUtils l1GtUtils_
 
l1t::L1TGlobalUtil l1tGlobalUtil_
 

Detailed Description

This class provides access routines to get hold of the HLT Configuration

Author
Martin Grunewald

Originally the functions in here were in HLTConfigProvider. The functions that use L1GtUtils and get products from the Event were moved into this class in 2015 when the consumes function calls were added. W. David Dagenhart

See header file for documentation

Author
Martin Grunewald

Definition at line 35 of file HLTPrescaleProvider.h.

Constructor & Destructor Documentation

template<typename T >
HLTPrescaleProvider::HLTPrescaleProvider ( edm::ParameterSet const &  pset,
edm::ConsumesCollector &&  iC,
T module 
)

Definition at line 90 of file HLTPrescaleProvider.h.

92  :
HLTPrescaleProvider(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
Definition: vlib.h:208
template<typename T >
HLTPrescaleProvider::HLTPrescaleProvider ( edm::ParameterSet const &  pset,
edm::ConsumesCollector iC,
T module 
)

Definition at line 96 of file HLTPrescaleProvider.h.

98  :
99  l1GtUtils_(pset, iC, false, module), l1tGlobalUtil_(pset, iC, module) { }
l1t::L1TGlobalUtil l1tGlobalUtil_
Definition: vlib.h:208

Member Function Documentation

HLTConfigProvider const& HLTPrescaleProvider::hltConfigProvider ( ) const
inline

Definition at line 55 of file HLTPrescaleProvider.h.

References hltConfigProvider_.

55 { return hltConfigProvider_; }
HLTConfigProvider hltConfigProvider_
bool HLTPrescaleProvider::init ( const edm::Run iRun,
const edm::EventSetup iSetup,
const std::string &  processName,
bool &  changed 
)

Run-dependent initialisation (non-const method) "init" return value indicates whether intitialisation has succeeded "changed" parameter indicates whether the config has actually changed

L1 GTA V3: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideL1TriggerL1GtUtils#Version_3

Definition at line 20 of file HLTPrescaleProvider.cc.

L1GtUtils const& HLTPrescaleProvider::l1GtUtils ( ) const
inline

Definition at line 56 of file HLTPrescaleProvider.h.

References l1GtUtils_.

56 { return l1GtUtils_; }
l1t::L1TGlobalUtil const& HLTPrescaleProvider::l1tGlobalUtil ( ) const
inline

Definition at line 57 of file HLTPrescaleProvider.h.

References l1tGlobalUtil_.

57 { return l1tGlobalUtil_; }
l1t::L1TGlobalUtil l1tGlobalUtil_
int HLTPrescaleProvider::prescaleSet ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

HLT prescale values via (L1) EventSetup current (default) prescale set index - to be taken from L1GtUtil via Event

error - notify user!

Definition at line 47 of file HLTPrescaleProvider.cc.

unsigned int HLTPrescaleProvider::prescaleValue ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
)

combining the two methods above

Definition at line 87 of file HLTPrescaleProvider.cc.

std::pair< int, int > HLTPrescaleProvider::prescaleValues ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
)

Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.

error - can't handle properly multiple L1GTSeed modules

error - can't handle properly multiple L1TSeed modules

Definition at line 99 of file HLTPrescaleProvider.cc.

std::pair< std::vector< std::pair< std::string, int > >, int > HLTPrescaleProvider::prescaleValuesInDetail ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  trigger 
)

error - can't handle properly multiple L1GTSeed modules

error - can't handle properly multiple L1TSeed modules

Definition at line 208 of file HLTPrescaleProvider.cc.

Member Data Documentation

unsigned char HLTPrescaleProvider::count_[5] = {0,0,0,0,0}
private

Definition at line 85 of file HLTPrescaleProvider.h.

HLTConfigProvider HLTPrescaleProvider::hltConfigProvider_
private

Definition at line 82 of file HLTPrescaleProvider.h.

Referenced by hltConfigProvider().

L1GtUtils HLTPrescaleProvider::l1GtUtils_
private

Definition at line 83 of file HLTPrescaleProvider.h.

Referenced by l1GtUtils().

l1t::L1TGlobalUtil HLTPrescaleProvider::l1tGlobalUtil_
private

Definition at line 84 of file HLTPrescaleProvider.h.

Referenced by l1tGlobalUtil().