Belle II Software development
|
Class to store SVD DAQ diagnostic information. More...
#include <SVDDAQDiagnostic.h>
Public Types | |
enum | { TriggerTypeBits = 4 , TriggerNumberBits = 8 , PipelineAddressBits = 8 , CMC1Bits = 8 , CMC2Bits = 4 , APVErrorBits = 4 , FTBErrorBits = 8 , FTBFlagsBits = 5 , EMUPipelineAddressBits = 8 , APVErrorORBits = 4 , FADCMatchBits = 1 , APVMatchBits = 1 , UpsetAPVBits = 1 , BadMappingBits = 1 , BadHeaderBits = 1 , BadTrailerBits = 1 , MissedHeaderBits = 1 , MissedTrailerBits = 1 , Bits = TriggerTypeBits + TriggerNumberBits + PipelineAddressBits + CMC1Bits + CMC2Bits + APVErrorBits + FTBErrorBits + FTBFlagsBits + EMUPipelineAddressBits + APVErrorORBits + FADCMatchBits + APVMatchBits + UpsetAPVBits + BadMappingBits + BadHeaderBits + BadTrailerBits + MissedHeaderBits + MissedTrailerBits } |
Public Member Functions | |
SVDDAQDiagnostic (uint8_t triggerNumber, uint8_t triggerType, uint8_t pipelineAddress, uint8_t cmc1, uint8_t cmc2, uint8_t apvError, uint8_t ftbError, bool fadcMatch, bool apvMatch, bool badHeader, bool missedHeader, bool missedTrailer, uint8_t fadcNo=uint8_t(0), uint8_t apvNo=uint8_t(0)) | |
Constructor. | |
SVDDAQDiagnostic () | |
Default constructor. | |
uint16_t | getTriggerNumber () const |
Get the trigger number. | |
uint16_t | getTriggerType () const |
Get the trigger type. | |
uint16_t | getPipelineAddress () const |
Get the pipeline address. | |
uint16_t | getCMC1 () const |
Get the Common Mode Correction w/o masking out particle signals. | |
uint16_t | getCMC2 () const |
Get the Common Mode Correction performed after masking particle signals. | |
uint16_t | getAPVError () const |
Get the APV error code. | |
uint16_t | getFTBError () const |
Get the FTB errors field. | |
uint16_t | getFTBFlags () const |
Get the FTB Flags field. | |
uint16_t | getEmuPipelineAddress () const |
Get the emulated pipeline address. | |
uint16_t | getAPVErrorOR () const |
Get the APV error OR code. | |
bool | getAPVMatch () const |
Get the APVmatch code. | |
bool | getFADCMatch () const |
Get the FADCmatch code. | |
bool | getUpsetAPV () const |
Get the UpsetAPV code. | |
bool | getBadMapping () const |
Get the Bad Mapping code. | |
bool | getBadTrailer () const |
Get the Bad Trailer code. | |
bool | getBadHeader () const |
Get the Bad Header code. | |
bool | getMissedHeader () const |
Get the missed Header. | |
bool | getMissedTrailer () const |
Get the missed Trailer. | |
unsigned short | getFADCNumber () const |
Get FADC number. | |
unsigned short | getAPVNumber () const |
Get APV number. | |
void | setFTBFlags (uint16_t ftbFlags) |
functions for setting values unpacked from FADC trailer | |
void | setEmuPipelineAddress (uint8_t emuPipelineAddress) |
functions for setting values unpacked from FADC trailer | |
void | setApvErrorOR (uint8_t apvErrorOR) |
functions for setting values unpacked from FADC trailer | |
void | setAPVMatch (bool APVMatch) |
functions for setting values of | |
void | setFADCMatch (bool FADCMatch) |
functions for setting values of | |
void | setUpsetAPV (bool UpsetAPV) |
functions for setting values for | |
void | setBadMapping (bool BadMapping) |
functions for setting values for | |
void | setBadTrailer (bool BadTrailer) |
functions for setting values for | |
void | setMissedTrailer (bool MissedTrailer) |
functions for setting values for | |
void | setMissedHeader (bool MissedHeader) |
functions for setting values for | |
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 | |
uint8_t | m_triggerNumber |
Trigger number. | |
uint8_t | m_triggerType |
Trigger type. | |
uint8_t | m_pipelineAddress |
Pipeline address. | |
uint8_t | m_cmc1 |
CMC1. | |
uint8_t | m_cmc2 |
CMC2. | |
uint8_t | m_apvError |
APV error code. | |
uint8_t | m_ftbError |
FTB error code. | |
uint16_t | m_ftbFlags |
FTB Flags Field. | |
uint8_t | m_emuPipelineAddress |
emulated pipeline Address | |
uint8_t | m_apvErrorOR |
APV error code in FADC trailer. | |
bool | m_fadcMatch |
if # of FADC boards match # of RawData objects | |
bool | m_apvMatch |
if # of APV headers match # of APVs for given FADC | |
bool | m_upsetApv |
Upset APV. | |
bool | m_badMapping |
Bad mapping. | |
bool | m_badHeader |
Bad fadc Header. | |
bool | m_badTrailer |
Bad fadc Trailer. | |
bool | m_missedHeader |
missed Header | |
bool | m_missedTrailer |
missed Trailer | |
uint8_t | m_fadcNo |
FADC #. | |
uint8_t | m_apvNo |
APV #. | |
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. | |
Class to store SVD DAQ diagnostic information.
Definition at line 23 of file SVDDAQDiagnostic.h.
anonymous enum |
Enumerator | |
---|---|
TriggerTypeBits | Number of bits available to represent a trigger type. |
TriggerNumberBits | Number of bits available to represent a trigger number. |
PipelineAddressBits | Number of bits available to represent a pipeline address. |
CMC1Bits | Number of bits available to represent Common Mode Correction w/o masking out particle signals. |
CMC2Bits | Number of bits available to represent Common Mode Correction performed after masking particle signals. |
APVErrorBits | Number of bits available to represent an APV error code. |
FTBErrorBits | Number of bits available to represent a FTB error code. |
FTBFlagsBits | Number of bits available to represent a FTB Flags Field. |
EMUPipelineAddressBits | Number of bits available to represent an Emulated pipeline adress. |
APVErrorORBits | Number of bits available to represent an APV error OR code. |
FADCMatchBits | Number of bits available to represent an FADC match code. |
APVMatchBits | Number of bits available to represent an APV match code. |
UpsetAPVBits | Number of bits available to represent an upset APV code. |
BadMappingBits | Number of bits available to represent bad mapping. |
BadHeaderBits | Number of Bits available to represent bad header. |
BadTrailerBits | Number of Bits available to represent bad trailer code. |
MissedHeaderBits | Number of Bits available to represent missed header. |
MissedTrailerBits | Number of Bits available to represent missed trailer. |
Bits | Total bit size of the SVDDAQDiagnostic. |
Definition at line 25 of file SVDDAQDiagnostic.h.
|
inline |
Constructor.
triggerNumber | as in the FADC header |
triggerType | as in the FADC header |
pipelineAddress | as in the APV header |
cmc1 | Common Mode Correction w/o masking out particle signals |
cmc2 | Common Mode Correction performed after masking particle signals |
apvError | Error code as in the APV header |
ftbError | Errors field as in the FTB header |
fadcMatch | true if FADC number matches |
apvMatch | true if APV number matches |
badHeader | |
missedHeader | |
missedTrailer | |
fadcNo | FADC number |
apvNo | apv number |
Definition at line 85 of file SVDDAQDiagnostic.h.
|
inline |
Default constructor.
Definition at line 114 of file SVDDAQDiagnostic.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 |
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
inline |
Get the Common Mode Correction w/o masking out particle signals.
Definition at line 123 of file SVDDAQDiagnostic.h.
|
inline |
Get the Common Mode Correction performed after masking particle signals.
Definition at line 125 of file SVDDAQDiagnostic.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
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.
|
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 |
|
inline |
|
inline |
|
inline |
functions for setting values unpacked from FADC trailer
Definition at line 168 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values of
Definition at line 171 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values for
Definition at line 180 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values for
Definition at line 183 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values unpacked from FADC trailer
Definition at line 165 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values of
Definition at line 174 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values unpacked from FADC trailer
Definition at line 162 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values for
Definition at line 189 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values for
Definition at line 186 of file SVDDAQDiagnostic.h.
|
inline |
functions for setting values for
Definition at line 177 of file SVDDAQDiagnostic.h.
|
private |
APV error code.
Definition at line 203 of file SVDDAQDiagnostic.h.
|
private |
APV error code in FADC trailer.
Definition at line 211 of file SVDDAQDiagnostic.h.
|
private |
if # of APV headers match # of APVs for given FADC
Definition at line 215 of file SVDDAQDiagnostic.h.
|
private |
APV #.
Definition at line 232 of file SVDDAQDiagnostic.h.
|
private |
Bad fadc Header.
Definition at line 221 of file SVDDAQDiagnostic.h.
|
private |
Bad mapping.
Definition at line 219 of file SVDDAQDiagnostic.h.
|
private |
Bad fadc Trailer.
Definition at line 223 of file SVDDAQDiagnostic.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 |
CMC1.
Definition at line 199 of file SVDDAQDiagnostic.h.
|
private |
CMC2.
Definition at line 201 of file SVDDAQDiagnostic.h.
|
private |
emulated pipeline Address
Definition at line 209 of file SVDDAQDiagnostic.h.
|
private |
if # of FADC boards match # of RawData objects
Definition at line 213 of file SVDDAQDiagnostic.h.
|
private |
FADC #.
Definition at line 230 of file SVDDAQDiagnostic.h.
|
private |
FTB error code.
Definition at line 205 of file SVDDAQDiagnostic.h.
|
private |
FTB Flags Field.
Definition at line 207 of file SVDDAQDiagnostic.h.
|
private |
missed Header
Definition at line 225 of file SVDDAQDiagnostic.h.
|
private |
missed Trailer
Definition at line 227 of file SVDDAQDiagnostic.h.
|
private |
Pipeline address.
Definition at line 197 of file SVDDAQDiagnostic.h.
|
private |
Trigger number.
Definition at line 193 of file SVDDAQDiagnostic.h.
|
private |
Trigger type.
Definition at line 195 of file SVDDAQDiagnostic.h.
|
private |
Upset APV.
Definition at line 217 of file SVDDAQDiagnostic.h.