Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

IMPL::CalorimeterHitImpl Class Reference

#include <CalorimeterHitImpl.h>

Inheritance diagram for IMPL::CalorimeterHitImpl:

EVENT::CalorimeterHit IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::CalorimeterHitIOImpl List of all members.

Public Types

typedef CalorimeterHit lcobject_type

Public Member Functions

 CalorimeterHitImpl ()
virtual ~CalorimeterHitImpl ()
 Destructor.
virtual int id () const
virtual int getCellID0 () const
virtual int getCellID1 () const
virtual float getEnergy () const
virtual float getTime () const
virtual const float * getPosition () const
virtual int getType () const
virtual EVENT::LCObjectgetRawHit () const
void setCellID0 (int id0)
void setCellID1 (int id1)
void setEnergy (float en)
void setTime (float t)
void setPosition (const float pos[3])
void setType (int type)
void setRawHit (EVENT::LCObject *rawHit)
virtual LCObject * clone () const
template<class V>
V::ext_type ext ()
template<class V>
V::rel_type rel ()
virtual int simpleUID () const

Protected Member Functions

template<class V>
V::ptr & ptr ()
virtual void setReadOnly (bool readOnly)
void checkAccess () throw ( EVENT::ReadOnlyException )
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )

Protected Attributes

int _cellID0
int _cellID1
float _energy
float _time
float _position [3]
int _type
EVENT::LCObject_rawHit
bool _readOnly
int _id

Detailed Description

Implementation of the real data CalorimeterHit.

Author:
gaede
Version:
Id
CalorimeterHitImpl.h,v 1.15 2006/08/04 16:52:46 gaede Exp

Definition at line 19 of file CalorimeterHitImpl.h.


Member Typedef Documentation

typedef CalorimeterHit EVENT::CalorimeterHit::lcobject_type [inherited]
 

Useful typedef for template programming with LCIO

Definition at line 42 of file CalorimeterHit.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  )  [virtual]
 

Destructor.

Copy constructor. Not yet - needs pointer chasing ...

Definition at line 18 of file CalorimeterHitImpl.cc.


Member Function Documentation

void IMPL::AccessChecked::checkAccess const char *  what  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 20 of file AccessChecked.cc.

void IMPL::AccessChecked::checkAccess  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 16 of file AccessChecked.cc.

Referenced by IMPL::TrackerRawDataImpl::adcValues(), IMPL::ReconstructedParticleImpl::addCluster(), IMPL::ClusterImpl::addCluster(), IMPL::MCParticleImpl::addDaughter(), IMPL::SimCalorimeterHitImpl::addMCParticleContribution(), IMPL::VertexImpl::addParameter(), IMPL::ParticleIDImpl::addParameter(), IMPL::MCParticleImpl::addParent(), IMPL::ReconstructedParticleImpl::addParticle(), IMPL::ReconstructedParticleImpl::addParticleID(), IMPL::ClusterImpl::addParticleID(), IMPL::TrackImpl::addTrack(), IMPL::ReconstructedParticleImpl::addTrack(), IMPL::TrackerDataImpl::chargeValues(), IMPL::TrackerHitImpl::rawHits(), IMPL::TrackerRawDataImpl::setADCValues(), IMPL::VertexImpl::setAlgorithmType(), IMPL::ParticleIDImpl::setAlgorithmType(), IMPL::RawCalorimeterHitImpl::setAmplitude(), IMPL::VertexImpl::setAssociatedParticle(), IMPL::TPCHitImpl::setCellID(), IMPL::SimTrackerHitImpl::setCellID(), IMPL::TrackerRawDataImpl::setCellID0(), IMPL::TrackerPulseImpl::setCellID0(), IMPL::TrackerDataImpl::setCellID0(), IMPL::SimCalorimeterHitImpl::setCellID0(), IMPL::RawCalorimeterHitImpl::setCellID0(), setCellID0(), IMPL::TrackerRawDataImpl::setCellID1(), IMPL::TrackerPulseImpl::setCellID1(), IMPL::TrackerDataImpl::setCellID1(), IMPL::SimCalorimeterHitImpl::setCellID1(), IMPL::RawCalorimeterHitImpl::setCellID1(), setCellID1(), IMPL::TrackerPulseImpl::setCharge(), IMPL::TPCHitImpl::setCharge(), IMPL::ReconstructedParticleImpl::setCharge(), IMPL::MCParticleImpl::setCharge(), IMPL::TrackerDataImpl::setChargeValues(), IMPL::VertexImpl::setChi2(), IMPL::TrackImpl::setChi2(), IMPL::VertexImpl::setCovMatrix(), IMPL::TrackImpl::setCovMatrix(), IMPL::TrackerHitImpl::setCovMatrix(), IMPL::ReconstructedParticleImpl::setCovMatrix(), IMPL::TrackImpl::setD0(), IMPL::TrackImpl::setdEdx(), IMPL::TrackerHitImpl::setdEdx(), IMPL::SimTrackerHitImpl::setdEdx(), IMPL::TrackImpl::setdEdxError(), IMPL::LCRunHeaderImpl::setDescription(), IMPL::LCRunHeaderImpl::setDetectorName(), IMPL::LCEventImpl::setDetectorName(), IMPL::ClusterImpl::setDirectionError(), IMPL::MCParticleImpl::setEndpoint(), IMPL::SimCalorimeterHitImpl::setEnergy(), IMPL::ReconstructedParticleImpl::setEnergy(), IMPL::ClusterImpl::setEnergy(), setEnergy(), IMPL::LCEventImpl::setEventNumber(), IMPL::MCParticleImpl::setGeneratorStatus(), IMPL::ReconstructedParticleImpl::setGoodnessOfPID(), IMPL::ClusterImpl::setIPhi(), IMPL::TrackImpl::setIsReferencePointPCA(), IMPL::ClusterImpl::setITheta(), IMPL::ParticleIDImpl::setLikelihood(), IMPL::ReconstructedParticleImpl::setMass(), IMPL::MCParticleImpl::setMass(), IMPL::SimTrackerHitImpl::setMCParticle(), IMPL::SimTrackerHitImpl::setMomentum(), IMPL::ReconstructedParticleImpl::setMomentum(), IMPL::MCParticleImpl::setMomentum(), IMPL::TrackImpl::setNdf(), IMPL::TrackImpl::setOmega(), IMPL::ReconstructedParticleImpl::setParticleIDUsed(), IMPL::SimTrackerHitImpl::setPathLength(), IMPL::ParticleIDImpl::setPDG(), IMPL::MCParticleImpl::setPDG(), IMPL::TrackImpl::setPhi(), IMPL::VertexImpl::setPosition(), IMPL::TrackerHitImpl::setPosition(), IMPL::SimTrackerHitImpl::setPosition(), IMPL::SimCalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPosition(), setPosition(), IMPL::ClusterImpl::setPositionError(), IMPL::VertexImpl::setPrimary(), IMPL::VertexImpl::setProbability(), IMPL::TrackerPulseImpl::setQuality(), IMPL::TPCHitImpl::setQuality(), IMPL::TrackerPulseImpl::setQualityBit(), IMPL::TrackImpl::setRadiusOfInnermostHit(), IMPL::TPCHitImpl::setRawData(), setRawHit(), IMPL::TrackImpl::setReferencePoint(), IMPL::ReconstructedParticleImpl::setReferencePoint(), IMPL::LCRunHeaderImpl::setRunNumber(), IMPL::LCEventImpl::setRunNumber(), IMPL::ClusterImpl::setShape(), IMPL::MCParticleImpl::setSimulatorStatus(), IMPL::ReconstructedParticleImpl::setStartVertex(), IMPL::TrackImpl::setTanLambda(), IMPL::TrackerRawDataImpl::setTime(), IMPL::TrackerPulseImpl::setTime(), IMPL::TrackerHitImpl::setTime(), IMPL::TrackerDataImpl::setTime(), IMPL::TPCHitImpl::setTime(), IMPL::SimTrackerHitImpl::setTime(), IMPL::MCParticleImpl::setTime(), setTime(), IMPL::RawCalorimeterHitImpl::setTimeStamp(), IMPL::LCEventImpl::setTimeStamp(), IMPL::TrackerPulseImpl::setTrackerData(), IMPL::TrackImpl::setType(), IMPL::TrackerHitImpl::setType(), IMPL::ReconstructedParticleImpl::setType(), IMPL::ParticleIDImpl::setType(), IMPL::ClusterImpl::setType(), setType(), IMPL::TrackImpl::setTypeBit(), IMPL::ClusterImpl::setTypeBit(), IMPL::LCParametersImpl::setValue(), IMPL::LCParametersImpl::setValues(), IMPL::MCParticleImpl::setVertex(), IMPL::TrackImpl::setZ0(), IMPL::ClusterImpl::subdetectorEnergies(), and IMPL::TrackImpl::subdetectorHitNumbers().

virtual LCObject* EVENT::LCObject::clone  )  const [inline, virtual, inherited]
 

Deep copy of the object. C++ implementations should return the concrete type (virtual constructor). No reasonable implementation yet. Do not use this method.

Reimplemented in IMPL::SimCalorimeterHitImpl.

Definition at line 52 of file LCObject.h.

template<class V>
V::ext_type lcrtrel::LCRTRelations::ext  )  [inline, inherited]
 

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,...

Definition at line 430 of file LCRTRelations.h.

int IMPL::CalorimeterHitImpl::getCellID0  )  const [virtual]
 

Returns the detector specific (geometrical) cell id.

Implements EVENT::CalorimeterHit.

Definition at line 21 of file CalorimeterHitImpl.cc.

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 CHBIT_ID1) of the collection. Default is to store only cellid0.

Implements EVENT::CalorimeterHit.

Definition at line 25 of file CalorimeterHitImpl.cc.

float IMPL::CalorimeterHitImpl::getEnergy  )  const [virtual]
 

Returns the energy of the hit.

Implements EVENT::CalorimeterHit.

Definition at line 29 of file CalorimeterHitImpl.cc.

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.CHBIT_LONG is set.

Implements EVENT::CalorimeterHit.

Definition at line 37 of file CalorimeterHitImpl.cc.

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 44 of file CalorimeterHitImpl.cc.

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 33 of file CalorimeterHitImpl.cc.

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 41 of file CalorimeterHitImpl.cc.

virtual int IMPL::CalorimeterHitImpl::id  )  const [inline, virtual]
 

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

Implements EVENT::LCObject.

Definition at line 34 of file CalorimeterHitImpl.h.

template<class V>
V::ptr& lcrtrel::LCRTRelations::ptr  )  [inline, protected, inherited]
 

Returns the reference to the pointer to the extension/relation object

Definition at line 508 of file LCRTRelations.h.

template<class V>
V::rel_type lcrtrel::LCRTRelations::rel  )  [inline, inherited]
 

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.

Definition at line 444 of file LCRTRelations.h.

void IMPL::CalorimeterHitImpl::setCellID0 int  id0  ) 
 

Sets the first cell id;

Definition at line 48 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 CHBIT_ID1) of the collection is set. Default is to store only cellid0.

Definition at line 53 of file CalorimeterHitImpl.cc.

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

void IMPL::CalorimeterHitImpl::setEnergy float  en  ) 
 

Sets the energy/amplitude.

Definition at line 58 of file CalorimeterHitImpl.cc.

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

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

Sets the position. Not stored if LCIO.CHBIT_LONG isn't set.

Definition at line 68 of file CalorimeterHitImpl.cc.

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

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

Definition at line 81 of file CalorimeterHitImpl.cc.

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

void IMPL::AccessChecked::setReadOnly bool  readOnly  )  [protected, virtual, inherited]
 

Reimplemented in IMPL::LCCollectionVec, and IMPL::LCRunHeaderImpl.

Definition at line 14 of file AccessChecked.cc.

References IMPL::AccessChecked::_readOnly.

Referenced by IMPL::LCEventImpl::setAccessMode(), and IMPL::LCCollectionVec::setReadOnly().

void IMPL::CalorimeterHitImpl::setTime float  t  ) 
 

Sets the time.

Definition at line 63 of file CalorimeterHitImpl.cc.

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

void IMPL::CalorimeterHitImpl::setType int  type  ) 
 

Definition at line 76 of file CalorimeterHitImpl.cc.

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

virtual int IMPL::AccessChecked::simpleUID  )  const [inline, virtual, inherited]
 

Definition at line 24 of file AccessChecked.h.


Member Data Documentation

int IMPL::CalorimeterHitImpl::_cellID0 [protected]
 

Definition at line 103 of file CalorimeterHitImpl.h.

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

int IMPL::CalorimeterHitImpl::_cellID1 [protected]
 

Definition at line 104 of file CalorimeterHitImpl.h.

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

float IMPL::CalorimeterHitImpl::_energy [protected]
 

Definition at line 105 of file CalorimeterHitImpl.h.

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

int IMPL::AccessChecked::_id [protected, inherited]
 

Definition at line 34 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::AccessChecked().

float IMPL::CalorimeterHitImpl::_position[3] [protected]
 

Definition at line 107 of file CalorimeterHitImpl.h.

Referenced by CalorimeterHitImpl(), SIO::SIOCalHitHandler::read(), and setPosition().

EVENT::LCObject* IMPL::CalorimeterHitImpl::_rawHit [protected]
 

Definition at line 110 of file CalorimeterHitImpl.h.

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

bool IMPL::AccessChecked::_readOnly [protected, inherited]
 

Definition at line 33 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::setReadOnly().

float IMPL::CalorimeterHitImpl::_time [protected]
 

Definition at line 106 of file CalorimeterHitImpl.h.

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

int IMPL::CalorimeterHitImpl::_type [protected]
 

Definition at line 108 of file CalorimeterHitImpl.h.

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


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:25 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1