CMS 3D CMS Logo

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

#include <HLTPrescaler.h>

Inheritance diagram for HLTPrescaler:
edm::stream::EDFilter< edm::GlobalCache< trigger::Efficiency > > edm::stream::EDFilterBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

virtual void beginLuminosityBlock (edm::LuminosityBlock const &lb, edm::EventSetup const &iSetup) override
 
virtual void endStream () override
 
virtual bool filter (edm::Event &iEvent, edm::EventSetup const &iSetup) override
 
 HLTPrescaler (edm::ParameterSet const &iConfig, const trigger::Efficiency *efficiency)
 
virtual ~HLTPrescaler ()
 
- Public Member Functions inherited from edm::stream::EDFilter< edm::GlobalCache< trigger::Efficiency > >
 EDFilter ()=default
 
- Public Member Functions inherited from edm::stream::EDFilterBase
 EDFilterBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilterBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static void globalEndJob (const trigger::Efficiency *efficiency)
 
static std::unique_ptr
< trigger::Efficiency
initializeGlobalCache (edm::ParameterSet const &)
 
- Static Public Member Functions inherited from edm::stream::EDFilterBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

unsigned int acceptCount_
 accept counter More...
 
unsigned int eventCount_
 event counter More...
 
edm::EDGetTokenT
< L1GlobalTriggerReadoutRecord
gtDigi1Token_
 
edm::EDGetTokenT
< GlobalAlgBlkBxCollection
gtDigi2Token_
 
edm::InputTag gtDigiTag_
 GT payload, to extract the prescale column index. More...
 
bool newLumi_
 check for (re)initialization of the prescale More...
 
unsigned int offsetCount_
 initial offset More...
 
unsigned int offsetPhase_
 
unsigned int prescaleFactor_
 accept one in prescaleFactor_; 0 means never to accept an event More...
 
edm::service::PrescaleServiceprescaleService_
 prescale service More...
 
unsigned int prescaleSet_
 l1 prescale set index More...
 

Static Private Attributes

static const unsigned int prescaleSeed_ = 65537
 "seed" used to initialize the prescale counter More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDFilter< edm::GlobalCache< trigger::Efficiency > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDFilterBase
typedef EDFilterAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

This class is an EDFilter implementing an HLT Prescaler module with associated book keeping.

Author
Martin Grunewald
Philipp Schieferdecker

Definition at line 40 of file HLTPrescaler.h.

Constructor & Destructor Documentation

HLTPrescaler::HLTPrescaler ( edm::ParameterSet const &  iConfig,
const trigger::Efficiency efficiency 
)
explicit

Definition at line 31 of file HLTPrescaler.cc.

HLTPrescaler::~HLTPrescaler ( )
virtual

Definition at line 51 of file HLTPrescaler.cc.

Member Function Documentation

void HLTPrescaler::beginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  iSetup 
)
overridevirtual

Reimplemented from edm::stream::EDFilterBase.

Definition at line 68 of file HLTPrescaler.cc.

void HLTPrescaler::endStream ( )
overridevirtual

Reimplemented from edm::stream::EDFilterBase.

Definition at line 141 of file HLTPrescaler.cc.

void HLTPrescaler::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 60 of file HLTPrescaler.cc.

bool HLTPrescaler::filter ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
overridevirtual

Implements edm::stream::EDFilterBase.

Definition at line 76 of file HLTPrescaler.cc.

void HLTPrescaler::globalEndJob ( const trigger::Efficiency efficiency)
static

Definition at line 151 of file HLTPrescaler.cc.

static std::unique_ptr<trigger::Efficiency> HLTPrescaler::initializeGlobalCache ( edm::ParameterSet const &  )
inlinestatic

Definition at line 49 of file HLTPrescaler.h.

49  {
50  return std::unique_ptr<trigger::Efficiency>(new trigger::Efficiency());
51  }

Member Data Documentation

unsigned int HLTPrescaler::acceptCount_
private

accept counter

Definition at line 81 of file HLTPrescaler.h.

unsigned int HLTPrescaler::eventCount_
private

event counter

Definition at line 78 of file HLTPrescaler.h.

edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> HLTPrescaler::gtDigi1Token_
private

Definition at line 95 of file HLTPrescaler.h.

edm::EDGetTokenT<GlobalAlgBlkBxCollection> HLTPrescaler::gtDigi2Token_
private

Definition at line 96 of file HLTPrescaler.h.

edm::InputTag HLTPrescaler::gtDigiTag_
private

GT payload, to extract the prescale column index.

Definition at line 94 of file HLTPrescaler.h.

bool HLTPrescaler::newLumi_
private

check for (re)initialization of the prescale

Definition at line 91 of file HLTPrescaler.h.

unsigned int HLTPrescaler::offsetCount_
private

initial offset

Definition at line 84 of file HLTPrescaler.h.

unsigned int HLTPrescaler::offsetPhase_
private

Definition at line 85 of file HLTPrescaler.h.

unsigned int HLTPrescaler::prescaleFactor_
private

accept one in prescaleFactor_; 0 means never to accept an event

Definition at line 75 of file HLTPrescaler.h.

const unsigned int HLTPrescaler::prescaleSeed_ = 65537
staticprivate

"seed" used to initialize the prescale counter

Definition at line 100 of file HLTPrescaler.h.

edm::service::PrescaleService* HLTPrescaler::prescaleService_
private

prescale service

Definition at line 88 of file HLTPrescaler.h.

unsigned int HLTPrescaler::prescaleSet_
private

l1 prescale set index

Definition at line 72 of file HLTPrescaler.h.