Belle II Software development
|
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>
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::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. | |
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.
|
inline |
Default constructor for the ROOT IO.
Definition at line 34 of file PXDCluster.h.
|
inline |
Constructor.
sensorID | Sensor compact ID. |
uPosition | Cluster u coordinate (r-phi). |
vPosition | Cluster v coordinate (z). |
uError | Error (estimate) of uPosition. |
vError | Error (estiamte) of vPosition. |
uvRho | u-v error correlation coefficient. |
clsCharge | The cluster charge. |
seedCharge | The charge of the cluster seed. |
clsSize | size of the cluster in pixels. |
uSize | number of pixel columns contributing to the cluster. |
vSize | number of pixel rows contributing to the cluster. |
uStart | Start column of the cluster. |
vStart | Start row of the cluster. |
Definition at line 55 of file PXDCluster.h.
|
inline |
Constructor for who want to add also cluster kind in one step.
sensorID | Sensor compact ID. |
uPosition | Cluster u coordinate (r-phi). |
vPosition | Cluster v coordinate (z). |
uError | Error (estimate) of uPosition. |
vError | Error (estiamte) of vPosition. |
uvRho | u-v error correlation coefficient. |
clsCharge | The cluster charge. |
seedCharge | The charge of the cluster seed. |
clsSize | size of the cluster in pixels. |
uSize | number of pixel columns contributing to the cluster. |
vSize | number of pixel rows contributing to the cluster. |
uStart | Start column of the cluster. |
vStart | Start row of the cluster. |
clsKind | ClusterKind of the cluster. |
Definition at line 82 of file PXDCluster.h.
|
inline |
Constructor for who want to add also cluster kind, shape indices and eta values in one step.
sensorID | Sensor compact ID. |
uPosition | Cluster u coordinate (r-phi). |
vPosition | Cluster v coordinate (z). |
uError | Error (estimate) of uPosition. |
vError | Error (estiamte) of vPosition. |
uvRho | u-v error correlation coefficient. |
clsCharge | The cluster charge. |
seedCharge | The charge of the cluster seed. |
clsSize | size of the cluster in pixels. |
uSize | number of pixel columns contributing to the cluster. |
vSize | number of pixel rows contributing to the cluster. |
uStart | Start column of the cluster. |
vStart | Start row of the cluster. |
clsKind | ClusterKind of the cluster. |
etaValues | The eta values of the cluster for sectors of incidence angles |
shapeIndices | The shapeIndices of the cluster for sectors of incidence angles |
Definition at line 111 of file PXDCluster.h.
|
inlineinherited |
Add a relation from this object to another object (with caching).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 142 of file RelationsObject.h.
|
inlineinherited |
Add a relation from this object to another object (no caching, can be quite slow).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 155 of file RelationsObject.h.
|
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.
|
inlineinherited |
Returns this object's array index (in StoreArray), or -1 if not found.
Definition at line 385 of file RelationsObject.h.
|
inlineinherited |
Get name of array this object is stored in, or "" if not found.
Definition at line 377 of file RelationsObject.h.
|
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.
|
inline |
Get collected charge.
Definition at line 156 of file PXDCluster.h.
|
inlineinherited |
Return a short summary of this object's contents in raw text format.
Returns the contents of getInfoHTML() while translating line-breaks etc.
Definition at line 370 of file RelationsObject.h.
|
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:
Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.
Definition at line 362 of file RelationsObject.h.
|
inline |
|
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.
|
inlineinherited |
Get the object to or from which this object has a relation.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 278 of file RelationsObject.h.
|
inlineinherited |
Get the object from which this object has a relation.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 263 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from an array.
FROM | The class of objects from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 314 of file RelationsObject.h.
|
inlineinherited |
Get the object to which this object has a relation.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 248 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing to an array.
TO | The class of objects to which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 297 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from/to an array.
T | The class of objects to or from which the relation points. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 331 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from another store array to this object.
FROM | The class of objects from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 212 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from this object to another store array.
TO | The class of objects to which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 197 of file RelationsObject.h.
|
inlineinherited |
Get the relations between this object and another store array.
Relations in both directions are returned.
T | The class of objects to or from which the relations point. |
name | The 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. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 230 of file RelationsObject.h.
|
inline |
Get hit position error covariance coefficient.
Definition at line 151 of file PXDCluster.h.
|
inline |
Get vector of sector eta values.
Sectors in thetaU and thetaV are numbered ++, -+, –, +-.
Definition at line 237 of file PXDCluster.h.
|
inline |
Get vector of sector eta values.
Sectors in thetaU and thetaV are numbered ++, -+, –, +-.
Definition at line 233 of file PXDCluster.h.
|
inline |
Get vector of sector shape indices.
Sectors in thetaU and thetaV are numbered ++, -+, –, +-.
Definition at line 229 of file PXDCluster.h.
|
inline |
Get vector of sector shape indices.
Sectors in thetaU and thetaV are numbered ++, -+, –, +-.
Definition at line 225 of file PXDCluster.h.
|
inline |
|
inline |
|
inline |
Get cluster kind.
Definition at line 197 of file PXDCluster.h.
|
inline |
Get cluster size.
Definition at line 166 of file PXDCluster.h.
|
inline |
Get u coordinate of hit position.
Definition at line 131 of file PXDCluster.h.
|
inline |
Get error of u coordinate of hit position.
Definition at line 141 of file PXDCluster.h.
|
inline |
Get cluster size in u direction.
Definition at line 171 of file PXDCluster.h.
|
inline |
Get cluster start cell in u direction.
Definition at line 181 of file PXDCluster.h.
|
inline |
Get v coordinate of hit position.
Definition at line 136 of file PXDCluster.h.
|
inline |
Get error in v coordinate of hit position.
Definition at line 146 of file PXDCluster.h.
|
inline |
Get cluster size in v direction.
Definition at line 176 of file PXDCluster.h.
|
inline |
Get cluster start cell in v direction.
Definition at line 186 of file PXDCluster.h.
|
inline |
|
inline |
Set error covariance coefficient of hit position.
Definition at line 221 of file PXDCluster.h.
|
inline |
Set u coordinate of hit position.
Definition at line 205 of file PXDCluster.h.
|
inline |
Set error of u coordinate of hit position.
Definition at line 213 of file PXDCluster.h.
|
inline |
Set v coordinate of hit position.
Definition at line 209 of file PXDCluster.h.
|
inline |
Set error in v coordinate of hit position.
Definition at line 217 of file PXDCluster.h.
|
mutableprivateinherited |
Cache of the index in the TClonesArray to which this object belongs.
Definition at line 432 of file RelationsObject.h.
|
mutableprivateinherited |
Cache of the data store entry to which this object belongs.
Definition at line 429 of file RelationsObject.h.
|
protected |
Deposited charge in ADC units.
Definition at line 246 of file PXDCluster.h.
|
protected |
Cluster kind.
Definition at line 253 of file PXDCluster.h.
|
protected |
Cluster size in pixels.
Definition at line 248 of file PXDCluster.h.
|
protected |
Vector of eta values for four angle sectors.
Definition at line 254 of file PXDCluster.h.
|
protected |
Cluster seed charge in ADC units.
Definition at line 247 of file PXDCluster.h.
|
protected |
Compressed sensor identifier.
Definition at line 240 of file PXDCluster.h.
|
protected |
Vector of shape indices for four angle sectors.
Definition at line 255 of file PXDCluster.h.
|
protected |
Absolute cell position in r-phi.
Definition at line 241 of file PXDCluster.h.
|
protected |
Error in u position.
Definition at line 243 of file PXDCluster.h.
|
protected |
Cluster size in pixel columns.
Definition at line 249 of file PXDCluster.h.
|
protected |
Start column of the cluster.
Definition at line 251 of file PXDCluster.h.
|
protected |
Cluster shape correlation.
Definition at line 245 of file PXDCluster.h.
|
protected |
Absolute cell position in z.
Definition at line 242 of file PXDCluster.h.
|
protected |
Error in v position.
Definition at line 244 of file PXDCluster.h.
|
protected |
Cluster size in pixel rows
Definition at line 250 of file PXDCluster.h.
|
protected |
Start row of the cluster.
Definition at line 252 of file PXDCluster.h.