CMS 3D CMS Logo

DummySelector Class Reference

#include <PhysicsTools/UtilAlgos/interface/DummySelector.h>

List of all members.

Public Member Functions

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

Private Attributes

bool updated_


Detailed Description

Definition at line 20 of file DummySelector.h.


Constructor & Destructor Documentation

DummySelector::DummySelector ( const edm::ParameterSet  )  [inline, explicit]

Definition at line 22 of file DummySelector.h.

00022 : updated_(false) { }


Member Function Documentation

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

Definition at line 23 of file DummySelector.h.

References updated_.

00023 { updated_ = true; }

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

Definition at line 25 of file DummySelector.h.

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

00025                             { 
00026     if(!updated_)     
00027       throw edm::Exception(edm::errors::Configuration)
00028         << "DummySelector: forgot to call newEvent\n"; 
00029     return true; 
00030   }  


Member Data Documentation

bool DummySelector::updated_ [private]

Definition at line 32 of file DummySelector.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:13 2009 for CMSSW by  doxygen 1.5.4