CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
JME::JetResolution Class Reference

#include <JetResolution.h>

Public Types

using Token = edm::ESGetToken< JetResolutionObject, JetResolutionRcd >
 

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 Token &)
 

Private Attributes

std::shared_ptr< JetResolutionObjectm_object
 

Detailed Description

Definition at line 21 of file JetResolution.h.

Member Typedef Documentation

◆ Token

Definition at line 30 of file JetResolution.h.

Constructor & Destructor Documentation

◆ JetResolution() [1/3]

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

Definition at line 14 of file JetResolution.cc.

References corrVsCorr::filename, and m_object.

14  {
15  m_object = std::make_shared<JetResolutionObject>(filename);
16  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42

◆ JetResolution() [2/3]

JetResolution::JetResolution ( const JetResolutionObject object)

Definition at line 18 of file JetResolution.cc.

References m_object, and resolutioncreator_cfi::object.

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

◆ JetResolution() [3/3]

JME::JetResolution::JetResolution ( )
inline

Definition at line 25 of file JetResolution.h.

25  {
26  // Empty
27  }

Member Function Documentation

◆ dump()

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

Definition at line 36 of file JetResolution.h.

References m_object.

36 { m_object->dump(); }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42

◆ get()

const JetResolution JetResolution::get ( const edm::EventSetup setup,
const Token token 
)
static

◆ getResolution()

float JetResolution::getResolution ( const JetParameters parameters) const

Definition at line 28 of file JetResolution.cc.

References m_object, and AlCaHarvesting_cff::record.

Referenced by metsig::METSignificance::getCovariance().

28  {
30  if (!record)
31  return 1;
32 
33  return m_object->evaluateFormula(*record, parameters);
34  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42

◆ getResolutionObject()

const JetResolutionObject* JME::JetResolution::getResolutionObject ( ) const
inline

Definition at line 39 of file JetResolution.h.

References m_object.

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

Member Data Documentation

◆ m_object

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

Definition at line 42 of file JetResolution.h.

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