CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMEventSelector.cc
Go to the documentation of this file.
1 // $Id: DQMEventSelector.cc,v 1.6 2011/03/07 15:31:32 mommsen Exp $
3 
5 
6 using namespace stor;
7 
9 (
10  const I2OChain& ioc,
11  const utils::TimePoint_t& now
12 )
13 {
14  if( registrationInfo_->isStale(now) ) return false;
15  if( registrationInfo_->topLevelFolderName() == std::string( "*" ) ) return true;
16  if( registrationInfo_->topLevelFolderName() == ioc.topFolderName() ) return true;
17  return false;
18 }
19 
20 
22 {
23  if ( queueId() != other.queueId() )
24  return ( queueId() < other.queueId() );
25  return ( *(registrationInfo_) < *(other.registrationInfo_) );
26 }
27 
28 
29 
QueueID queueId() const
bool acceptEvent(const I2OChain &, const utils::TimePoint_t &)
boost::posix_time::ptime TimePoint_t
Definition: Utils.h:35
std::string topFolderName() const
Definition: I2OChain.cc:475
bool operator<(const DQMEventSelector &other) const
const DQMEventConsRegPtr registrationInfo_