All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
reco::shower::ShowerElementAccessor< T > Class Template Reference

#include <ShowerElementHolder.hh>

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

Public Member Functions

 ShowerElementAccessor (T &Element)
 
void SetShowerElement (T &Element)
 
int GetShowerElement (T &Element) const
 
T & GetShowerElementRef ()
 
GetShowerElement () const
 
std::string GetType () const override
 
- Public Member Functions inherited from reco::shower::ShowerElementBase
virtual ~ShowerElementBase () noexcept=default
 
virtual bool CheckTag () const
 
virtual void SetCheckTag (bool &check)
 
bool CheckShowerElement () const
 
void Clear ()
 

Protected Attributes

element
 
- Protected Attributes inherited from reco::shower::ShowerElementBase
bool elementPtr
 

Detailed Description

template<class T>
class reco::shower::ShowerElementAccessor< T >

Definition at line 30 of file ShowerElementHolder.hh.

Constructor & Destructor Documentation

template<class T>
reco::shower::ShowerElementAccessor< T >::ShowerElementAccessor ( T &  Element)
inline

Definition at line 77 of file ShowerElementHolder.hh.

77  :
78  element(Element){
79  this->elementPtr = 1;
80  // this->element = Element;
81  }

Member Function Documentation

template<class T>
int reco::shower::ShowerElementAccessor< T >::GetShowerElement ( T &  Element) const
inline

Definition at line 90 of file ShowerElementHolder.hh.

90  {
91  if(this->elementPtr){
92  Element = element;
93  return 0;
94  }
95  else{
96  return 1;
97  }
98  }
template<class T>
T reco::shower::ShowerElementAccessor< T >::GetShowerElement ( ) const
inline

Definition at line 108 of file ShowerElementHolder.hh.

108  {
109  if(!this->elementPtr){
110  throw cet::exception("ShowerElementHolder") << "The element that is being accessed is not set" << std::endl;
111  }
112  return element;
113  }
template<class T>
T& reco::shower::ShowerElementAccessor< T >::GetShowerElementRef ( )
inline

Definition at line 101 of file ShowerElementHolder.hh.

101  {
102  if(!this->elementPtr){
103  throw cet::exception("ShowerElementHolder") << "The element that is being accessed is not set" << std::endl;
104  }
105  return element;
106  }
template<class T>
std::string reco::shower::ShowerElementAccessor< T >::GetType ( ) const
inlineoverridevirtual

Implements reco::shower::ShowerElementBase.

Definition at line 116 of file ShowerElementHolder.hh.

116  {
117  return cet::demangle_symbol(typeid(element).name());
118  }
then echo fcl name
template<class T>
void reco::shower::ShowerElementAccessor< T >::SetShowerElement ( T &  Element)
inline

Definition at line 84 of file ShowerElementHolder.hh.

Member Data Documentation

template<class T>
T reco::shower::ShowerElementAccessor< T >::element
protected

Definition at line 121 of file ShowerElementHolder.hh.


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