Public Member Functions | Protected Attributes | List of all members
reco::shower::ShowerElementBase Class Referenceabstract

#include <ShowerElementHolder.hh>

Inheritance diagram for reco::shower::ShowerElementBase:
reco::shower::ShowerElementAccessor< T > reco::shower::EventDataProduct< T > reco::shower::ShowerDataProduct< T > reco::shower::ShowerProperty< T, T2 >

Public Member Functions

virtual ~ShowerElementBase () noexcept=default
 
virtual bool CheckTag () const
 
virtual void SetCheckTag (bool &check)
 
virtual std::string GetType () const =0
 
bool CheckShowerElement () const
 
void Clear ()
 

Protected Attributes

bool elementPtr
 

Detailed Description

Definition at line 35 of file ShowerElementHolder.hh.

Constructor & Destructor Documentation

virtual reco::shower::ShowerElementBase::~ShowerElementBase ( )
virtualdefaultnoexcept

Member Function Documentation

bool reco::shower::ShowerElementBase::CheckShowerElement ( ) const
inline

Definition at line 51 of file ShowerElementHolder.hh.

51  {
52  if(elementPtr) return true;
53  else return false;
54  }
virtual bool reco::shower::ShowerElementBase::CheckTag ( ) const
inlinevirtual

Reimplemented in reco::shower::ShowerDataProduct< T >.

Definition at line 41 of file ShowerElementHolder.hh.

41  {
42  throw cet::exception("ShowerElementHolder") << "Trying to check an element that is not a product" << std::endl;
43  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
QTextStream & endl(QTextStream &s)
void reco::shower::ShowerElementBase::Clear ( void  )
inline

Definition at line 56 of file ShowerElementHolder.hh.

56  {
57  elementPtr = 0;
58  }
virtual std::string reco::shower::ShowerElementBase::GetType ( ) const
pure virtual
virtual void reco::shower::ShowerElementBase::SetCheckTag ( bool check)
inlinevirtual

Reimplemented in reco::shower::ShowerDataProduct< T >.

Definition at line 44 of file ShowerElementHolder.hh.

44  {
45  throw cet::exception("ShowerElementHolder") << "Trying to set an element that is not a product" << std::endl;
46  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
QTextStream & endl(QTextStream &s)

Member Data Documentation

bool reco::shower::ShowerElementBase::elementPtr
protected

Definition at line 63 of file ShowerElementHolder.hh.


The documentation for this class was generated from the following file: