CMS 3D CMS Logo

Public Member Functions | Private Attributes

HLTDynamicPrescaler Class Reference

Inheritance diagram for HLTDynamicPrescaler:
HLTFilter edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

void endJob ()
bool filter (edm::Event &event, edm::EventSetup const &setup)
 HLTDynamicPrescaler (edm::ParameterSet const &configuration)
 ~HLTDynamicPrescaler ()

Private Attributes

unsigned int m_count
unsigned int m_scale

Detailed Description

Definition at line 6 of file HLTDynamicPrescaler.cc.


Constructor & Destructor Documentation

HLTDynamicPrescaler::HLTDynamicPrescaler ( edm::ParameterSet const &  configuration) [explicit]

Definition at line 19 of file HLTDynamicPrescaler.cc.

                                                                              :
  m_count(0),
  m_scale(1) { 
}
HLTDynamicPrescaler::~HLTDynamicPrescaler ( )

Definition at line 24 of file HLTDynamicPrescaler.cc.

                                          {
}

Member Function Documentation

void HLTDynamicPrescaler::endJob ( void  ) [virtual]

Reimplemented from edm::EDFilter.

Definition at line 39 of file HLTDynamicPrescaler.cc.

                                 {
}
bool HLTDynamicPrescaler::filter ( edm::Event event,
edm::EventSetup const &  setup 
) [virtual]

Implements HLTFilter.

Definition at line 27 of file HLTDynamicPrescaler.cc.

References m_count, and m_scale.

                                                                              {
  ++m_count;

  if (m_count % m_scale)
    return false;

  if (m_count == m_scale * 10)
    m_scale = m_count;
  
  return true;
}

Member Data Documentation

unsigned int HLTDynamicPrescaler::m_count [private]

Definition at line 15 of file HLTDynamicPrescaler.cc.

Referenced by filter().

unsigned int HLTDynamicPrescaler::m_scale [private]

Definition at line 16 of file HLTDynamicPrescaler.cc.

Referenced by filter().