Belle II Software development
|
The SVD Cluster class This class stores all information about reconstructed SVD clusters. More...
#include <SVDCluster.h>
Public Member Functions | |
SVDCluster (VxdID sensorID, bool isU, float position, float positionSigma, double clsTime, double clsTimeSigma, float clsCharge, float seedCharge, unsigned short clsSize, float clsSN, float clsChi2, int firstFrame=0) | |
Constructor. | |
SVDCluster () | |
Default constructor for the ROOT IO. | |
SVDCluster (VxdID sensorID, bool isU, float position, double clsTime, double clsTimeSigma, float clsCharge, float seedCharge, unsigned short clsSize) | |
OLD STYLE 8-params constructor, just for backward compatibility. | |
SVDCluster (VxdID sensorID, bool isU, float position, float positionSigma, double clsTime, double clsTimeSigma, float clsCharge, float seedCharge, unsigned short clsSize, float clsSN) | |
OLD STYLE Constructor, just for backward compatibility. | |
VxdID | getSensorID () const |
Get the sensor ID. | |
unsigned short | getRawSensorID () const |
Get raw sensor ID. | |
bool | isUCluster () const |
Get the direction of strips. | |
float | getPosition (double v=0) const |
Get the coordinate of reconstructed hit. | |
float | getPositionSigma () const |
Get the error of the reconstructed hit coordinate. | |
float | getClsTime () const |
Get average of waveform maximum times of cluster strip signals. | |
float | getClsTimeSigma () const |
Get the error of the reconstructed hit time. | |
float | getCharge () const |
Get collected charge. | |
float | getSeedCharge () const |
Get seed charge. | |
unsigned short | getSize () const |
Get cluster size. | |
float | getSNR () const |
Get cluster SNR. | |
float | getChi2 () const |
Get chi2 of the time/amplitude fit. | |
int | getFirstFrame () const |
Get firstFrame of the MaxSum algorithm. | |
double | getQuality () const |
Get cluster quality indicator. | |
double | getQualityError () const |
Get cluster quality indicator error. | |
const std::vector< int > & | getTimeGroupId () const |
Get ID of the time-group. | |
const std::vector< std::tuple< float, float, float > > & | getTimeGroupInfo () const |
Get time-group parameters. | |
void | setPosition (const double position) |
Set position of the cluster. | |
void | setClsTime (const double time) |
Set time of the cluster. | |
void | setQualityIndicator (const double qualityIndicator) |
Add quality indicator to object. | |
void | setQualityIndicatorError (double qualityIndicatorError) |
Add quality indicator error to object. | |
std::vector< int > & | setTimeGroupId () |
Set ID of the time-group. | |
std::vector< std::tuple< float, float, float > > & | setTimeGroupInfo () |
Set time-group parameters. | |
std::string | print () const |
Get a string representation of the cluster. | |
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. | |
bool | m_isU |
True if clusters of u-strips, otherwise false. | |
float | m_position |
Reconstructed hit position in r-phi or z. | |
float | m_positionSigma |
Standard deviation of hit position in r-phi or z. | |
double | m_clsTime |
Average waveform maximum time. | |
double | m_clsTimeSigma |
Standard deviation of waveform maximum times. | |
float | m_clsCharge |
Deposited charge in electrons. | |
float | m_seedCharge |
Cluster seed charge in electrons. | |
unsigned short | m_clsSize |
Cluster size in pixels. | |
float | m_clsSN |
Cluster S/N ratio. | |
float | m_clsChi2 |
Chi2 for time/amplitude fit. | |
int | m_firstFrame |
firstFrame computed with the MaxSum algorithm | |
std::vector< int > | m_timeGroupId |
Grouping of clusters in time. | |
std::vector< std::tuple< float, float, float > > | m_timeGroupInfo |
TimeGroup Gaussian Parameters, (integral, center, sigma) | |
double | m_qualityIndicator = {0.} |
Probability of signal cluster. | |
double | m_qualityIndicatorError = {0.} |
Error associated with probability calcualtion. | |
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 SVD Cluster class This class stores all information about reconstructed SVD clusters.
Definition at line 29 of file SVDCluster.h.
|
inline |
Constructor.
sensorID | Sensor compact ID. |
isU | true if u strips, otherwise false. |
position | Hit position estimate. |
positionSigma | Error of hit postion estimate. |
clsTime | Hit time stimate. |
clsTimeSigma | Error of hit time estimate. |
clsCharge | The cluster charge in ADC units. |
seedCharge | The charge of the seed strip in ADC units. |
clsSize | Cluster size, number of fired strips that form the cluster. |
clsSN | Signal-to-noise ratio for the cluster |
clsChi2 | value for cluster fit |
firstFrame |
Definition at line 46 of file SVDCluster.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 57 of file SVDCluster.h.
|
inline |
OLD STYLE 8-params constructor, just for backward compatibility.
Will be removed in future.
sensorID | Sensor compact ID. |
isU | true if u strips, otherwise false. |
position | Hit position estimate. |
clsTime | Hit time stimate. |
clsTimeSigma | Error of hit time estimate. |
clsCharge | The cluster charge in ADC units. |
seedCharge | The charge of the seed strip in ADC units. |
clsSize | Cluster size, number of fired strips that form the cluster. |
Definition at line 72 of file SVDCluster.h.
|
inline |
OLD STYLE Constructor, just for backward compatibility.
sensorID | Sensor compact ID. |
isU | true if u strips, otherwise false. |
position | Hit position estimate. |
positionSigma | Error of hit postion estimate. |
clsTime | Hit time stimate. |
clsTimeSigma | Error of hit time estimate. |
clsCharge | The cluster charge in ADC units. |
seedCharge | The charge of the seed strip in ADC units. |
clsSize | Cluster size, number of fired strips that form the cluster. |
clsSN | Signal-to-noise ratio for the cluster Will be removed in future. |
Definition at line 92 of file SVDCluster.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 144 of file SVDCluster.h.
|
inline |
Get chi2 of the time/amplitude fit.
Definition at line 164 of file SVDCluster.h.
|
inline |
Get average of waveform maximum times of cluster strip signals.
Definition at line 134 of file SVDCluster.h.
|
inline |
Get the error of the reconstructed hit time.
Definition at line 139 of file SVDCluster.h.
|
inline |
Get firstFrame of the MaxSum algorithm.
Definition at line 169 of file SVDCluster.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.
|
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.
|
inline |
Get the coordinate of reconstructed hit.
The returned value is now dependent of vCluster and valid only and it is only relevant for wedged/slanted sensors because of their trapezoidal shape, for rectangular shapes, the value does not change
Definition at line 117 of file SVDCluster.h.
|
inline |
Get the error of the reconstructed hit coordinate.
Definition at line 129 of file SVDCluster.h.
|
inline |
Get cluster quality indicator.
Definition at line 174 of file SVDCluster.h.
|
inline |
Get cluster quality indicator error.
Definition at line 179 of file SVDCluster.h.
|
inline |
|
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 seed charge.
Definition at line 149 of file SVDCluster.h.
|
inline |
|
inline |
Get cluster size.
Definition at line 154 of file SVDCluster.h.
|
inline |
Get cluster SNR.
Definition at line 159 of file SVDCluster.h.
|
inline |
Get ID of the time-group.
Definition at line 184 of file SVDCluster.h.
|
inline |
Get time-group parameters.
Definition at line 189 of file SVDCluster.h.
|
inline |
Get the direction of strips.
Definition at line 110 of file SVDCluster.h.
|
inline |
Get a string representation of the cluster.
Definition at line 234 of file SVDCluster.h.
|
inline |
Set time of the cluster.
Definition at line 202 of file SVDCluster.h.
|
inline |
Set position of the cluster.
Definition at line 194 of file SVDCluster.h.
|
inline |
Add quality indicator to object.
Definition at line 210 of file SVDCluster.h.
|
inline |
Add quality indicator error to object.
Definition at line 218 of file SVDCluster.h.
|
inline |
Set ID of the time-group.
Definition at line 226 of file SVDCluster.h.
|
inline |
Set time-group parameters.
Definition at line 231 of file SVDCluster.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 electrons.
Definition at line 255 of file SVDCluster.h.
|
protected |
Chi2 for time/amplitude fit.
Definition at line 259 of file SVDCluster.h.
|
protected |
Cluster size in pixels.
Definition at line 257 of file SVDCluster.h.
|
protected |
Cluster S/N ratio.
Definition at line 258 of file SVDCluster.h.
|
protected |
Average waveform maximum time.
Definition at line 253 of file SVDCluster.h.
|
protected |
Standard deviation of waveform maximum times.
Definition at line 254 of file SVDCluster.h.
|
protected |
firstFrame computed with the MaxSum algorithm
Definition at line 260 of file SVDCluster.h.
|
protected |
True if clusters of u-strips, otherwise false.
Definition at line 250 of file SVDCluster.h.
|
protected |
Reconstructed hit position in r-phi or z.
Definition at line 251 of file SVDCluster.h.
|
protected |
Standard deviation of hit position in r-phi or z.
Definition at line 252 of file SVDCluster.h.
|
protected |
Probability of signal cluster.
Definition at line 264 of file SVDCluster.h.
|
protected |
Error associated with probability calcualtion.
Definition at line 265 of file SVDCluster.h.
|
protected |
Cluster seed charge in electrons.
Definition at line 256 of file SVDCluster.h.
|
protected |
Compressed sensor identifier.
Definition at line 249 of file SVDCluster.h.
|
protected |
Grouping of clusters in time.
Definition at line 261 of file SVDCluster.h.
|
protected |
TimeGroup Gaussian Parameters, (integral, center, sigma)
Definition at line 262 of file SVDCluster.h.