CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventConsumerSelector.h
Go to the documentation of this file.
1 // $Id: EventConsumerSelector.h,v 1.9 2011/03/07 15:31:31 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_EventConsumerSelector_h
5 #define EventFilter_StorageManager_EventConsumerSelector_h
6 
7 #include <boost/shared_ptr.hpp>
8 
13 
14 namespace stor {
15 
26  {
27 
28  public:
29 
34  EventConsumerSelector( const EventConsRegPtr registrationInfo ):
36  outputModuleId_( 0 ),
37  registrationInfo_( registrationInfo ),
38  acceptedEvents_( 0 )
39  {}
40 
45 
51  void initialize( const InitMsgView& );
52 
57  bool acceptEvent( const I2OChain& );
58 
62  QueueID const queueId() const { return registrationInfo_->queueId(); }
63 
67  bool isInitialized() const { return initialized_; }
68 
72  bool operator<(const EventConsumerSelector& other) const;
73 
74  private:
75 
77  unsigned int outputModuleId_;
80  unsigned long acceptedEvents_;
81 
82  };
83 
84 } // namespace stor
85 
86 #endif // EventFilter_StorageManager_EventConsumerSelector_h
87 
88 
QueueID const queueId() const
const EventConsRegPtr registrationInfo_
boost::shared_ptr< stor::EventConsumerRegistrationInfo > EventConsRegPtr
bool operator<(const EventConsumerSelector &other) const
EventConsumerSelector(const EventConsRegPtr registrationInfo)
bool acceptEvent(const I2OChain &)
void initialize(const InitMsgView &)
boost::shared_ptr< TriggerSelector > TriggerSelectorPtr