#include <EventConsumerSelector.h>
Public Member Functions | |
bool | acceptEvent (const I2OChain &) |
EventConsumerSelector (const EventConsRegPtr registrationInfo) | |
void | initialize (const InitMsgView &) |
bool | isInitialized () const |
bool | operator< (const EventConsumerSelector &other) const |
QueueID const | queueId () const |
~EventConsumerSelector () | |
Private Attributes | |
unsigned long | acceptedEvents_ |
TriggerSelectorPtr | eventSelector_ |
bool | initialized_ |
unsigned int | outputModuleId_ |
const EventConsRegPtr | registrationInfo_ |
Defines the common interface for event and DQM consumer registration info objects.
Definition at line 25 of file EventConsumerSelector.h.
|
inline |
Constructs an EventConsumerSelector instance based on the specified registration information.
Definition at line 34 of file EventConsumerSelector.h.
|
inline |
Destructs the EventConsumerSelector instance.
Definition at line 44 of file EventConsumerSelector.h.
bool EventConsumerSelector::acceptEvent | ( | const I2OChain & | ioc | ) |
Tests whether the specified event is accepted by this selector - returns true if the event is accepted, false otherwise.
Definition at line 67 of file EventConsumerSelector.cc.
References acceptedEvents_, eventSelector_, stor::I2OChain::hltTriggerBits(), stor::I2OChain::hltTriggerCount(), initialized_, stor::I2OChain::outputModuleId(), outputModuleId_, and registrationInfo_.
void EventConsumerSelector::initialize | ( | const InitMsgView & | imv | ) |
Initializes the selector instance from the specified INIT message. EventConsumerSelector instances need to be initialized before they will accept any events.
Definition at line 15 of file EventConsumerSelector.cc.
References acceptedEvents_, edm::ParameterSet::addParameter(), alignCSCRings::e, eventSelector_, cppFunctionSkipper::exception, InitMsgView::hltTriggerNames(), initialized_, InitMsgView::outputModuleId(), outputModuleId_, InitMsgView::outputModuleLabel(), registrationInfo_, and cms::Exception::what().
Referenced by stor::EventDistributor::tagCompleteEventForQueues().
|
inline |
Tests whether this selector has been initialized.
Definition at line 67 of file EventConsumerSelector.h.
References initialized_.
bool EventConsumerSelector::operator< | ( | const EventConsumerSelector & | other | ) | const |
Comparison:
Definition at line 85 of file EventConsumerSelector.cc.
References queueId(), and registrationInfo_.
|
inline |
Returns the ID of the queue corresponding to this selector.
Definition at line 62 of file EventConsumerSelector.h.
References registrationInfo_.
Referenced by operator<().
|
private |
Definition at line 80 of file EventConsumerSelector.h.
Referenced by acceptEvent(), and initialize().
|
private |
Definition at line 79 of file EventConsumerSelector.h.
Referenced by acceptEvent(), and initialize().
|
private |
Definition at line 76 of file EventConsumerSelector.h.
Referenced by acceptEvent(), initialize(), and isInitialized().
|
private |
Definition at line 77 of file EventConsumerSelector.h.
Referenced by acceptEvent(), and initialize().
|
private |
Definition at line 78 of file EventConsumerSelector.h.
Referenced by acceptEvent(), initialize(), operator<(), and queueId().