CMS 3D CMS Logo

Public Member Functions | Private Attributes

stor::DQMEventSelector Class Reference

#include <DQMEventSelector.h>

List of all members.

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.

                                                                 :
    registrationInfo_( 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 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(); }

Member Data Documentation

Definition at line 53 of file DQMEventSelector.h.

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