LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Friends | List of all members
IOIMPL::SimCalorimeterHitIOImpl Class Reference

Adding stuff needed for io (friend declarations, etc.) More...

#include <SimCalorimeterHitIOImpl.h>

+ Inheritance diagram for IOIMPL::SimCalorimeterHitIOImpl:

Friends

class SIO::SIOSimCalHitHandler
 

Additional Inherited Members

- Public Types inherited from EVENT::SimCalorimeterHit
typedef SimCalorimeterHit 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
 
- Public Member Functions inherited from IMPL::SimCalorimeterHitImpl
 SimCalorimeterHitImpl ()
 Default constructor, initializes values to 0. More...
 
 SimCalorimeterHitImpl (const EVENT::SimCalorimeterHit &hit)
 Copy constructor - shallow copy. More...
 
virtual ~SimCalorimeterHitImpl ()
 Destructor. More...
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual int getCellID0 () const
 Create a deep copy of itself. 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 const float * getPosition () const
 Returns the position of the hit in world coordinates. More...
 
virtual const float * getStepPosition (int i) const
 Returns the position where the energy deposited (step) occurred optional, only if bit LCIO::CHBIT_STEP is set. More...
 
 LCIO_DEPRECATED ("Use getNMCContributions() instead", virtual int getNMCParticles() const )
 Returns the number of MC contributions to the hit. More...
 
virtual int getNMCContributions () const
 Returns the number of MC contributions to the hit. More...
 
virtual float getEnergyCont (int i) const
 Returns the energy in [GeV] of the i-th contribution to the hit. More...
 
virtual float getTimeCont (int i) const
 Returns the time of the i-th in [ns] contribution to the hit. More...
 
virtual float getLengthCont (int i) const
 Returns the step length of the i-th contribution to the hit. More...
 
virtual int getPDGCont (int i) const
 Returns the PDG code of the shower particle that caused this contribution. More...
 
virtual EVENT::MCParticlegetParticleCont (int i) const
 Returns the MCParticle that caused the shower responsible for this contribution to the hit. 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 CHBIT_ID1) of the collection is set. More...
 
void setEnergy (float en)
 Sets the energy. More...
 
void setPosition (const float pos[3])
 Sets the position. More...
 
void addMCParticleContribution (EVENT::MCParticle *p, float en, float t)
 Adds an MCParticle contribution to the hit - contributions for the same MCParticle are combined into one, where the energy is accumulated and the time is the energy weighted mean time. More...
 
void addMCParticleContribution (EVENT::MCParticle *p, float en, float t, int pdg, float *stepPos=0)
 Adds a detailed MCParticle contribution to the hit. More...
 
void addMCParticleContribution (EVENT::MCParticle *p, float en, float t, float l, int pdg, float *stepPos=0)
 Adds a detailed MCParticle contribution to the hit. More...
 
- Public Member Functions inherited from EVENT::SimCalorimeterHit
virtual ~SimCalorimeterHit ()
 Destructor. More...
 
virtual int getNMCParticles () const =0
 Returns the number of MC contributions to the hit. 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 Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Protected Attributes inherited from IMPL::SimCalorimeterHitImpl
int _cellID0
 
int _cellID1
 
float _energy
 
float _position [3]
 
MCParticleContVec _vec {}
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Adding stuff needed for io (friend declarations, etc.)

Author
gaede
Version
Mar 7, 2003

Definition at line 21 of file SimCalorimeterHitIOImpl.h.

Friends And Related Function Documentation

friend class SIO::SIOSimCalHitHandler
friend

Definition at line 23 of file SimCalorimeterHitIOImpl.h.


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