Belle II Software development
|
#include <SVDTransparentDigit.h>
Public Member Functions | |
SVDTransparentDigit (const VxdID sensorID, const bool isU, const unsigned short fadcID, const unsigned short apvID, const unsigned short nSample=0, const short **adc=nullptr, const short *cmc1=nullptr, const short *cmc2=nullptr, const short **corradc=nullptr, const short **fine_cmc1=nullptr, const short **fine_cmc2=nullptr, const short **fine_corradc=nullptr) | |
Useful Constructor. | |
SVDTransparentDigit () | |
Default constructor for the ROOT IO. | |
VxdID | getSensorID () const |
Get the sensor ID. | |
bool | isUStrip () const |
Get strip direction. | |
unsigned short | getFadcID () const |
Get FADC ID. | |
unsigned short | getApvID () const |
Get APV ID. | |
unsigned short | getNSample () const |
Get number of samples. | |
const short * | getADC (short channel) const |
Get ADC value. | |
short | getADC (short channel, short index) const |
Get ADC value. | |
const short * | getCMC1 () const |
Get 1st commom-mode correction value. | |
short | getCMC1 (short index) const |
Get 1st commom-mode correction value. | |
const short * | getCMC2 () const |
Get 2nd commom-mode correction value. | |
short | getCMC2 (short index) const |
Get 2nd commom-mode correction value. | |
const short * | getCMC () const |
Get total commom-mode correction value. | |
short | getCMC (short index) const |
Get total commom-mode correction value. | |
const short * | getFineCMC1 (short channel) const |
Get 1st fine commom-mode correction value. | |
short | getFineCMC1 (short channel, short index) const |
Get 1st fine commom-mode correction value. | |
const short * | getFineCMC2 (short channel) const |
Get 2nd fine commom-mode correction value. | |
short | getFineCMC2 (short channel, short index) const |
Get 2nd fine commom-mode correction value. | |
const short * | getFineCMC (short channel) const |
Get total fine commom-mode correction value. | |
short | getFineCMC (short channel, short index) const |
Get total fine commom-mode correction value. | |
const short * | getCorrADC (short channel) const |
Get corrected ADC value with pedestal and common-mode. | |
short | getCorrADC (short channel, short index) const |
Get corrected ADC value with pedestal and common-mode. | |
const short * | getFineCorrADC (short channel) const |
Get precisely corrected ADC value with pedestal and fine common-mode. | |
short | getFineCorrADC (short channel, short index) const |
Get precisely corrected ADC value with pedestal and fine common-mode. | |
void | setSensorID (VxdID vxdid) |
Set the sensor ID. | |
void | setUStrip (bool isu) |
Set strip direction. | |
void | setFadcID (unsigned short fadcID) |
Set FADC ID. | |
void | setApvID (unsigned short apvID) |
Set APV ID. | |
void | setNSample (unsigned short nSample) |
Set number of samples. | |
void | setADC (short **adc) |
Set ADC values. | |
void | setADC (short *adc, short channel) |
Set ADC values. | |
void | setADC (short adc, short channel, short index) |
Set ADC values. | |
void | setCMC1 (short *cmc1) |
Set 1st commom-mode correction value. | |
void | setCMC1 (short cmc1, int index) |
Set 1st commom-mode correction value. | |
void | setCMC2 (short *cmc2) |
Set 2nd commom-mode correction value. | |
void | setCMC2 (short cmc2, int index) |
Set 2nd commom-mode correction value. | |
void | setCMC (short *cmc) |
Set Total commom-mode correction value. | |
void | setCMC (short cmc, int index) |
Set Total commom-mode correction value. | |
void | setFineCMC1 (short **fine_cmc1) |
Set channel-dependent 1st CMC values. | |
void | setFineCMC1 (short *fine_cmc1, short channel) |
Set channel-dependent 1st CMC values. | |
void | setFineCMC1 (short fine_cmc1, short channel, short index) |
Set channel-dependent 1st CMC values. | |
void | setFineCMC2 (short **fine_cmc2) |
Set channel-dependent 2nd CMC values. | |
void | setFineCMC2 (short *fine_cmc2, short channel) |
Set channel-dependent 2nd CMC values. | |
void | setFineCMC2 (short fine_cmc2, short channel, short index) |
Set channel-dependent 2nd CMC values. | |
void | setFineCMC (short **fine_cmc) |
Set CMC values. | |
void | setFineCMC (short *fine_cmc, short channel) |
Set channel-dependent CMC values. | |
void | setFineCMC (short fine_cmc, short channel, short index) |
Set channel-dependent CMC values. | |
void | setCorrADC (short **corradc) |
Set corrected ADC values. | |
void | setCorrADC (short *corradc, short channel) |
Set corrected ADC values. | |
void | setCorrADC (short corradc, short channel, short index) |
Set corrected ADC values. | |
void | setFineCorrADC (short **corradc) |
Set precisely corrected ADC values. | |
void | setFineCorrADC (short *corradc, short channel) |
Set precisely corrected ADC values. | |
void | setFineCorrADC (short corradc, short channel, short index) |
Set precisely corrected ADC values. | |
std::string | print () |
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. | |
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 | |
unsigned short | m_sensorID |
Compressed sensor identifier. | |
bool | m_isU |
True if U, false if V. | |
unsigned short | m_fadcID |
FADC ID. | |
unsigned short | m_apvID |
APV25 ID. | |
unsigned short | m_nSample |
Number of samples. | |
short | m_ADC [128][6] |
ADC values of strip signal. | |
short | m_cmc1 [6] |
1st common-mode correction values. | |
short | m_cmc2 [6] |
2nd common-mode correction values. | |
short | m_cmc [6] |
total common-mode correction values. | |
short | m_fine_cmc1 [128][6] |
Channel-dependent 1st common-mode correction values. | |
short | m_fine_cmc2 [128][6] |
Channel-dependent 2nd common-mode correction values. | |
short | m_fine_cmc [128][6] |
Channel-dependent total common-mode correction values. | |
short | m_corrADC [128][6] |
ADC values of strip signal corrected by pedestal and commom-mode. | |
short | m_fine_corrADC [128][6] |
ADC values of strip signal precisely corrected by pedestal and fine commom-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 digit class.
The SVDTransparentDigit is an APV25 signal sample. This is a development implementation which is intentionally kept somewhat bulky. I record strip coordinates that won't be kept in future. Also the sensor and ncell IDs could be somewhat compressed, if desired.
Definition at line 34 of file SVDTransparentDigit.h.
|
inline |
Useful Constructor.
sensorID | Sensor compact ID. |
isU | True if u strip, false if v. |
fadcID | |
apvID | |
nSample | |
adc | |
cmc1 | |
cmc2 | |
corradc | |
fine_cmc1 | |
fine_cmc2 | |
fine_corradc |
Definition at line 52 of file SVDTransparentDigit.h.
|
inline |
Default constructor for the ROOT IO.
Definition at line 143 of file SVDTransparentDigit.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.
|
inline |
Get ADC value.
Definition at line 175 of file SVDTransparentDigit.h.
|
inline |
Get ADC value.
Definition at line 184 of file SVDTransparentDigit.h.
|
inline |
|
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 total commom-mode correction value.
Definition at line 222 of file SVDTransparentDigit.h.
|
inline |
Get total commom-mode correction value.
Definition at line 226 of file SVDTransparentDigit.h.
|
inline |
Get 1st commom-mode correction value.
Definition at line 195 of file SVDTransparentDigit.h.
|
inline |
Get 1st commom-mode correction value.
Definition at line 200 of file SVDTransparentDigit.h.
|
inline |
Get 2nd commom-mode correction value.
Definition at line 209 of file SVDTransparentDigit.h.
|
inline |
Get 2nd commom-mode correction value.
Definition at line 213 of file SVDTransparentDigit.h.
|
inline |
Get corrected ADC value with pedestal and common-mode.
Definition at line 290 of file SVDTransparentDigit.h.
|
inline |
Get corrected ADC value with pedestal and common-mode.
Definition at line 298 of file SVDTransparentDigit.h.
|
inline |
|
inline |
Get total fine commom-mode correction value.
Definition at line 271 of file SVDTransparentDigit.h.
|
inline |
Get total fine commom-mode correction value.
Definition at line 279 of file SVDTransparentDigit.h.
|
inline |
Get 1st fine commom-mode correction value.
Definition at line 235 of file SVDTransparentDigit.h.
|
inline |
Get 1st fine commom-mode correction value.
Definition at line 243 of file SVDTransparentDigit.h.
|
inline |
Get 2nd fine commom-mode correction value.
Definition at line 253 of file SVDTransparentDigit.h.
|
inline |
Get 2nd fine commom-mode correction value.
Definition at line 261 of file SVDTransparentDigit.h.
|
inline |
Get precisely corrected ADC value with pedestal and fine common-mode.
Definition at line 309 of file SVDTransparentDigit.h.
|
inline |
Get precisely corrected ADC value with pedestal and fine common-mode.
Definition at line 317 of file SVDTransparentDigit.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 number of samples.
Definition at line 170 of file SVDTransparentDigit.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 |
|
inline |
Get strip direction.
Definition at line 155 of file SVDTransparentDigit.h.
|
inline |
Display main parameters in this object.
Definition at line 586 of file SVDTransparentDigit.h.
|
inline |
Set ADC values.
Definition at line 348 of file SVDTransparentDigit.h.
|
inline |
Set ADC values.
Definition at line 361 of file SVDTransparentDigit.h.
|
inline |
Set ADC values.
Definition at line 372 of file SVDTransparentDigit.h.
|
inline |
|
inline |
Set Total commom-mode correction value.
Definition at line 411 of file SVDTransparentDigit.h.
|
inline |
Set Total commom-mode correction value.
Definition at line 419 of file SVDTransparentDigit.h.
|
inline |
Set 1st commom-mode correction value.
Definition at line 380 of file SVDTransparentDigit.h.
|
inline |
Set 1st commom-mode correction value.
Definition at line 389 of file SVDTransparentDigit.h.
|
inline |
Set 2nd commom-mode correction value.
Definition at line 396 of file SVDTransparentDigit.h.
|
inline |
Set 2nd commom-mode correction value.
Definition at line 404 of file SVDTransparentDigit.h.
|
inline |
Set corrected ADC values.
Definition at line 522 of file SVDTransparentDigit.h.
|
inline |
Set corrected ADC values.
Definition at line 535 of file SVDTransparentDigit.h.
|
inline |
Set corrected ADC values.
Definition at line 546 of file SVDTransparentDigit.h.
|
inline |
|
inline |
Set CMC values.
Definition at line 490 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent CMC values.
Definition at line 503 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent CMC values.
Definition at line 514 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 1st CMC values.
Definition at line 426 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 1st CMC values.
Definition at line 439 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 1st CMC values.
Definition at line 450 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 2nd CMC values.
Definition at line 458 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 2nd CMC values.
Definition at line 471 of file SVDTransparentDigit.h.
|
inline |
Set channel-dependent 2nd CMC values.
Definition at line 482 of file SVDTransparentDigit.h.
|
inline |
Set precisely corrected ADC values.
Definition at line 554 of file SVDTransparentDigit.h.
|
inline |
Set precisely corrected ADC values.
Definition at line 567 of file SVDTransparentDigit.h.
|
inline |
Set precisely corrected ADC values.
Definition at line 578 of file SVDTransparentDigit.h.
|
inline |
Set number of samples.
Definition at line 344 of file SVDTransparentDigit.h.
|
inline |
Set the sensor ID.
Definition at line 328 of file SVDTransparentDigit.h.
|
inline |
|
private |
ADC values of strip signal.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 620 of file SVDTransparentDigit.h.
|
private |
APV25 ID.
Definition at line 615 of file SVDTransparentDigit.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.
|
private |
total common-mode correction values.
Index represents sample index (0~5).
Definition at line 624 of file SVDTransparentDigit.h.
|
private |
1st common-mode correction values.
Index represents sample index (0~5).
Definition at line 622 of file SVDTransparentDigit.h.
|
private |
2nd common-mode correction values.
Index represents sample index (0~5).
Definition at line 623 of file SVDTransparentDigit.h.
|
private |
ADC values of strip signal corrected by pedestal and commom-mode.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 630 of file SVDTransparentDigit.h.
|
private |
FADC ID.
Definition at line 614 of file SVDTransparentDigit.h.
|
private |
Channel-dependent total common-mode correction values.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 628 of file SVDTransparentDigit.h.
|
private |
Channel-dependent 1st common-mode correction values.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 626 of file SVDTransparentDigit.h.
|
private |
Channel-dependent 2nd common-mode correction values.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 627 of file SVDTransparentDigit.h.
|
private |
ADC values of strip signal precisely corrected by pedestal and fine commom-mode.
Index represents channel index (0~127) and sample index (0~5).
Definition at line 631 of file SVDTransparentDigit.h.
|
private |
True if U, false if V.
Definition at line 612 of file SVDTransparentDigit.h.
|
private |
Number of samples.
Definition at line 617 of file SVDTransparentDigit.h.
|
private |
Compressed sensor identifier.
Definition at line 611 of file SVDTransparentDigit.h.