CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< JetResolutionObject
m_object
 

Detailed Description

Definition at line 21 of file JetResolution.h.

Member Typedef Documentation

Definition at line 30 of file JetResolution.h.

Constructor & Destructor Documentation

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

Definition at line 14 of file JetResolution.cc.

References lut2db_cfg::filename, and m_object.

14  {
15  m_object = std::make_shared<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::make_shared<JetResolutionObject>(object);
20  }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
JME::JetResolution::JetResolution ( )
inline

Definition at line 25 of file JetResolution.h.

25  {
26  // Empty
27  }

Member Function Documentation

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

Definition at line 36 of file JetResolution.h.

References m_object.

Referenced by JetResolutionDemo::analyze().

36 { m_object->dump(); }
std::shared_ptr< JetResolutionObject > m_object
Definition: JetResolution.h:42
const JetResolution JetResolution::get ( const edm::EventSetup setup,
const Token token 
)
static
float JetResolution::getResolution ( const JetParameters parameters) const

Definition at line 28 of file JetResolution.cc.

References m_object, and GlobalPosition_Frontier_DevDB_cff::record.

Referenced by JetResolutionDemo::analyze(), metsig::METSignificance::getCovariance(), and SmearedJetProducerT< T >::produce().

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
const JetResolutionObject* JME::JetResolution::getResolutionObject ( ) const
inline

Definition at line 39 of file JetResolution.h.

References m_object.

Referenced by JetResolutionDemo::analyze().

39 { return m_object.get(); }
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().