Belle II Software development
SVDRecoDigit Class Reference

The SVD RecoDigit class. More...

#include <SVDRecoDigit.h>

Inheritance diagram for SVDRecoDigit:
RelationsInterface< BASE >

Public Types

typedef uint16_t StoredProbType
 Types for internal storage of probability array.
 
typedef std::vector< StoredProbTypeStoredProbArray
 vector of StoreProbType objects
 
typedef double OutputProbType
 Type for output probability array.
 
typedef std::vector< OutputProbTypeOutputProbArray
 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)
 Constructor using a stl container of time bin probabilities.
 
 SVDRecoDigit ()
 Default constructor for the ROOT IO.
 
VxdID getSensorID () const
 Get the sensor ID.
 
VxdID::baseType getRawSensorID () const
 Get raw sensor ID.
 
bool isUStrip () const
 Get strip direction.
 
short int getCellID () const
 Get strip ID.
 
float getAmplitude () const
 Get amplitude estimate.
 
float getCharge () const
 Get amplitude estimate, alternate getter name.
 
float getAmplitudeError () const
 Get amplitude error.
 
float getTime () const
 Get time estimate.
 
float getTimeError () const
 Get time error.
 
OutputProbArray getProbabilities () const
 Get signal time pdf.
 
float getChi2Ndf () const
 Get waveform fit chi2/ndf.
 
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).
 
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.
 

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.
 
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 SVD RecoDigit class.

The SVDRecoDigit is a calibrated and time-fitted strip signal. It contains 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 43 of file SVDRecoDigit.h.

Member Typedef Documentation

◆ OutputProbArray

typedef std::vector<OutputProbType> OutputProbArray

vector of OutProbType objects

Definition at line 57 of file SVDRecoDigit.h.

◆ OutputProbType

typedef double OutputProbType

Type for output probability array.

There is no link between this and what the fitter may produce.

Definition at line 56 of file SVDRecoDigit.h.

◆ StoredProbArray

typedef std::vector<StoredProbType> StoredProbArray

vector of StoreProbType objects

Definition at line 50 of file SVDRecoDigit.h.

◆ StoredProbType

typedef uint16_t StoredProbType

Types for internal storage of probability array.

Definition at line 49 of file SVDRecoDigit.h.

Constructor & Destructor Documentation

◆ SVDRecoDigit() [1/2]

SVDRecoDigit ( VxdID  sensorID,
bool  isU,
short  cellID,
float  fittedAmplitude,
float  fittedAmplitudeError,
float  fittedTime,
float  fittedTimeError,
const T &  probabilities,
float  chi2 
)
inline

Constructor using a stl container of time bin probabilities.

Parameters
sensorIDSensor VXD ID.
isUTrue if u strip, false if v.
cellIDStrip ID.
fittedAmplitudeamplitude estimate for the signal.
fittedAmplitudeErroramplitude error estimate.
fittedTimefitted time-of-arrival estimate.
fittedTimeErrortime error estimate.
probabilitiespdf for time estimate.
chi2Standardized chi2 for the fit.

Definition at line 71 of file SVDRecoDigit.h.

73 :
74 m_sensorID(sensorID), m_isU(isU), m_cellID(cellID),
75 m_fittedAmplitude(fittedAmplitude), m_fittedAmplitudeError(fittedAmplitudeError),
76 m_fittedTime(fittedTime), m_fittedTimeError(fittedTimeError), m_fitChi2Ndf(chi2)
77 {
78 // Expecting input array normalized to 1, but don't rely on it.
79 double inputNorm = std::accumulate(probabilities.begin(), probabilities.end(), 0.0);
80 if (inputNorm < 0.1) inputNorm = 1.0;
81 double normCoef = static_cast<double>(storedProbArrayNorm) / inputNorm;
82 std::transform(probabilities.begin(), probabilities.end(),
83 std::back_inserter(m_probabilities),
84 [normCoef](typename T::value_type x)->StoredProbType
85 { return static_cast<StoredProbType>(normCoef * x); }
86 );
87 }
StoredProbArray m_probabilities
pdf of the time estimate.
Definition: SVDRecoDigit.h:192
float m_fitChi2Ndf
Standardized chi2 of the fit.
Definition: SVDRecoDigit.h:193
bool m_isU
True if U, false if V.
Definition: SVDRecoDigit.h:185
VxdID::baseType m_sensorID
Compressed sensor identifier.
Definition: SVDRecoDigit.h:184
float m_fittedAmplitude
Fitted amplitude of the signal ("charge")
Definition: SVDRecoDigit.h:188
float m_fittedTime
Fitted arrival time of the signal.
Definition: SVDRecoDigit.h:190
short m_cellID
Strip coordinate in pitch units.
Definition: SVDRecoDigit.h:186
static const uint16_t storedProbArrayNorm
some constant
Definition: SVDRecoDigit.h:51
float m_fittedTimeError
Error estimate of time fit.
Definition: SVDRecoDigit.h:191
float m_fittedAmplitudeError
Error estimate of amplitude fit.
Definition: SVDRecoDigit.h:189

◆ SVDRecoDigit() [2/2]

SVDRecoDigit ( )
inline

Default constructor for the ROOT IO.

Definition at line 90 of file SVDRecoDigit.h.

91 0, true, 0, 0.0, 10.0, 0.0, 100.0, std::vector<double>({1.0}), 100.0
92 )
93 { }
SVDRecoDigit()
Default constructor for the ROOT IO.
Definition: SVDRecoDigit.h:90

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).

◆ getAmplitude()

float getAmplitude ( ) const
inline

Get amplitude estimate.

Returns
fitted amplitude in e-

Definition at line 119 of file SVDRecoDigit.h.

119{ return m_fittedAmplitude; }

◆ getAmplitudeError()

float getAmplitudeError ( ) const
inline

Get amplitude error.

Returns
amplitude error estimate in e-

Definition at line 129 of file SVDRecoDigit.h.

129{ return m_fittedAmplitudeError; }

◆ 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

◆ getCellID()

short int getCellID ( ) const
inline

Get strip ID.

Returns
ID of the strip.

Definition at line 114 of file SVDRecoDigit.h.

114{ return m_cellID; }

◆ getCharge()

float getCharge ( ) const
inline

Get amplitude estimate, alternate getter name.

Returns
fitted amplitude in e-

Definition at line 124 of file SVDRecoDigit.h.

124{ return m_fittedAmplitude; }

◆ getChi2Ndf()

float getChi2Ndf ( ) const
inline

Get waveform fit chi2/ndf.

Returns
chi2/ndf for the fit

Definition at line 163 of file SVDRecoDigit.h.

163{ return m_fitChi2Ndf; }

◆ 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 ""; }

◆ 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 ""; }

◆ getProbabilities()

OutputProbArray getProbabilities ( ) const
inline

Get signal time pdf.

Returns
array containing bin probabilities, normalized to 1.

Definition at line 144 of file SVDRecoDigit.h.

145 {
146 OutputProbArray outputPdf;
147 // We need to get the norm, may be different
148 int storeNorm = std::accumulate(m_probabilities.begin(), m_probabilities.end(), 0.0,
149 [](int x, StoredProbType y) -> int { return x + y; });
150 double normCoef = static_cast<double>(1.0 / storeNorm);
151 if (normCoef < 1.0e-15) normCoef = 1.0;
152 std::transform(m_probabilities.begin(), m_probabilities.end(),
153 std::back_inserter(outputPdf),
154 [normCoef](StoredProbType x)-> OutputProbType
155 { return static_cast<OutputProbType>(normCoef * x); }
156 );
157 return outputPdf;
158 }
double OutputProbType
Type for output probability array.
Definition: SVDRecoDigit.h:56
uint16_t StoredProbType
Types for internal storage of probability array.
Definition: SVDRecoDigit.h:49
std::vector< OutputProbType > OutputProbArray
vector of OutProbType objects
Definition: SVDRecoDigit.h:57

◆ getRawSensorID()

VxdID::baseType getRawSensorID ( ) const
inline

Get raw sensor ID.

For use in Python

Returns
basetype ID of the sensor.

Definition at line 104 of file SVDRecoDigit.h.

104{ return m_sensorID; }

◆ 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 }

◆ getSensorID()

VxdID getSensorID ( ) const
inline

Get the sensor ID.

Returns
ID of the sensor.

Definition at line 98 of file SVDRecoDigit.h.

98{ return m_sensorID; }

◆ getTime()

float getTime ( ) const
inline

Get time estimate.

Returns
fitted signal arrival time

Definition at line 134 of file SVDRecoDigit.h.

134{ return m_fittedTime; }

◆ getTimeError()

float getTimeError ( ) const
inline

Get time error.

Returns
time error estimate

Definition at line 139 of file SVDRecoDigit.h.

139{ return m_fittedTimeError; }

◆ isUStrip()

bool isUStrip ( ) const
inline

Get strip direction.

Returns
true if u, false if v.

Definition at line 109 of file SVDRecoDigit.h.

109{ return m_isU; }

◆ toString()

std::string toString ( ) const
inline

Display main parameters in this object.

Definition at line 166 of file SVDRecoDigit.h.

167 {
168 VxdID thisSensorID(m_sensorID);
169
170 std::ostringstream os;
171 os << "VXDID : " << m_sensorID << " = " << std::string(thisSensorID) << " strip: "
172 << ((m_isU) ? "U-" : "V-") << m_cellID
173 << " Amplitude: " << m_fittedAmplitude << " +/- " << m_fittedAmplitudeError
174 << " Time: " << m_fittedTime << " +/- " << m_fittedTimeError << std::endl
175 << " probabilities: ";
176 std::copy(m_probabilities.begin(), m_probabilities.end(),
177 std::ostream_iterator<StoredProbType>(os, " "));
178 os << "Chi2/ndf: " << m_fitChi2Ndf << std::endl;
179 return os.str();
180 }

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_cellID

short m_cellID
private

Strip coordinate in pitch units.

Definition at line 186 of file SVDRecoDigit.h.

◆ m_fitChi2Ndf

float m_fitChi2Ndf
private

Standardized chi2 of the fit.

Definition at line 193 of file SVDRecoDigit.h.

◆ m_fittedAmplitude

float m_fittedAmplitude
private

Fitted amplitude of the signal ("charge")

Definition at line 188 of file SVDRecoDigit.h.

◆ m_fittedAmplitudeError

float m_fittedAmplitudeError
private

Error estimate of amplitude fit.

Definition at line 189 of file SVDRecoDigit.h.

◆ m_fittedTime

float m_fittedTime
private

Fitted arrival time of the signal.

Definition at line 190 of file SVDRecoDigit.h.

◆ m_fittedTimeError

float m_fittedTimeError
private

Error estimate of time fit.

Definition at line 191 of file SVDRecoDigit.h.

◆ m_isU

bool m_isU
private

True if U, false if V.

Definition at line 185 of file SVDRecoDigit.h.

◆ m_probabilities

StoredProbArray m_probabilities
private

pdf of the time estimate.

Definition at line 192 of file SVDRecoDigit.h.

◆ m_sensorID

VxdID::baseType m_sensorID
private

Compressed sensor identifier.

Definition at line 184 of file SVDRecoDigit.h.

◆ storedProbArrayNorm

const uint16_t storedProbArrayNorm = UINT16_MAX
static

some constant

Definition at line 51 of file SVDRecoDigit.h.


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