CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DummySelector Class Reference

#include <DummySelector.h>

Public Member Functions

 DummySelector (const edm::ParameterSet &, edm::ConsumesCollector &iC)
 
void newEvent (const edm::Event &, const edm::EventSetup &)
 
template<typename T >
bool operator() (const T &)
 

Private Attributes

bool updated_
 

Detailed Description

Definition at line 21 of file DummySelector.h.

Constructor & Destructor Documentation

DummySelector::DummySelector ( const edm::ParameterSet ,
edm::ConsumesCollector iC 
)
inlineexplicit

Definition at line 23 of file DummySelector.h.

23 : updated_(false) { }

Member Function Documentation

void DummySelector::newEvent ( const edm::Event ,
const edm::EventSetup  
)
inline

Definition at line 24 of file DummySelector.h.

24 { updated_ = true; }
template<typename T >
bool DummySelector::operator() ( const T )
inline

Definition at line 26 of file DummySelector.h.

References edm::errors::Configuration, and Exception.

26  {
27  if(!updated_)
29  << "DummySelector: forgot to call newEvent\n";
30  return true;
31  }

Member Data Documentation

bool DummySelector::updated_
private

Definition at line 33 of file DummySelector.h.