CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ModifyObjectValueBase Class Reference

#include <ModifyObjectValueBase.h>

Inheritance diagram for ModifyObjectValueBase:
EGExtraInfoModifierFromFloatValueMaps EGExtraInfoModifierFromIntValueMaps EGFull5x5ShowerShapeModifierFromValueMaps

Public Member Functions

virtual void modifyObject (pat::Electron &) const
 
virtual void modifyObject (pat::Photon &) const
 
virtual void modifyObject (pat::Muon &) const
 
virtual void modifyObject (pat::Tau &) const
 
virtual void modifyObject (pat::Jet &) const
 
 ModifyObjectValueBase (const edm::ParameterSet &conf)
 
const std::string & name () const
 
virtual void setConsumes (edm::ConsumesCollector &)
 
virtual void setEvent (const edm::Event &)
 
virtual void setEventContent (const edm::EventSetup &)
 
virtual ~ModifyObjectValueBase ()
 

Private Attributes

const std::string name_
 

Detailed Description

Definition at line 18 of file ModifyObjectValueBase.h.

Constructor & Destructor Documentation

ModifyObjectValueBase::ModifyObjectValueBase ( const edm::ParameterSet conf)
inline

Definition at line 20 of file ModifyObjectValueBase.h.

20  :
21  name_( conf.getParameter<std::string>("modifierName") ) {}
T getParameter(std::string const &) const
virtual ModifyObjectValueBase::~ModifyObjectValueBase ( )
inlinevirtual

Definition at line 23 of file ModifyObjectValueBase.h.

23 {}

Member Function Documentation

virtual void ModifyObjectValueBase::modifyObject ( pat::Electron ) const
inlinevirtual

Reimplemented in EGFull5x5ShowerShapeModifierFromValueMaps, EGExtraInfoModifierFromFloatValueMaps, and EGExtraInfoModifierFromIntValueMaps.

Definition at line 29 of file ModifyObjectValueBase.h.

References edm::hlt::Exception, and name_.

29  {
30  throw cms::Exception("InvalidConfiguration")
31  << name_ << " is not configured to handle electrons!";
32  }
virtual void ModifyObjectValueBase::modifyObject ( pat::Photon ) const
inlinevirtual

Reimplemented in EGFull5x5ShowerShapeModifierFromValueMaps, EGExtraInfoModifierFromFloatValueMaps, and EGExtraInfoModifierFromIntValueMaps.

Definition at line 33 of file ModifyObjectValueBase.h.

References edm::hlt::Exception, and name_.

33  {
34  throw cms::Exception("InvalidConfiguration")
35  << name_ << " is not configured to handle photons!";
36  }
virtual void ModifyObjectValueBase::modifyObject ( pat::Muon ) const
inlinevirtual

Definition at line 37 of file ModifyObjectValueBase.h.

References edm::hlt::Exception, and name_.

37  {
38  throw cms::Exception("InvalidConfiguration")
39  << name_ << " is not configured to handle muons!";
40  }
virtual void ModifyObjectValueBase::modifyObject ( pat::Tau ) const
inlinevirtual

Definition at line 41 of file ModifyObjectValueBase.h.

References edm::hlt::Exception, and name_.

41  {
42  throw cms::Exception("InvalidConfiguration")
43  << name_ << " is not configured to handle taus!";
44  }
virtual void ModifyObjectValueBase::modifyObject ( pat::Jet ) const
inlinevirtual

Definition at line 45 of file ModifyObjectValueBase.h.

References edm::hlt::Exception, and name_.

45  {
46  throw cms::Exception("InvalidConfiguration")
47  << name_ << " is not configured to handle jets!";
48  }
const std::string& ModifyObjectValueBase::name ( ) const
inline
virtual void ModifyObjectValueBase::setConsumes ( edm::ConsumesCollector )
inlinevirtual
virtual void ModifyObjectValueBase::setEvent ( const edm::Event )
inlinevirtual
virtual void ModifyObjectValueBase::setEventContent ( const edm::EventSetup )
inlinevirtual

Member Data Documentation

const std::string ModifyObjectValueBase::name_
private

Definition at line 53 of file ModifyObjectValueBase.h.

Referenced by modifyObject(), and name().