CMS 3D CMS Logo

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 ()
 
 JetResolution (const JetResolutionObject &object)
 
 JetResolution (const std::string &filename)
 

Static Public Member Functions

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

Private Attributes

std::shared_ptr< JetResolutionObjectm_object
 

Detailed Description

Definition at line 17 of file JetResolution.h.

Constructor & Destructor Documentation

◆ JetResolution() [1/3]

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

Definition at line 14 of file JetResolution.cc.

14  {
15  m_object = std::make_shared<JetResolutionObject>(filename);
16  }

References corrVsCorr::filename, and m_object.

◆ JetResolution() [2/3]

JetResolution::JetResolution ( const JetResolutionObject object)

Definition at line 18 of file JetResolution.cc.

18  {
19  m_object = std::make_shared<JetResolutionObject>(object);
20  }

References m_object.

◆ JetResolution() [3/3]

JME::JetResolution::JetResolution ( )
inline

Definition at line 21 of file JetResolution.h.

21  {
22  // Empty
23  }

Member Function Documentation

◆ dump()

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

Definition at line 31 of file JetResolution.h.

31 { m_object->dump(); }

References m_object.

◆ get()

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

◆ getResolution()

float JetResolution::getResolution ( const JetParameters parameters) const

Definition at line 31 of file JetResolution.cc.

31  {
32  const JetResolutionObject::Record* record = m_object->getRecord(parameters);
33  if (!record)
34  return 1;
35 
36  return m_object->evaluateFormula(*record, parameters);
37  }

References m_object, and GlobalPosition_Frontier_DevDB_cff::record.

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

◆ getResolutionObject()

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

Definition at line 34 of file JetResolution.h.

34 { return m_object.get(); }

References m_object.

Member Data Documentation

◆ m_object

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

Definition at line 37 of file JetResolution.h.

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

BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
patZpeak.handle
handle
Definition: patZpeak.py:23
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
JetResolutionRcd
Definition: JetResolutionRcd.h:9
edm::ESHandle
Definition: DTSurvey.h:22
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
JME::JetResolution::get
static const JetResolution get(const edm::EventSetup &, const std::string &)
Definition: JetResolution.cc:23
label
const char * label
Definition: PFTauDecayModeTools.cc:11
JME::JetResolution::m_object
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:37