LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 41 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 60 of file ShowerElementHolder.hh.

References elementPtr.

61  {
62  if (elementPtr)
63  return true;
64  else
65  return false;
66  }
virtual bool reco::shower::ShowerElementBase::CheckTag ( ) const
inlinevirtual

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

Definition at line 46 of file ShowerElementHolder.hh.

47  {
48  throw cet::exception("ShowerElementHolder")
49  << "Trying to check an element that is not a product" << std::endl;
50  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
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 51 of file ShowerElementHolder.hh.

References GetType().

52  {
53  throw cet::exception("ShowerElementHolder")
54  << "Trying to set an element that is not a product" << std::endl;
55  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

Member Data Documentation


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