#include <CalibTracker/SiStripCommon/plugins/PrescaleEventFilter.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static void | globalEndJob (const prescale::Efficiency *efficiency) |
static std::unique_ptr< prescale::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 Member Functions | |
void | beginStream (edm::StreamID) override |
void | endStream () override |
bool | filter (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
unsigned int | acceptCount_ |
accept counter More... | |
unsigned int | eventCount_ |
event counter 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... | |
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< prescale::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 | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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) |
Description: Simple class to prescale events entering the Strip Tracker Calibration Tree
Implementation: Largely copied from HLTrigger/HLTcore/plugins/HLTPrescaler.cc, without the need to specify a specific trigger path
Definition at line 45 of file PrescaleEventFilter.cc.
|
explicit |
Definition at line 89 of file PrescaleEventFilter.cc.
|
override |
Definition at line 101 of file PrescaleEventFilter.cc.
|
overrideprivatevirtual |
Reimplemented from edm::stream::EDFilterBase.
Definition at line 133 of file PrescaleEventFilter.cc.
|
overrideprivatevirtual |
Reimplemented from edm::stream::EDFilterBase.
Definition at line 139 of file PrescaleEventFilter.cc.
References acceptCount_, and eventCount_.
|
static |
Definition at line 164 of file PrescaleEventFilter.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and DEFINE_FWK_MODULE.
|
overrideprivate |
Definition at line 111 of file PrescaleEventFilter.cc.
References acceptCount_, edm::EventID::event(), eventCount_, edm::EventBase::id(), offsetCount_, offsetPhase_, prescaleFactor_, prescaleSeed_, and mps_fire::result.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().
|
static |
Definition at line 150 of file PrescaleEventFilter.cc.
References accept(), prescale::Efficiency::acceptCount_, event(), prescale::Efficiency::eventCount_, and SiStripPI::max.
|
inlinestatic |
Definition at line 50 of file PrescaleEventFilter.cc.
References fillDescriptions(), and ALCARECOTkAlBeamHalo_cff::filter.
|
private |
accept counter
Definition at line 72 of file PrescaleEventFilter.cc.
Referenced by endStream(), and filter().
|
private |
event counter
Definition at line 69 of file PrescaleEventFilter.cc.
Referenced by endStream(), and filter().
|
private |
check for (re)initialization of the prescale
Definition at line 79 of file PrescaleEventFilter.cc.
|
private |
|
private |
Definition at line 76 of file PrescaleEventFilter.cc.
Referenced by filter().
|
private |
accept one in prescaleFactor_; 0 means never to accept an event
Definition at line 66 of file PrescaleEventFilter.cc.
Referenced by filter().
|
staticprivate |
"seed" used to initialize the prescale counter
Definition at line 82 of file PrescaleEventFilter.cc.
Referenced by filter().