All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 37 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 53 of file ShowerElementHolder.hh.

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

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

Definition at line 43 of file ShowerElementHolder.hh.

43  {
44  throw cet::exception("ShowerElementHolder") << "Trying to check an element that is not a product" << std::endl;
45  }
void reco::shower::ShowerElementBase::Clear ( )
inline

Definition at line 58 of file ShowerElementHolder.hh.

58  {
59  elementPtr = 0;
60  }
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 46 of file ShowerElementHolder.hh.

46  {
47  throw cet::exception("ShowerElementHolder") << "Trying to set an element that is not a product" << std::endl;
48  }

Member Data Documentation

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

Definition at line 65 of file ShowerElementHolder.hh.


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