CMS 3D CMS Logo

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

#include <JetResolution.h>

Public Member Functions

void dump () const
 
float getResolution (const JetParameters &parameters) const
 
const JetResolutionObjectgetResolutionObject () const
 
 JetResolution (const std::string &filename)
 
 JetResolution (const JetResolutionObject &object)
 
 JetResolution ()
 

Static Public Member Functions

static const JetResolution get (const edm::EventSetup &, const std::string &)
 

Private Attributes

std::shared_ptr
< JetResolutionObject
m_object
 

Detailed Description

Definition at line 18 of file JetResolution.h.

Constructor & Destructor Documentation

JetResolution::JetResolution ( const std::string &  filename)

Definition at line 14 of file JetResolution.cc.

References m_object.

14  {
15  m_object = std::shared_ptr<JetResolutionObject>(new JetResolutionObject(filename));
16  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
tuple filename
Definition: lut2db_cfg.py:20
JetResolution::JetResolution ( const JetResolutionObject object)

Definition at line 18 of file JetResolution.cc.

References m_object.

18  {
19  m_object = std::shared_ptr<JetResolutionObject>(new JetResolutionObject(object));
20  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
JME::JetResolution::JetResolution ( )
inline

Definition at line 22 of file JetResolution.h.

22  {
23  // Empty
24  }

Member Function Documentation

void JME::JetResolution::dump ( void  ) const
inline

Definition at line 32 of file JetResolution.h.

References m_object.

Referenced by JetResolutionDemo::analyze().

32  {
33  m_object->dump();
34  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
const JetResolution JetResolution::get ( const edm::EventSetup setup,
const std::string &  label 
)
static
float JetResolution::getResolution ( const JetParameters parameters) const

Definition at line 31 of file JetResolution.cc.

References m_object, and record.

Referenced by JetResolutionDemo::analyze().

31  {
33  if (! record)
34  return 1;
35 
36  return m_object->evaluateFormula(*record, parameters);
37  }
JetCorrectorParameters::Record record
Definition: classes.h:7
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
const JetResolutionObject* JME::JetResolution::getResolutionObject ( ) const
inline

Definition at line 37 of file JetResolution.h.

References m_object.

Referenced by JetResolutionDemo::analyze().

37  {
38  return m_object.get();
39  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42

Member Data Documentation

std::shared_ptr<JetResolutionObject> JME::JetResolution::m_object
private

Definition at line 42 of file JetResolution.h.

Referenced by dump(), getResolution(), getResolutionObject(), and JetResolution().