Belle II Software development
PXDCluster Class Reference

The PXD Cluster class This class stores all information about reconstructed PXD clusters The position error matrix has the form ((m_uSigma^2, m_uvRho * m_uSigma * m_vSigma), (m_uvRho * m_uSigma * m_vSigma, m_vSigma^2)) The correlation coefficient is derived from the shape of the cluster. More...

#include <PXDCluster.h>

Inheritance diagram for PXDCluster:
RelationsInterface< BASE >

Public Member Functions

 PXDCluster ()
 Default constructor for the ROOT IO.
 
 PXDCluster (VxdID sensorID, float uPosition, float vPosition, float uError, float vError, float uvRho, unsigned short clsCharge, unsigned short seedCharge, unsigned short clsSize, unsigned short uSize, unsigned short vSize, unsigned short uStart, unsigned short vStart)
 Constructor.
 
 PXDCluster (VxdID sensorID, float uPosition, float vPosition, float uError, float vError, float uvRho, unsigned short clsCharge, unsigned short seedCharge, unsigned short clsSize, unsigned short uSize, unsigned short vSize, unsigned short uStart, unsigned short vStart, int clsKind)
 Constructor for who want to add also cluster kind in one step.
 
 PXDCluster (VxdID sensorID, float uPosition, float vPosition, float uError, float vError, float uvRho, unsigned short clsCharge, unsigned short seedCharge, unsigned short clsSize, unsigned short uSize, unsigned short vSize, unsigned short uStart, unsigned short vStart, int clsKind, const std::vector< float > &etaValues, const std::vector< int > &shapeIndices)
 Constructor for who want to add also cluster kind, shape indices and eta values in one step.
 
VxdID getSensorID () const
 Get the sensor ID.
 
float getU () const
 Get u coordinate of hit position.
 
float getV () const
 Get v coordinate of hit position.
 
float getUSigma () const
 Get error of u coordinate of hit position.
 
float getVSigma () const
 Get error in v coordinate of hit position.
 
float getRho () const
 Get hit position error covariance coefficient.
 
unsigned short getCharge () const
 Get collected charge.
 
unsigned short getSeedCharge () const
 Get seed charge.
 
unsigned short getSize () const
 Get cluster size.
 
unsigned short getUSize () const
 Get cluster size in u direction.
 
unsigned short getVSize () const
 Get cluster size in v direction.
 
unsigned short getUStart () const
 Get cluster start cell in u direction.
 
unsigned short getVStart () const
 Get cluster start cell in v direction.
 
int getKind () const
 Get cluster kind.
 
short getShape () const
 Get cluster kind.
 
void setKind (short NewClsKind)
 Set cluster kind.
 
void setU (float NewuPosition)
 Set u coordinate of hit position.
 
void setV (float NewvPosition)
 Set v coordinate of hit position.
 
void setUSigma (float NewuError)
 Set error of u coordinate of hit position.
 
void setVSigma (float NewvError)
 Set error in v coordinate of hit position.
 
void setRho (float NewRho)
 Set error covariance coefficient of hit position.
 
const std::vector< int > & getSectorShapeIndices () const
 Get vector of sector shape indices.
 
std::vector< int > & getSectorShapeIndices ()
 Get vector of sector shape indices.
 
const std::vector< float > & getSectorEtaValues () const
 Get vector of sector eta values.
 
std::vector< float > & getSectorEtaValues ()
 Get vector of sector eta values.
 
void addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching).
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow).
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
 
template<class TO >
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array.
 
template<class FROM >
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object.
 
template<class T >
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array.
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation.
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation.
 
template<class T >
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation.
 
template<class TO >
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array.
 
template<class FROM >
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array.
 
template<class T >
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array.
 
virtual std::string getName () const
 Return a short name that describes this object, e.g.
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format.
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format.
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 

Protected Member Functions

TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 

Protected Attributes

unsigned short m_sensorID
 Compressed sensor identifier.
 
float m_uPosition
 Absolute cell position in r-phi.
 
float m_vPosition
 Absolute cell position in z.
 
float m_uPositionSigma
 Error in u position.
 
float m_vPositionSigma
 Error in v position.
 
float m_uvRho
 Cluster shape correlation.
 
unsigned short m_clsCharge
 Deposited charge in ADC units.
 
unsigned short m_seedCharge
 Cluster seed charge in ADC units.
 
unsigned short m_clsSize
 Cluster size in pixels.
 
unsigned short m_uSize
 Cluster size in pixel columns.
 
unsigned short m_vSize
 Cluster size in pixel rows

 
unsigned short m_uStart
 Start column of the cluster.
 
unsigned short m_vStart
 Start row of the cluster.
 
int m_clsKind
 Cluster kind.
 
std::vector< float > m_etaValues
 Vector of eta values for four angle sectors.
 
std::vector< int > m_shapeIndices
 Vector of shape indices for four angle sectors.
 

Private Member Functions

 ClassDef (RelationsInterface, 0)
 defines interface for accessing relations of objects in StoreArray.
 

Private Attributes

DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 

Detailed Description

The PXD Cluster class This class stores all information about reconstructed PXD clusters The position error matrix has the form ((m_uSigma^2, m_uvRho * m_uSigma * m_vSigma), (m_uvRho * m_uSigma * m_vSigma, m_vSigma^2)) The correlation coefficient is derived from the shape of the cluster.

The cluster shape ID is use for correction of bias and error of position.

Definition at line 30 of file PXDCluster.h.

Constructor & Destructor Documentation

◆ PXDCluster() [1/4]

PXDCluster ( )
inline

Default constructor for the ROOT IO.

Definition at line 34 of file PXDCluster.h.

34 :
37 m_clsSize(0), m_uSize(0), m_vSize(0), m_uStart(0), m_vStart(0),
38 m_clsKind(0) {}
float m_vPosition
Absolute cell position in z.
Definition: PXDCluster.h:242
unsigned short m_clsSize
Cluster size in pixels.
Definition: PXDCluster.h:248
float m_uPositionSigma
Error in u position.
Definition: PXDCluster.h:243
unsigned short m_uSize
Cluster size in pixel columns.
Definition: PXDCluster.h:249
unsigned short m_sensorID
Compressed sensor identifier.
Definition: PXDCluster.h:240
float m_uPosition
Absolute cell position in r-phi.
Definition: PXDCluster.h:241
unsigned short m_vSize
Cluster size in pixel rows
Definition: PXDCluster.h:250
int m_clsKind
Cluster kind.
Definition: PXDCluster.h:253
unsigned short m_vStart
Start row of the cluster.
Definition: PXDCluster.h:252
float m_vPositionSigma
Error in v position.
Definition: PXDCluster.h:244
unsigned short m_clsCharge
Deposited charge in ADC units.
Definition: PXDCluster.h:246
unsigned short m_uStart
Start column of the cluster.
Definition: PXDCluster.h:251
unsigned short m_seedCharge
Cluster seed charge in ADC units.
Definition: PXDCluster.h:247
float m_uvRho
Cluster shape correlation.
Definition: PXDCluster.h:245

◆ PXDCluster() [2/4]

PXDCluster ( VxdID  sensorID,
float  uPosition,
float  vPosition,
float  uError,
float  vError,
float  uvRho,
unsigned short  clsCharge,
unsigned short  seedCharge,
unsigned short  clsSize,
unsigned short  uSize,
unsigned short  vSize,
unsigned short  uStart,
unsigned short  vStart 
)
inline

Constructor.

Parameters
sensorIDSensor compact ID.
uPositionCluster u coordinate (r-phi).
vPositionCluster v coordinate (z).
uErrorError (estimate) of uPosition.
vErrorError (estiamte) of vPosition.
uvRhou-v error correlation coefficient.
clsChargeThe cluster charge.
seedChargeThe charge of the cluster seed.
clsSizesize of the cluster in pixels.
uSizenumber of pixel columns contributing to the cluster.
vSizenumber of pixel rows contributing to the cluster.
uStartStart column of the cluster.
vStartStart row of the cluster.

Definition at line 55 of file PXDCluster.h.

58 :
59 m_sensorID(sensorID), m_uPosition(uPosition), m_vPosition(vPosition),
60 m_uPositionSigma(uError), m_vPositionSigma(vError),
61 m_uvRho(uvRho), m_clsCharge(clsCharge),
62 m_seedCharge(seedCharge), m_clsSize(clsSize), m_uSize(uSize),
63 m_vSize(vSize), m_uStart(uStart), m_vStart(vStart), m_clsKind(0)
64 {}

◆ PXDCluster() [3/4]

PXDCluster ( VxdID  sensorID,
float  uPosition,
float  vPosition,
float  uError,
float  vError,
float  uvRho,
unsigned short  clsCharge,
unsigned short  seedCharge,
unsigned short  clsSize,
unsigned short  uSize,
unsigned short  vSize,
unsigned short  uStart,
unsigned short  vStart,
int  clsKind 
)
inline

Constructor for who want to add also cluster kind in one step.

Parameters
sensorIDSensor compact ID.
uPositionCluster u coordinate (r-phi).
vPositionCluster v coordinate (z).
uErrorError (estimate) of uPosition.
vErrorError (estiamte) of vPosition.
uvRhou-v error correlation coefficient.
clsChargeThe cluster charge.
seedChargeThe charge of the cluster seed.
clsSizesize of the cluster in pixels.
uSizenumber of pixel columns contributing to the cluster.
vSizenumber of pixel rows contributing to the cluster.
uStartStart column of the cluster.
vStartStart row of the cluster.
clsKindClusterKind of the cluster.

Definition at line 82 of file PXDCluster.h.

85 :
86 m_sensorID(sensorID), m_uPosition(uPosition), m_vPosition(vPosition),
87 m_uPositionSigma(uError), m_vPositionSigma(vError),
88 m_uvRho(uvRho), m_clsCharge(clsCharge),
89 m_seedCharge(seedCharge), m_clsSize(clsSize), m_uSize(uSize),
90 m_vSize(vSize), m_uStart(uStart), m_vStart(vStart), m_clsKind(clsKind)
91 {}

◆ PXDCluster() [4/4]

PXDCluster ( VxdID  sensorID,
float  uPosition,
float  vPosition,
float  uError,
float  vError,
float  uvRho,
unsigned short  clsCharge,
unsigned short  seedCharge,
unsigned short  clsSize,
unsigned short  uSize,
unsigned short  vSize,
unsigned short  uStart,
unsigned short  vStart,
int  clsKind,
const std::vector< float > &  etaValues,
const std::vector< int > &  shapeIndices 
)
inline

Constructor for who want to add also cluster kind, shape indices and eta values in one step.

Parameters
sensorIDSensor compact ID.
uPositionCluster u coordinate (r-phi).
vPositionCluster v coordinate (z).
uErrorError (estimate) of uPosition.
vErrorError (estiamte) of vPosition.
uvRhou-v error correlation coefficient.
clsChargeThe cluster charge.
seedChargeThe charge of the cluster seed.
clsSizesize of the cluster in pixels.
uSizenumber of pixel columns contributing to the cluster.
vSizenumber of pixel rows contributing to the cluster.
uStartStart column of the cluster.
vStartStart row of the cluster.
clsKindClusterKind of the cluster.
etaValuesThe eta values of the cluster for sectors of incidence angles
shapeIndicesThe shapeIndices of the cluster for sectors of incidence angles

Definition at line 111 of file PXDCluster.h.

115 :
116 m_sensorID(sensorID), m_uPosition(uPosition), m_vPosition(vPosition),
117 m_uPositionSigma(uError), m_vPositionSigma(vError),
118 m_uvRho(uvRho), m_clsCharge(clsCharge),
119 m_seedCharge(seedCharge), m_clsSize(clsSize), m_uSize(uSize),
120 m_vSize(vSize), m_uStart(uStart), m_vStart(vStart), m_clsKind(clsKind), m_etaValues(etaValues), m_shapeIndices(shapeIndices)
121 {}
std::vector< float > m_etaValues
Vector of eta values for four angle sectors.
Definition: PXDCluster.h:254
std::vector< int > m_shapeIndices
Vector of shape indices for four angle sectors.
Definition: PXDCluster.h:255

Member Function Documentation

◆ addRelationTo() [1/2]

void addRelationTo ( const RelationsInterface< BASE > *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 142 of file RelationsObject.h.

143 {
144 if (object)
146 object, object->m_cacheDataStoreEntry, object->m_cacheArrayIndex, weight, namedRelation);
147 }
void addRelation(const TObject *fromObject, StoreEntry *&fromEntry, int &fromIndex, const TObject *toObject, StoreEntry *&toEntry, int &toIndex, float weight, const std::string &namedRelation)
Add a relation from an object in a store array to another object in a store array.
Definition: DataStore.cc:492
static DataStore & Instance()
Instance of singleton Store.
Definition: DataStore.cc:54
DataStore::StoreEntry * m_cacheDataStoreEntry
Cache of the data store entry to which this object belongs.
int m_cacheArrayIndex
Cache of the index in the TClonesArray to which this object belongs.

◆ addRelationTo() [2/2]

void addRelationTo ( const TObject *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 155 of file RelationsObject.h.

156 {
157 StoreEntry* toEntry = nullptr;
158 int toIndex = -1;
159 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex, object, toEntry, toIndex, weight, namedRelation);
160 }

◆ copyRelations()

void copyRelations ( const RelationsInterface< BASE > *  sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 170 of file RelationsObject.h.

171 {
172 if (!sourceObj)
173 return;
174 auto fromRels = sourceObj->getRelationsFrom<RelationsInterface<BASE>>("ALL");
175 for (unsigned int iRel = 0; iRel < fromRels.size(); iRel++) {
176 fromRels.object(iRel)->addRelationTo(this, fromRels.weight(iRel));
177 }
178
179 auto toRels = sourceObj->getRelationsTo<RelationsInterface<BASE>>("ALL");
180 for (unsigned int iRel = 0; iRel < toRels.size(); iRel++) {
181 this->addRelationTo(toRels.object(iRel), toRels.weight(iRel));
182 }
183 }
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).

◆ getArrayIndex()

int getArrayIndex ( ) const
inlineinherited

Returns this object's array index (in StoreArray), or -1 if not found.

Definition at line 385 of file RelationsObject.h.

386 {
388 return m_cacheArrayIndex;
389 }
bool findStoreEntry(const TObject *object, StoreEntry *&entry, int &index)
Find an object in an array in the data store.
Definition: DataStore.cc:398

◆ getArrayName()

std::string getArrayName ( ) const
inlineinherited

Get name of array this object is stored in, or "" if not found.

Definition at line 377 of file RelationsObject.h.

◆ getArrayPointer()

TClonesArray * getArrayPointer ( ) const
inlineprotectedinherited

Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).

Definition at line 418 of file RelationsObject.h.

419 {
422 return nullptr;
424 }
TClonesArray * getPtrAsArray() const
Return ptr cast to TClonesArray.
Definition: StoreEntry.cc:83

◆ getCharge()

unsigned short getCharge ( ) const
inline

Get collected charge.

Returns
charge collected in the cluster.

Definition at line 156 of file PXDCluster.h.

156{ return m_clsCharge; }

◆ getInfo()

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 370 of file RelationsObject.h.

371 {
373 }
virtual std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
std::string htmlToPlainText(const std::string &html)
See RelationsObject::getInfo()

◆ getInfoHTML()

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition: HTML.cc:24
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.

Definition at line 362 of file RelationsObject.h.

362{ return ""; }

◆ getKind()

int getKind ( ) const
inline

Get cluster kind.

Returns
cluster kind of the cluster.

Definition at line 191 of file PXDCluster.h.

191{ return m_clsKind; }

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in Particle, MCParticle, and SpacePoint.

Definition at line 344 of file RelationsObject.h.

344{ return ""; }

◆ getRelated()

T * getRelated ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 278 of file RelationsObject.h.

279 {
281 T::Class(), name, namedRelation).object);
282 }
@ c_BothSides
Combination of c_FromSide and c_ToSide.
Definition: DataStore.h:79
Belle2::RelationEntry getRelationWith(ESearchSide searchSide, const TObject *object, StoreEntry *&entry, int &index, const TClass *withClass, const std::string &withName, const std::string &namedRelation)
Get the first relation between an object and another object in a store array.
Definition: DataStore.cc:597
TObject * object
Pointer to the object.
Definition: RelationEntry.h:32

◆ getRelatedFrom()

FROM * getRelatedFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 263 of file RelationsObject.h.

264 {
266 m_cacheArrayIndex, FROM::Class(), name, namedRelation).object);
267 }
@ c_FromSide
Return relations/objects pointed from (to a given object).
Definition: DataStore.h:77

◆ getRelatedFromWithWeight()

std::pair< FROM *, float > getRelatedFromWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 314 of file RelationsObject.h.

316 {
318 FROM::Class(), name, namedRelation);
319 return std::make_pair(static_cast<FROM*>(entry.object), entry.weight);
320 }

◆ getRelatedTo()

TO * getRelatedTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 248 of file RelationsObject.h.

249 {
251 TO::Class(), name, namedRelation).object);
252 }
@ c_ToSide
Return relations/objects pointed to (from a given object).
Definition: DataStore.h:78

◆ getRelatedToWithWeight()

std::pair< TO *, float > getRelatedToWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 297 of file RelationsObject.h.

299 {
301 TO::Class(), name, namedRelation);
302 return std::make_pair(static_cast<TO*>(entry.object), entry.weight);
303 }

◆ getRelatedWithWeight()

std::pair< T *, float > getRelatedWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 331 of file RelationsObject.h.

333 {
335 T::Class(), name, namedRelation);
336 return std::make_pair(static_cast<T*>(entry.object), entry.weight);
337 }

◆ getRelationsFrom()

RelationVector< FROM > getRelationsFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 212 of file RelationsObject.h.

214 {
216 m_cacheArrayIndex, FROM::Class(), name, namedRelation));
217 }
RelationVector< T > getRelationsWith(const std::string &name="", const std::string &namedRelation="") const
Get the relations between this object and another store array.

◆ getRelationsTo()

RelationVector< TO > getRelationsTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 197 of file RelationsObject.h.

198 {
200 m_cacheArrayIndex, TO::Class(), name, namedRelation));
201 }

◆ getRelationsWith()

RelationVector< T > getRelationsWith ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 230 of file RelationsObject.h.

231 {
233 m_cacheArrayIndex, T::Class(), name, namedRelation));
234 }

◆ getRho()

float getRho ( ) const
inline

Get hit position error covariance coefficient.

Returns
Covariance coefficient of hit position errors.

Definition at line 151 of file PXDCluster.h.

151{ return m_uvRho; }

◆ getSectorEtaValues() [1/2]

std::vector< float > & getSectorEtaValues ( )
inline

Get vector of sector eta values.

Sectors in thetaU and thetaV are numbered ++, -+, –, +-.

Definition at line 237 of file PXDCluster.h.

237{ return m_etaValues; }

◆ getSectorEtaValues() [2/2]

const std::vector< float > & getSectorEtaValues ( ) const
inline

Get vector of sector eta values.

Sectors in thetaU and thetaV are numbered ++, -+, –, +-.

Definition at line 233 of file PXDCluster.h.

233{ return m_etaValues; }

◆ getSectorShapeIndices() [1/2]

std::vector< int > & getSectorShapeIndices ( )
inline

Get vector of sector shape indices.

Sectors in thetaU and thetaV are numbered ++, -+, –, +-.

Definition at line 229 of file PXDCluster.h.

229{ return m_shapeIndices; }

◆ getSectorShapeIndices() [2/2]

const std::vector< int > & getSectorShapeIndices ( ) const
inline

Get vector of sector shape indices.

Sectors in thetaU and thetaV are numbered ++, -+, –, +-.

Definition at line 225 of file PXDCluster.h.

225{ return m_shapeIndices; }

◆ getSeedCharge()

unsigned short getSeedCharge ( ) const
inline

Get seed charge.

Returns
seed charge of the cluster.

Definition at line 161 of file PXDCluster.h.

161{ return m_seedCharge; }

◆ getSensorID()

VxdID getSensorID ( ) const
inline

Get the sensor ID.

Returns
ID of the sensor.

Definition at line 126 of file PXDCluster.h.

126{ return m_sensorID; }

◆ getShape()

short getShape ( ) const
inline

Get cluster kind.

Returns
cluster shape of the cluster. FIXME REMOVE THIS member

Definition at line 197 of file PXDCluster.h.

197{ return 0; }

◆ getSize()

unsigned short getSize ( ) const
inline

Get cluster size.

Returns
number of pixels contributing to the cluster.

Definition at line 166 of file PXDCluster.h.

166{ return m_clsSize; }

◆ getU()

float getU ( ) const
inline

Get u coordinate of hit position.

Returns
u coordinate of hit position.

Definition at line 131 of file PXDCluster.h.

131{ return m_uPosition; }

◆ getUSigma()

float getUSigma ( ) const
inline

Get error of u coordinate of hit position.

Returns
Error of u coordinate of hit position.

Definition at line 141 of file PXDCluster.h.

141{ return m_uPositionSigma; }

◆ getUSize()

unsigned short getUSize ( ) const
inline

Get cluster size in u direction.

Returns
number of pixel columns contributing to the cluster.

Definition at line 171 of file PXDCluster.h.

171{ return m_uSize; }

◆ getUStart()

unsigned short getUStart ( ) const
inline

Get cluster start cell in u direction.

Returns
first column contributing to the cluster.

Definition at line 181 of file PXDCluster.h.

181{ return m_uStart; }

◆ getV()

float getV ( ) const
inline

Get v coordinate of hit position.

Returns
v coordinate of hit position.

Definition at line 136 of file PXDCluster.h.

136{ return m_vPosition; }

◆ getVSigma()

float getVSigma ( ) const
inline

Get error in v coordinate of hit position.

Returns
Error in v coordinate of hit position.

Definition at line 146 of file PXDCluster.h.

146{ return m_vPositionSigma; }

◆ getVSize()

unsigned short getVSize ( ) const
inline

Get cluster size in v direction.

Returns
number of pixel rows contributing to the cluster.

Definition at line 176 of file PXDCluster.h.

176{ return m_vSize; }

◆ getVStart()

unsigned short getVStart ( ) const
inline

Get cluster start cell in v direction.

Returns
first row contributing to the cluster.

Definition at line 186 of file PXDCluster.h.

186{ return m_vStart; }

◆ setKind()

void setKind ( short  NewClsKind)
inline

Set cluster kind.

Definition at line 201 of file PXDCluster.h.

201{ m_clsKind = NewClsKind; }

◆ setRho()

void setRho ( float  NewRho)
inline

Set error covariance coefficient of hit position.

Definition at line 221 of file PXDCluster.h.

221{ m_uvRho = NewRho; }

◆ setU()

void setU ( float  NewuPosition)
inline

Set u coordinate of hit position.

Definition at line 205 of file PXDCluster.h.

205{ m_uPosition = NewuPosition; }

◆ setUSigma()

void setUSigma ( float  NewuError)
inline

Set error of u coordinate of hit position.

Definition at line 213 of file PXDCluster.h.

213{ m_uPositionSigma = NewuError; }

◆ setV()

void setV ( float  NewvPosition)
inline

Set v coordinate of hit position.

Definition at line 209 of file PXDCluster.h.

209{ m_vPosition = NewvPosition; }

◆ setVSigma()

void setVSigma ( float  NewvError)
inline

Set error in v coordinate of hit position.

Definition at line 217 of file PXDCluster.h.

217{ m_vPositionSigma = NewvError; }

Member Data Documentation

◆ m_cacheArrayIndex

int m_cacheArrayIndex
mutableprivateinherited

Cache of the index in the TClonesArray to which this object belongs.

Definition at line 432 of file RelationsObject.h.

◆ m_cacheDataStoreEntry

DataStore::StoreEntry* m_cacheDataStoreEntry
mutableprivateinherited

Cache of the data store entry to which this object belongs.

Definition at line 429 of file RelationsObject.h.

◆ m_clsCharge

unsigned short m_clsCharge
protected

Deposited charge in ADC units.

Definition at line 246 of file PXDCluster.h.

◆ m_clsKind

int m_clsKind
protected

Cluster kind.

Definition at line 253 of file PXDCluster.h.

◆ m_clsSize

unsigned short m_clsSize
protected

Cluster size in pixels.

Definition at line 248 of file PXDCluster.h.

◆ m_etaValues

std::vector<float> m_etaValues
protected

Vector of eta values for four angle sectors.

Definition at line 254 of file PXDCluster.h.

◆ m_seedCharge

unsigned short m_seedCharge
protected

Cluster seed charge in ADC units.

Definition at line 247 of file PXDCluster.h.

◆ m_sensorID

unsigned short m_sensorID
protected

Compressed sensor identifier.

Definition at line 240 of file PXDCluster.h.

◆ m_shapeIndices

std::vector<int> m_shapeIndices
protected

Vector of shape indices for four angle sectors.

Definition at line 255 of file PXDCluster.h.

◆ m_uPosition

float m_uPosition
protected

Absolute cell position in r-phi.

Definition at line 241 of file PXDCluster.h.

◆ m_uPositionSigma

float m_uPositionSigma
protected

Error in u position.

Definition at line 243 of file PXDCluster.h.

◆ m_uSize

unsigned short m_uSize
protected

Cluster size in pixel columns.

Definition at line 249 of file PXDCluster.h.

◆ m_uStart

unsigned short m_uStart
protected

Start column of the cluster.

Definition at line 251 of file PXDCluster.h.

◆ m_uvRho

float m_uvRho
protected

Cluster shape correlation.

Definition at line 245 of file PXDCluster.h.

◆ m_vPosition

float m_vPosition
protected

Absolute cell position in z.

Definition at line 242 of file PXDCluster.h.

◆ m_vPositionSigma

float m_vPositionSigma
protected

Error in v position.

Definition at line 244 of file PXDCluster.h.

◆ m_vSize

unsigned short m_vSize
protected

Cluster size in pixel rows

Definition at line 250 of file PXDCluster.h.

◆ m_vStart

unsigned short m_vStart
protected

Start row of the cluster.

Definition at line 252 of file PXDCluster.h.


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