![]() |
Belle II Software
release-05-01-25
|
The SVD RecoDigit class. More...
#include <SVDRecoDigit.h>
Public Types | |
typedef uint16_t | StoredProbType |
Types for internal storage of probability array. | |
typedef std::vector< StoredProbType > | StoredProbArray |
vector of StoreProbType objects | |
typedef double | OutputProbType |
Type for output probability array. More... | |
typedef std::vector< OutputProbType > | OutputProbArray |
vector of OutProbType objects | |
Public Member Functions | |
template<typename T > | |
SVDRecoDigit (VxdID sensorID, bool isU, short cellID, float fittedAmplitude, float fittedAmplitudeError, float fittedTime, float fittedTimeError, const T &probabilities, float chi2, SVDModeByte mode=SVDModeByte()) | |
Constructor using a stl container of time bin probabilities. More... | |
SVDRecoDigit () | |
Default constructor for the ROOT IO. | |
VxdID | getSensorID () const |
Get the sensor ID. More... | |
VxdID::baseType | getRawSensorID () const |
Get raw sensor ID. More... | |
bool | isUStrip () const |
Get strip direction. More... | |
short int | getCellID () const |
Get strip ID. More... | |
float | getAmplitude () const |
Get amplitude estimate. More... | |
float | getCharge () const |
Get amplitude estimate, alternate getter name. More... | |
float | getAmplitudeError () const |
Get amplitude error. More... | |
float | getTime () const |
Get time estimate @returm fitted signal arrival time. | |
float | getTimeError () const |
Get time error. More... | |
OutputProbArray | getProbabilities () const |
Get signal time pdf. More... | |
float | getChi2Ndf () const |
Get waveform fit chi2/ndf. More... | |
SVDModeByte | getModeByte () const |
Get the SVDMOdeByte object containing information on trigger FADCTime and DAQ mode. More... | |
std::string | toString () const |
Display main parameters in this object. | |
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). More... | |
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). More... | |
void | copyRelations (const RelationsInterface< BASE > *sourceObj) |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). More... | |
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. More... | |
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. More... | |
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. More... | |
template<class TO > | |
TO * | getRelatedTo (const std::string &name="", const std::string &namedRelation="") const |
Get the object to which this object has a relation. More... | |
template<class FROM > | |
FROM * | getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the object from which this object has a relation. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
virtual std::string | getName () const |
Return a short name that describes this object, e.g. More... | |
virtual std::string | getInfoHTML () const |
Return a short summary of this object's contents in HTML format. More... | |
std::string | getInfo () const |
Return a short summary of this object's contents in raw text format. More... | |
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. | |
Static Public Attributes | |
static const uint16_t | storedProbArrayNorm = UINT16_MAX |
some constant | |
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). | |
Private Member Functions | |
ClassDef (RelationsInterface, 0) | |
defines interface for accessing relations of objects in StoreArray. | |
Private Attributes | |
VxdID::baseType | m_sensorID |
Compressed sensor identifier. | |
bool | m_isU |
True if U, false if V. | |
short | m_cellID |
Strip coordinate in pitch units. | |
float | m_fittedAmplitude |
Fitted amplitude of the signal ("charge") | |
float | m_fittedAmplitudeError |
Error estimate of amplitude fit. | |
float | m_fittedTime |
Fitted arrival time of the signal. | |
float | m_fittedTimeError |
Error estimate of time fit. | |
StoredProbArray | m_probabilities |
pdf of the time estimate. | |
float | m_fitChi2Ndf |
Standardized chi2 of the fit. | |
SVDModeByte::baseType | m_mode |
Mode byte, trigger FADCTime + DAQ mode. | |
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 RecoDigit class.
The SVDRecoDigit is a calibrated and time-fitted strip signal. It contains SVDModeByte and strip identification data, plus fit and fit quality information. NB: This class will be bulky and is not intended for storage beyond the current event. NB: I tried to make the class as little dependent on the waveform fitter as possible. However, the current fitter produces a pdf for signal time and this may not be the case with a different fitter.
Definition at line 54 of file SVDRecoDigit.h.
typedef double OutputProbType |
Type for output probability array.
There is no link between this and what the fitter may produce.
Definition at line 67 of file SVDRecoDigit.h.
|
inline |
Constructor using a stl container of time bin probabilities.
sensorID | Sensor VXD ID. |
isU | True if u strip, false if v. |
cellID | Strip ID. |
fittedAmplitude | amplitude estimate for the signal. |
fittedAmplitudeError | amplitude error estimate. |
fittedTime | fitted time-of-arrival estimate. |
fittedTimeEorror | time error estimate. |
probabilities | pdf for time estimate. |
chi2 | Standardized chi2 for the fit. |
mode | SVDModeByte structure, packed trigger time bin and DAQ mode. |
Definition at line 84 of file SVDRecoDigit.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 144 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 157 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 172 of file RelationsObject.h.
|
inline |
Get amplitude estimate.
Definition at line 133 of file SVDRecoDigit.h.
|
inline |
Get amplitude error.
Definition at line 143 of file SVDRecoDigit.h.
|
inline |
|
inline |
Get amplitude estimate, alternate getter name.
Definition at line 138 of file SVDRecoDigit.h.
|
inline |
Get waveform fit chi2/ndf.
Definition at line 177 of file SVDRecoDigit.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 372 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 TrackFitResult, TRGSummary, Track, SoftwareTriggerResult, Particle, RecoTrack, MCParticle, Cluster, and PIDLikelihood.
Definition at line 364 of file RelationsObject.h.
|
inline |
Get the SVDMOdeByte object containing information on trigger FADCTime and DAQ mode.
Definition at line 182 of file SVDRecoDigit.h.
|
inlinevirtualinherited |
Return a short name that describes this object, e.g.
pi+ for an MCParticle.
Reimplemented in SpacePoint, Particle, and MCParticle.
Definition at line 346 of file RelationsObject.h.
|
inline |
Get signal time pdf.
Definition at line 158 of file SVDRecoDigit.h.
|
inline |
Get raw sensor ID.
For use in Python
Definition at line 118 of file SVDRecoDigit.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 280 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 265 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 316 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 250 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 299 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 333 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 214 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 199 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 232 of file RelationsObject.h.
|
inline |
|
inline |
|
inline |