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 (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< JetResolutionObjectm_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 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::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
JME::JetResolution::JetResolution ( )
inline

Definition at line 22 of file JetResolution.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

22  {
23  // Empty
24  }

Member Function Documentation

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

Definition at line 32 of file JetResolution.h.

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(), metsig::METSignificance::getCovariance(), and SmearedJetProducerT< T >::produce().

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  }
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.

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