43 std::ostringstream
msg;
44 msg <<
"Faulty or incomplete I2OChain for event "
47 <<
" received from " << ioc.
hltURL()
48 <<
" (rbBufferId " << ioc.
rbBufferId() <<
").";
49 XCEPT_DECLARE( stor::exception::IncompleteEventMessage,
58 if ( !(
sharedResources_->configuration_->getDiskWritingParams().faultyEventsStream_.empty() ) &&
68 bool unexpected =
true;
98 if(
sharedResources_->initMsgCollection_->addIfUnique(ioc, serializedProds) )
110 catch( stor::exception::InvalidEventSelection&
e )
118 statisticsReporter_->getDataSenderMonitorCollection();
131 if( (*it)->acceptEvent( ioc ) )
141 if( (*it)->acceptEvent( ioc ) )
148 statisticsReporter_->getRunMonitorCollection();
154 statisticsReporter_->getDataSenderMonitorCollection();
169 if( (*it)->acceptEvent( ioc, now ) )
176 statisticsReporter_->getDataSenderMonitorCollection();
186 getDroppedDQMEventCountsMQ().addSample(1);
199 if( (*it)->acceptEvent( ioc ) )
206 statisticsReporter_->getRunMonitorCollection();
212 statisticsReporter_->getDataSenderMonitorCollection();
220 std::ostringstream
msg;
221 msg <<
"I2OChain with unknown message type " <<
223 XCEPT_DECLARE( stor::exception::WrongI2OMessageType,
231 statisticsReporter_->getDataSenderMonitorCollection();
253 sharedResources_->initMsgCollection_->getElementForOutputModuleLabel(
254 regPtr->outputModuleLabel()
256 if ( initMsgPtr.get() != 0 )
258 uint8* initPtr = &(*initMsgPtr)[0];
262 evtSel->initialize( initView );
264 catch( stor::exception::InvalidEventSelection&
e )
266 sharedResources_->alarmHandler_->
271 eventConsumerSelectors_.insert( evtSel );
282 for( EvtStrConfigList::const_iterator it = cl->begin(), itEnd = cl->end();
294 for( ErrStrConfigList::const_iterator it = cl->begin(), itEnd = cl->end();
320 unsigned int counter = 0;
326 if ( (*it)->isInitialized() )
348 unsigned int counter = 0;
354 if ( (*it)->isInitialized() )
367 eqc->clearStaleQueues(now);
371 dqc->clearStaleQueues(now);
TimePoint_t getCurrentTime()
uint32_t runNumber() const
boost::shared_ptr< DQMEventSelector > DQMEvtSelPtr
const MonitoredQuantity & getLumiSectionsSeenMQ() const
boost::shared_ptr< ErrStrConfigList > ErrStrConfigListPtr
void registerErrorStreams(const ErrStrConfigListPtr)
EventDistributor(SharedResourcesPtr sr)
void checkForStaleConsumers()
unsigned short i2oMessageCode() const
void addSample(const double &value=1)
EvtSelList eventStreamSelectors_
void tagForEventConsumer(QueueID)
const MonitoredQuantity & getErrorEventIDsReceivedMQ() const
boost::shared_ptr< SharedResources > SharedResourcesPtr
boost::shared_ptr< stor::EventConsumerRegistrationInfo > EventConsRegPtr
boost::shared_ptr< InitMsgBuffer > InitMsgSharedPtr
unsigned int faultyBits() const
unsigned int messageCode() const
SharedResourcesPtr sharedResources_
boost::shared_ptr< DQMEventQueueCollection > DQMEventQueueCollectionPtr
boost::shared_ptr< EvtStrConfigList > EvtStrConfigListPtr
uint32_t lumiSection() const
void addDQMEventSample(I2OChain const &)
void registerDQMEventConsumer(const DQMEventConsRegPtr)
DQMEvtSelList dqmEventSelectors_
unsigned int configuredStreamCount() const
ErrSelList errorStreamSelectors_
boost::shared_ptr< EventStreamSelector > EvtSelPtr
unsigned int configuredConsumerCount() const
bool isTaggedForAnyStream() const
void addErrorEventSample(I2OChain const &)
boost::posix_time::ptime TimePoint_t
void addEventSample(I2OChain const &)
void registerEventConsumer(const EventConsRegPtr)
boost::shared_ptr< EventConsumerSelector > ConsSelPtr
unsigned int initializedStreamCount() const
const MonitoredQuantity & getEventIDsReceivedMQ() const
boost::shared_ptr< ErrorStreamSelector > ErrSelPtr
void addInitSample(I2OChain const &)
void initialize(const InitMsgView &)
void initialize(const InitMsgView &)
unsigned int rbBufferId() const
void addFaultyEventSample(I2OChain const &)
FragKey fragmentKey() const
boost::shared_ptr< EventQueueCollection > EventQueueCollectionPtr
void tagCompleteEventForQueues(I2OChain &)
void tagForStream(StreamID)
ConsSelList eventConsumerSelectors_
void addUnwantedEvent(const I2OChain &)
void addSampleIfLarger(const double &value)
void tagForDQMEventConsumer(QueueID)
bool isTaggedForAnyDQMEventConsumer() const
void registerEventStreams(const EvtStrConfigListPtr)
uint32_t eventNumber() const
const MonitoredQuantity & getRunNumbersSeenMQ() const
boost::shared_ptr< stor::DQMEventConsumerRegistrationInfo > DQMEventConsRegPtr
void addEventToRelevantQueues(I2OChain &)
std::string hltURL() const
unsigned int initializedConsumerCount() const
bool isTaggedForAnyEventConsumer() const