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 23 of file DummySelector.h.

Constructor & Destructor Documentation

◆ DummySelector()

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

Definition at line 25 of file DummySelector.h.

25 : updated_(false) {}

Member Function Documentation

◆ newEvent()

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

Definition at line 26 of file DummySelector.h.

26 { updated_ = true; }

References updated_.

◆ operator()()

template<typename T >
bool DummySelector::operator() ( const T )
inline

Definition at line 28 of file DummySelector.h.

28  {
29  if (!updated_)
30  throw edm::Exception(edm::errors::Configuration) << "DummySelector: forgot to call newEvent\n";
31  return true;
32  }

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

Member Data Documentation

◆ updated_

bool DummySelector::updated_
private

Definition at line 35 of file DummySelector.h.

Referenced by newEvent(), and operator()().

DummySelector::updated_
bool updated_
Definition: DummySelector.h:35
Exception
Definition: hltDiff.cc:246
edm::errors::Configuration
Definition: EDMException.h:36