CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
HGCalTriggerNtupleBase Class Referenceabstract

#include <HGCalTriggerNtupleBase.h>

Inheritance diagram for HGCalTriggerNtupleBase:
HGCalTriggerNtupleEvent HGCalTriggerNtupleGen HGCalTriggerNtupleGenJet HGCalTriggerNtupleGenTau HGCalTriggerNtupleHGCClusters HGCalTriggerNtupleHGCConcentratorData HGCalTriggerNtupleHGCDigis HGCalTriggerNtupleHGCMulticlusters HGCalTriggerNtupleHGCTowers HGCalTriggerNtupleHGCTriggerCells HGCalTriggerNtupleHGCTriggerSums

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 ( 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
virtual HGCalTriggerNtupleBase::~HGCalTriggerNtupleBase ( )
inlinevirtual

Definition at line 27 of file HGCalTriggerNtupleBase.h.

27 {};

Member Function Documentation

bool HGCalTriggerNtupleBase::accessEventSetup ( ) const
inline

Definition at line 45 of file HGCalTriggerNtupleBase.h.

References accessEventSetup_.

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

Reimplemented in HGCalTriggerNtupleGen, HGCalTriggerNtupleHGCTriggerCells, HGCalTriggerNtupleHGCDigis, HGCalTriggerNtupleHGCConcentratorData, HGCalTriggerNtupleHGCTriggerSums, HGCalTriggerNtupleGenTau, HGCalTriggerNtupleHGCClusters, HGCalTriggerNtupleGenJet, HGCalTriggerNtupleHGCMulticlusters, HGCalTriggerNtupleHGCTowers, and HGCalTriggerNtupleEvent.

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  }
Log< level::Warning, false > LogWarning
const std::string & name() const
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  }
Log< level::Warning, false > LogWarning
const std::string & name() const
virtual void HGCalTriggerNtupleBase::initialize ( TTree &  ,
const edm::ParameterSet ,
edm::ConsumesCollector &&   
)
pure virtual
const std::string& HGCalTriggerNtupleBase::name ( void  ) const
inline

Member Data Documentation

bool HGCalTriggerNtupleBase::accessEventSetup_ = true
protected
const std::string HGCalTriggerNtupleBase::name_
protected

Definition at line 50 of file HGCalTriggerNtupleBase.h.

Referenced by name().