#include <DQMEventSelector.h>
Public Member Functions | |
bool | acceptEvent (const I2OChain &, const utils::TimePoint_t &) |
DQMEventSelector (const DQMEventConsRegPtr registrationInfo) | |
bool | operator< (const DQMEventSelector &other) const |
QueueID | queueId () const |
Private Attributes | |
const DQMEventConsRegPtr | registrationInfo_ |
DQM event selector
Definition at line 22 of file DQMEventSelector.h.
stor::DQMEventSelector::DQMEventSelector | ( | const DQMEventConsRegPtr | registrationInfo | ) | [inline] |
Definition at line 27 of file DQMEventSelector.h.
: registrationInfo_( registrationInfo ) {};
bool DQMEventSelector::acceptEvent | ( | const I2OChain & | ioc, |
const utils::TimePoint_t & | now | ||
) |
Returns true if the DQM event stored in the I2OChain passes this event selection.
Definition at line 9 of file DQMEventSelector.cc.
References stor::I2OChain::topFolderName().
{ if( registrationInfo_->isStale(now) ) return false; if( registrationInfo_->topLevelFolderName() == std::string( "*" ) ) return true; if( registrationInfo_->topLevelFolderName() == ioc.topFolderName() ) return true; return false; }
bool DQMEventSelector::operator< | ( | const DQMEventSelector & | other | ) | const |
Comparison:
Definition at line 21 of file DQMEventSelector.cc.
References queueId(), and registrationInfo_.
{ if ( queueId() != other.queueId() ) return ( queueId() < other.queueId() ); return ( *(registrationInfo_) < *(other.registrationInfo_) ); }
QueueID stor::DQMEventSelector::queueId | ( | ) | const [inline] |
Returns the ID of the queue corresponding to this selector.
Definition at line 44 of file DQMEventSelector.h.
References registrationInfo_.
Referenced by operator<().
{ return registrationInfo_->queueId(); }
const DQMEventConsRegPtr stor::DQMEventSelector::registrationInfo_ [private] |
Definition at line 53 of file DQMEventSelector.h.
Referenced by operator<(), and queueId().