Implementation of Cluster. More...
#include <IMPL/ClusterImpl.h>
Public Member Functions | |
ClusterImpl () | |
Default constructor, initializes values to 0. | |
virtual | ~ClusterImpl () |
Destructor. | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
virtual int | getType () const |
Flagword that defines the type of cluster. More... | |
virtual float | getEnergy () const |
Energy of the cluster. | |
virtual float | getEnergyError () const |
Returns the error on the energy of the cluster. | |
virtual const float * | getPosition () const |
Position of the cluster. | |
virtual const EVENT::FloatVec & | getPositionError () const |
Covariance matrix of the position (6 Parameters) | |
virtual float | getITheta () const |
Intrinsic direction of cluster at position: Theta. | |
virtual float | getIPhi () const |
Intrinsic direction of cluster at position: Phi. | |
virtual const EVENT::FloatVec & | getDirectionError () const |
Covariance matrix of the direction (3 Parameters) | |
virtual const EVENT::FloatVec & | getShape () const |
Shape parameters - check/set collection parameter ClusterShapeParameters for size and names of parameters. | |
virtual const EVENT::ParticleIDVec & | getParticleIDs () const |
Type hypotheses: 3 Parameters: compatible with EM, HAD, muon cluster. More... | |
virtual const EVENT::ClusterVec & | getClusters () const |
The clusters that have been combined to this cluster. | |
virtual const EVENT::CalorimeterHitVec & | getCalorimeterHits () const |
The hits that have been combined to this cluster. | |
virtual const EVENT::FloatVec & | getHitContributions () const |
Returns the energy contribution of the hits Runs parallel to the CalorimeterHitVec from getCalorimeterHits() | |
virtual const EVENT::FloatVec & | getSubdetectorEnergies () const |
A vector that holds the energy observed in a particular subdetectors. More... | |
void | setTypeBit (int index, bool val=true) |
void | setEnergy (float energy) |
void | setEnergyError (float energyError) |
void | setPosition (const float *position) |
void | setPositionError (const EVENT::FloatVec &errpos) |
void | setPositionError (const float *errpos) |
void | setITheta (float theta) |
void | setIPhi (float phi) |
void | setDirectionError (const EVENT::FloatVec &errdir) |
void | setDirectionError (const float *errdir) |
void | setShape (const EVENT::FloatVec &shape) |
void | addParticleID (EVENT::ParticleID *pid) |
void | addCluster (EVENT::Cluster *cluster) |
void | addHit (EVENT::CalorimeterHit *hit, float contribution) |
EVENT::FloatVec & | subdetectorEnergies () |
To be used for modifying the subdetector energies, e.g. More... | |
![]() | |
virtual | ~Cluster () |
Destructor. | |
![]() | |
virtual | ~LCObject () |
Destructor. | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
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,... | |
template<class V > | |
const V::ext_type | ext () const |
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. | |
![]() | |
virtual int | simpleUID () const |
Protected Member Functions | |
void | setType (int type) |
![]() | |
template<class V > | |
V::ptr & | ptr () const |
Returns the reference to the pointer to the extension/relation object. | |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () throw ( EVENT::ReadOnlyException ) |
void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Protected Attributes | |
std::bitset< 32 > | _type |
float | _energy |
float | _energyError |
float | _position [3] |
EVENT::FloatVec | _errpos |
float | _theta |
float | _phi |
EVENT::FloatVec | _errdir |
EVENT::FloatVec | _shape |
EVENT::ParticleIDVec | _pid |
EVENT::ClusterVec | _clusters |
EVENT::CalorimeterHitVec | _hits |
EVENT::FloatVec | _weights |
EVENT::FloatVec | _subdetectorEnergies |
![]() | |
bool | _readOnly |
int | _id |
Additional Inherited Members | |
![]() | |
typedef Cluster | lcobject_type |
Useful typedef for template programming with LCIO. | |
Implementation of Cluster.
|
virtual |
Type hypotheses: 3 Parameters: compatible with EM, HAD, muon cluster.
The particle Id's sorted by their probability.
Implements EVENT::Cluster.
|
virtual |
A vector that holds the energy observed in a particular subdetectors.
The mapping of indices to subdetectors is implementation dependent. To be used as convenient information or if hits are not stored in the data set, e.g. DST or FastMC. Check/set collection parameter ClusterSubdetectorNames for decoding the indices of the array.
Implements EVENT::Cluster.
|
virtual |
Flagword that defines the type of cluster.
Bits 0-15 can be used to denote the subdetectors that have contributed hits to the cluster. The definition of the bits has to be done elsewhere, e.g. in the run header. Bits 16-31 are used internally.
Implements EVENT::Cluster.
EVENT::FloatVec & IMPL::ClusterImpl::subdetectorEnergies | ( | ) |
To be used for modifying the subdetector energies, e.g.
clu->subdetectorEnergies().resize(3) ; clu->subdetectorEnergies()[0] = 123.4567 ; clu->subdetectorEnergies()[1] = 12.34567 ; clu->subdetectorEnergies()[2] = 1.234567 ;