CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
stor::DQMEventSelector Class Reference

#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_
 

Detailed Description

DQM event selector

Author:
mommsen
Revision:
1.6
Date:
2011/03/07 15:31:31

Definition at line 22 of file DQMEventSelector.h.

Constructor & Destructor Documentation

stor::DQMEventSelector::DQMEventSelector ( const DQMEventConsRegPtr  registrationInfo)
inline

Definition at line 27 of file DQMEventSelector.h.

27  :
28  registrationInfo_( registrationInfo )
29  {};
const DQMEventConsRegPtr registrationInfo_

Member Function Documentation

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 AlCaHLTBitMon_QueryRunRegistry::string, and stor::I2OChain::topFolderName().

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 }
std::string topFolderName() const
Definition: I2OChain.cc:475
const DQMEventConsRegPtr registrationInfo_
bool DQMEventSelector::operator< ( const DQMEventSelector other) const

Comparison:

Definition at line 21 of file DQMEventSelector.cc.

References queueId(), and registrationInfo_.

22 {
23  if ( queueId() != other.queueId() )
24  return ( queueId() < other.queueId() );
25  return ( *(registrationInfo_) < *(other.registrationInfo_) );
26 }
QueueID queueId() const
const DQMEventConsRegPtr 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<().

44 { return registrationInfo_->queueId(); }
const DQMEventConsRegPtr registrationInfo_

Member Data Documentation

const DQMEventConsRegPtr stor::DQMEventSelector::registrationInfo_
private

Definition at line 53 of file DQMEventSelector.h.

Referenced by operator<(), and queueId().