CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
HGCalTriggerNtupleBase Class Referenceabstract

#include <HGCalTriggerNtupleBase.h>

Public Member Functions

bool accessEventSetup () const
 
virtual void fill (const edm::Event &, const HGCalTriggerNtupleEventSetup &)
 
virtual void fill (const edm::Event &, const edm::EventSetup &)
 
 HGCalTriggerNtupleBase (const edm::ParameterSet &conf)
 
virtual void initialize (TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&)=0
 
const std::string & name () const
 
virtual ~HGCalTriggerNtupleBase ()
 

Protected Member Functions

virtual void clear ()=0
 

Protected Attributes

bool accessEventSetup_ = true
 
const std::string name_
 

Detailed Description

Definition at line 24 of file HGCalTriggerNtupleBase.h.

Constructor & Destructor Documentation

◆ HGCalTriggerNtupleBase()

HGCalTriggerNtupleBase::HGCalTriggerNtupleBase ( const edm::ParameterSet conf)
inline

Definition at line 26 of file HGCalTriggerNtupleBase.h.

26 : name_(conf.getParameter<std::string>("NtupleName")){};
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ ~HGCalTriggerNtupleBase()

virtual HGCalTriggerNtupleBase::~HGCalTriggerNtupleBase ( )
inlinevirtual

Definition at line 27 of file HGCalTriggerNtupleBase.h.

27 {};

Member Function Documentation

◆ accessEventSetup()

bool HGCalTriggerNtupleBase::accessEventSetup ( ) const
inline

Definition at line 45 of file HGCalTriggerNtupleBase.h.

References accessEventSetup_.

◆ clear()

virtual void HGCalTriggerNtupleBase::clear ( )
protectedpure virtual

◆ fill() [1/2]

virtual void HGCalTriggerNtupleBase::fill ( const edm::Event ,
const HGCalTriggerNtupleEventSetup  
)
inlinevirtual

Definition at line 30 of file HGCalTriggerNtupleBase.h.

References name().

30  {
31  edm::LogWarning("NotImplemented") << "Calling ntuplizer fill(edm::Event, HGCalTriggerNtupleEventSetup), but it is "
32  "not implemented in the concrete class '"
33  << name() << "'. "
34  << "You might want to set 'accessEventSetup_' to true in order to call "
35  "fill(edm::Event, edm::EventSetup) instead.";
36  }
const std::string & name() const
Log< level::Warning, false > LogWarning

◆ fill() [2/2]

virtual void HGCalTriggerNtupleBase::fill ( const edm::Event ,
const edm::EventSetup  
)
inlinevirtual

Definition at line 38 of file HGCalTriggerNtupleBase.h.

References name().

38  {
39  edm::LogWarning("NotImplemented")
40  << "Calling ntuplizer fill(edm::Event, edm::EventSetup), but it is not implemented in the concrete class '"
41  << name() << "'. "
42  << "You might want to set 'accessEventSetup_' to false in order to call fill(edm::Event, "
43  "HGCalTriggerNtupleEventSetup) instead.";
44  }
const std::string & name() const
Log< level::Warning, false > LogWarning

◆ initialize()

virtual void HGCalTriggerNtupleBase::initialize ( TTree &  ,
const edm::ParameterSet ,
edm::ConsumesCollector &&   
)
pure virtual

◆ name()

const std::string& HGCalTriggerNtupleBase::name ( void  ) const
inline

Member Data Documentation

◆ accessEventSetup_

bool HGCalTriggerNtupleBase::accessEventSetup_ = true
protected

Definition at line 49 of file HGCalTriggerNtupleBase.h.

Referenced by accessEventSetup().

◆ name_

const std::string HGCalTriggerNtupleBase::name_
protected

Definition at line 50 of file HGCalTriggerNtupleBase.h.

Referenced by name().