LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::CalorimeterHitImpl Class Reference

Implementation of the real data CalorimeterHit. More...

#include <CalorimeterHitImpl.h>

+ Inheritance diagram for IMPL::CalorimeterHitImpl:

Public Member Functions

 CalorimeterHitImpl ()
 Default constructor, initializes values to 0. More...
 
 CalorimeterHitImpl (const IMPL::CalorimeterHitImpl &)=default
 
CalorimeterHitImploperator= (const IMPL::CalorimeterHitImpl &)=default
 
virtual ~CalorimeterHitImpl ()
 Destructor. More...
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual int getCellID0 () const
 Returns the detector specific (geometrical) cell id. More...
 
virtual int getCellID1 () const
 Returns the second detector specific (geometrical) cell id. More...
 
virtual float getEnergy () const
 Returns the energy of the hit. More...
 
virtual float getEnergyError () const
 Returns the error of the hit energy. More...
 
virtual float getTime () const
 Returns the time of the hit in [ns]. More...
 
virtual const float * getPosition () const
 Returns the position of the hit in world coordinates. More...
 
virtual int getType () const
 Type of hit. More...
 
virtual EVENT::LCObjectgetRawHit () const
 The RawCalorimeterHit. More...
 
void setCellID0 (int id0)
 Sets the first cell id;. More...
 
void setCellID1 (int id1)
 Sets the second cell id; Only store if the flag word (bit RCHBIT_ID1) of the collection is set. More...
 
void setEnergy (float en)
 Sets the energy/amplitude. More...
 
void setEnergyError (float enerr)
 Sets the error of the hit energy. More...
 
void setTime (float t)
 Sets the time. More...
 
void setPosition (const float pos[3])
 Sets the position. More...
 
void setType (int type)
 
void setRawHit (EVENT::LCObject *rawHit)
 
- Public Member Functions inherited from EVENT::CalorimeterHit
virtual ~CalorimeterHit ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor. More...
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ext_type ext ()
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More...
 
template<class V >
const V::ext_type ext () const
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,... More...
 
template<class V >
V::rel_type rel ()
 Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation. More...
 
- Public Member Functions inherited from IMPL::AccessChecked
 AccessChecked ()
 
virtual ~AccessChecked ()
 
virtual int simpleUID () const
 

Protected Attributes

int _cellID0
 
int _cellID1
 
float _energy
 
float _energyError
 
float _time
 
float _position [3]
 
int _type
 
EVENT::LCObject_rawHit
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::CalorimeterHit
typedef CalorimeterHit lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from lcrtrel::LCRTRelations
typedef std::type_index ext_index
 
typedef std::shared_ptr< void > ext_type
 
typedef std::map< ext_index,
ext_type
ext_map
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of the real data CalorimeterHit.

Author
gaede
Version
Id:
CalorimeterHitImpl.h,v 1.16 2008-06-04 17:37:16 engels Exp

Definition at line 19 of file CalorimeterHitImpl.h.

Constructor & Destructor Documentation

IMPL::CalorimeterHitImpl::CalorimeterHitImpl ( )

Default constructor, initializes values to 0.

Definition at line 5 of file CalorimeterHitImpl.cc.

References _position.

IMPL::CalorimeterHitImpl::CalorimeterHitImpl ( const IMPL::CalorimeterHitImpl )
default
IMPL::CalorimeterHitImpl::~CalorimeterHitImpl ( )
virtual

Destructor.

Definition at line 19 of file CalorimeterHitImpl.cc.

Member Function Documentation

int IMPL::CalorimeterHitImpl::getCellID0 ( ) const
virtual

Returns the detector specific (geometrical) cell id.

Implements EVENT::CalorimeterHit.

Definition at line 22 of file CalorimeterHitImpl.cc.

References _cellID0.

int IMPL::CalorimeterHitImpl::getCellID1 ( ) const
virtual

Returns the second detector specific (geometrical) cell id.

0 if information is not stored - check the flag word (bit RCHBIT_ID1) of the collection. Default is to store only cellid0.

Implements EVENT::CalorimeterHit.

Definition at line 26 of file CalorimeterHitImpl.cc.

References _cellID1.

float IMPL::CalorimeterHitImpl::getEnergy ( ) const
virtual

Returns the energy of the hit.

Implements EVENT::CalorimeterHit.

Definition at line 30 of file CalorimeterHitImpl.cc.

References _energy.

float IMPL::CalorimeterHitImpl::getEnergyError ( ) const
virtual

Returns the error of the hit energy.

Optional, check/set flag(LCIO::RCHBIT_ENERGY_ERROR)==1.

Implements EVENT::CalorimeterHit.

Definition at line 34 of file CalorimeterHitImpl.cc.

References _energyError.

const float * IMPL::CalorimeterHitImpl::getPosition ( ) const
virtual

Returns the position of the hit in world coordinates.

NULL if information is not stored. Ask collection for flag, only available if bit LCIO.RCHBIT_LONG is set.

Implements EVENT::CalorimeterHit.

Definition at line 42 of file CalorimeterHitImpl.cc.

References _position.

EVENT::LCObject * IMPL::CalorimeterHitImpl::getRawHit ( ) const
virtual

The RawCalorimeterHit.

As in the future there might be other types of raw calorimeter hits the return type is LCObject.

Implements EVENT::CalorimeterHit.

Definition at line 49 of file CalorimeterHitImpl.cc.

References _rawHit.

float IMPL::CalorimeterHitImpl::getTime ( ) const
virtual

Returns the time of the hit in [ns].

Optional, check/set flag(LCIO::RCHBIT_TIME)==1.

Implements EVENT::CalorimeterHit.

Definition at line 38 of file CalorimeterHitImpl.cc.

References _time.

int IMPL::CalorimeterHitImpl::getType ( ) const
virtual

Type of hit.

Mapping of integer types to type names through collection parameters "CalorimeterHitTypeNames" and "CalorimeterHitTypeValues".

Implements EVENT::CalorimeterHit.

Definition at line 46 of file CalorimeterHitImpl.cc.

References _type.

virtual int IMPL::CalorimeterHitImpl::id ( ) const
inlinevirtual

Returns an object id for internal (debugging) use in LCIO.

Implements EVENT::LCObject.

Definition at line 33 of file CalorimeterHitImpl.h.

References IMPL::AccessChecked::simpleUID().

CalorimeterHitImpl& IMPL::CalorimeterHitImpl::operator= ( const IMPL::CalorimeterHitImpl )
default
void IMPL::CalorimeterHitImpl::setCellID0 ( int  id0)

Sets the first cell id;.

Definition at line 53 of file CalorimeterHitImpl.cc.

References _cellID0, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setCellID1 ( int  id1)

Sets the second cell id; Only store if the flag word (bit RCHBIT_ID1) of the collection is set.

Default is to store only cellid0.

Definition at line 58 of file CalorimeterHitImpl.cc.

References _cellID1, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setEnergy ( float  en)

Sets the energy/amplitude.

Definition at line 63 of file CalorimeterHitImpl.cc.

References _energy, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setEnergyError ( float  enerr)

Sets the error of the hit energy.

Not stored if flag RCHBIT_ENERGY_ERROR isn't set

Definition at line 68 of file CalorimeterHitImpl.cc.

References _energyError, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setPosition ( const float  pos[3])

Sets the position.

Not stored if LCIO.RCHBIT_LONG isn't set.

Definition at line 78 of file CalorimeterHitImpl.cc.

References _position, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setRawHit ( EVENT::LCObject rawHit)

Definition at line 91 of file CalorimeterHitImpl.cc.

References _rawHit, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setTime ( float  t)

Sets the time.

Definition at line 73 of file CalorimeterHitImpl.cc.

References _time, and IMPL::AccessChecked::checkAccess().

void IMPL::CalorimeterHitImpl::setType ( int  type)

Definition at line 86 of file CalorimeterHitImpl.cc.

References _type, and IMPL::AccessChecked::checkAccess().

Member Data Documentation

int IMPL::CalorimeterHitImpl::_cellID0
protected

Definition at line 112 of file CalorimeterHitImpl.h.

Referenced by getCellID0(), SIO::SIOCalHitHandler::read(), and setCellID0().

int IMPL::CalorimeterHitImpl::_cellID1
protected

Definition at line 113 of file CalorimeterHitImpl.h.

Referenced by getCellID1(), SIO::SIOCalHitHandler::read(), and setCellID1().

float IMPL::CalorimeterHitImpl::_energy
protected

Definition at line 114 of file CalorimeterHitImpl.h.

Referenced by getEnergy(), SIO::SIOCalHitHandler::read(), and setEnergy().

float IMPL::CalorimeterHitImpl::_energyError
protected
float IMPL::CalorimeterHitImpl::_position[3]
protected
EVENT::LCObject* IMPL::CalorimeterHitImpl::_rawHit
protected

Definition at line 120 of file CalorimeterHitImpl.h.

Referenced by getRawHit(), SIO::SIOCalHitHandler::read(), and setRawHit().

float IMPL::CalorimeterHitImpl::_time
protected

Definition at line 116 of file CalorimeterHitImpl.h.

Referenced by getTime(), SIO::SIOCalHitHandler::read(), and setTime().

int IMPL::CalorimeterHitImpl::_type
protected

Definition at line 118 of file CalorimeterHitImpl.h.

Referenced by getType(), SIO::SIOCalHitHandler::read(), and setType().


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