Belle II Software development
SVDDAQDiagnostic Class Reference

Class to store SVD DAQ diagnostic information. More...

#include <SVDDAQDiagnostic.h>

Inheritance diagram for SVDDAQDiagnostic:
RelationsInterface< BASE >

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::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

Class to store SVD DAQ diagnostic information.

Definition at line 23 of file SVDDAQDiagnostic.h.

Member Enumeration Documentation

◆ anonymous enum

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.

25 {
33 CMC1Bits = 8,
35 CMC2Bits = 4,
37 APVErrorBits = 4,
39 FTBErrorBits = 8,
41 FTBFlagsBits = 5,
47 FADCMatchBits = 1,
49 APVMatchBits = 1,
51 UpsetAPVBits = 1,
55 BadHeaderBits = 1,
62
63
66 };
@ UpsetAPVBits
Number of bits available to represent an upset APV code.
@ FADCMatchBits
Number of bits available to represent an FADC match code.
@ APVErrorBits
Number of bits available to represent an APV error code.
@ EMUPipelineAddressBits
Number of bits available to represent an Emulated pipeline adress.
@ PipelineAddressBits
Number of bits available to represent a pipeline address.
@ MissedHeaderBits
Number of Bits available to represent missed header.
@ APVErrorORBits
Number of bits available to represent an APV error OR code.
@ MissedTrailerBits
Number of Bits available to represent missed trailer.
@ FTBErrorBits
Number of bits available to represent a FTB error code.
@ BadHeaderBits
Number of Bits available to represent bad header.
@ CMC2Bits
Number of bits available to represent Common Mode Correction performed after masking particle signals...
@ Bits
Total bit size of the SVDDAQDiagnostic.
@ BadTrailerBits
Number of Bits available to represent bad trailer code.
@ APVMatchBits
Number of bits available to represent an APV match code.
@ FTBFlagsBits
Number of bits available to represent a FTB Flags Field.
@ CMC1Bits
Number of bits available to represent Common Mode Correction w/o masking out particle signals.
@ BadMappingBits
Number of bits available to represent bad mapping.
@ TriggerNumberBits
Number of bits available to represent a trigger number.
@ TriggerTypeBits
Number of bits available to represent a trigger type.

Constructor & Destructor Documentation

◆ SVDDAQDiagnostic() [1/2]

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

Constructor.

Parameters
triggerNumberas in the FADC header
triggerTypeas in the FADC header
pipelineAddressas in the APV header
cmc1Common Mode Correction w/o masking out particle signals
cmc2Common Mode Correction performed after masking particle signals
apvErrorError code as in the APV header
ftbErrorErrors field as in the FTB header
fadcMatchtrue if FADC number matches
apvMatchtrue if APV number matches
badHeader
missedHeader
missedTrailer
fadcNoFADC number
apvNoapv number

Definition at line 85 of file SVDDAQDiagnostic.h.

89 {
90 m_triggerNumber = triggerNumber;
91 m_triggerType = triggerType;
92 m_pipelineAddress = pipelineAddress;
93 m_cmc1 = cmc1;
94 m_cmc2 = cmc2;
95 m_apvError = apvError;
96 m_ftbError = ftbError;
97 m_fadcMatch = fadcMatch;
98 m_apvMatch = apvMatch;
99 m_badHeader = badHeader;
100 m_missedHeader = missedHeader;
101 m_missedTrailer = missedTrailer;
102
103 m_ftbFlags = 0;
105 m_apvErrorOR = 0;
106 m_fadcNo = fadcNo;
107 m_apvNo = apvNo;
108 m_upsetApv = 0;
109 m_badMapping = 0;
110 m_badTrailer = 0;
111 }
uint8_t m_apvError
APV error code.
uint8_t m_apvErrorOR
APV error code in FADC trailer.
bool m_badTrailer
Bad fadc Trailer.
uint8_t m_triggerNumber
Trigger number.
uint8_t m_ftbError
FTB error code.
bool m_missedHeader
missed Header
uint8_t m_pipelineAddress
Pipeline address.
uint8_t m_emuPipelineAddress
emulated pipeline Address
uint8_t m_triggerType
Trigger type.
bool m_badHeader
Bad fadc Header.
bool m_missedTrailer
missed Trailer
bool m_badMapping
Bad mapping.
bool m_fadcMatch
if # of FADC boards match # of RawData objects
uint16_t m_ftbFlags
FTB Flags Field.
bool m_apvMatch
if # of APV headers match # of APVs for given FADC

◆ SVDDAQDiagnostic() [2/2]

SVDDAQDiagnostic ( )
inline

Default constructor.

Definition at line 114 of file SVDDAQDiagnostic.h.

114: SVDDAQDiagnostic(0, 0, 0, 0, 0, 0, 0, 0, 0, false, 0, 0) {}
SVDDAQDiagnostic()
Default constructor.

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

◆ getAPVError()

uint16_t getAPVError ( ) const
inline

Get the APV error code.

Definition at line 127 of file SVDDAQDiagnostic.h.

127{ return static_cast<uint16_t>(m_apvError); }

◆ getAPVErrorOR()

uint16_t getAPVErrorOR ( ) const
inline

Get the APV error OR code.

Definition at line 135 of file SVDDAQDiagnostic.h.

135{ return static_cast<uint16_t>(m_apvErrorOR); }

◆ getAPVMatch()

bool getAPVMatch ( ) const
inline

Get the APVmatch code.

Definition at line 137 of file SVDDAQDiagnostic.h.

137{return m_apvMatch; }

◆ getAPVNumber()

unsigned short getAPVNumber ( ) const
inline

Get APV number.

Definition at line 156 of file SVDDAQDiagnostic.h.

156{ return m_apvNo; }

◆ 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

◆ getBadHeader()

bool getBadHeader ( ) const
inline

Get the Bad Header code.

Definition at line 147 of file SVDDAQDiagnostic.h.

147{return m_badHeader; }

◆ getBadMapping()

bool getBadMapping ( ) const
inline

Get the Bad Mapping code.

Definition at line 143 of file SVDDAQDiagnostic.h.

143{return m_badMapping; }

◆ getBadTrailer()

bool getBadTrailer ( ) const
inline

Get the Bad Trailer code.

Definition at line 145 of file SVDDAQDiagnostic.h.

145{return m_badTrailer; }

◆ getCMC1()

uint16_t getCMC1 ( ) const
inline

Get the Common Mode Correction w/o masking out particle signals.

Definition at line 123 of file SVDDAQDiagnostic.h.

123{ return static_cast<uint16_t>(m_cmc1); }

◆ getCMC2()

uint16_t getCMC2 ( ) const
inline

Get the Common Mode Correction performed after masking particle signals.

Definition at line 125 of file SVDDAQDiagnostic.h.

125{ return static_cast<uint16_t>(m_cmc2); }

◆ getEmuPipelineAddress()

uint16_t getEmuPipelineAddress ( ) const
inline

Get the emulated pipeline address.

Definition at line 133 of file SVDDAQDiagnostic.h.

133{ return static_cast<uint16_t>(m_emuPipelineAddress); }

◆ getFADCMatch()

bool getFADCMatch ( ) const
inline

Get the FADCmatch code.

Definition at line 139 of file SVDDAQDiagnostic.h.

139{return m_fadcMatch; }

◆ getFADCNumber()

unsigned short getFADCNumber ( ) const
inline

Get FADC number.

Definition at line 154 of file SVDDAQDiagnostic.h.

154{ return m_fadcNo; }

◆ getFTBError()

uint16_t getFTBError ( ) const
inline

Get the FTB errors field.

Definition at line 129 of file SVDDAQDiagnostic.h.

129{ return static_cast<uint16_t>(m_ftbError); }

◆ getFTBFlags()

uint16_t getFTBFlags ( ) const
inline

Get the FTB Flags field.

Definition at line 131 of file SVDDAQDiagnostic.h.

131{ return m_ftbFlags; }

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

◆ getMissedHeader()

bool getMissedHeader ( ) const
inline

Get the missed Header.

Definition at line 149 of file SVDDAQDiagnostic.h.

149{return m_missedHeader; }

◆ getMissedTrailer()

bool getMissedTrailer ( ) const
inline

Get the missed Trailer.

Definition at line 151 of file SVDDAQDiagnostic.h.

151{return m_missedTrailer; }

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

◆ getPipelineAddress()

uint16_t getPipelineAddress ( ) const
inline

Get the pipeline address.

Definition at line 121 of file SVDDAQDiagnostic.h.

121{ return static_cast<uint16_t>(m_pipelineAddress); }

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

◆ getTriggerNumber()

uint16_t getTriggerNumber ( ) const
inline

Get the trigger number.

Definition at line 117 of file SVDDAQDiagnostic.h.

117{ return static_cast<uint16_t>(m_triggerNumber); }

◆ getTriggerType()

uint16_t getTriggerType ( ) const
inline

Get the trigger type.

Definition at line 119 of file SVDDAQDiagnostic.h.

119{ return static_cast<uint16_t>(m_triggerType); }

◆ getUpsetAPV()

bool getUpsetAPV ( ) const
inline

Get the UpsetAPV code.

Definition at line 141 of file SVDDAQDiagnostic.h.

141{return m_upsetApv; }

◆ setApvErrorOR()

void setApvErrorOR ( uint8_t  apvErrorOR)
inline

functions for setting values unpacked from FADC trailer

  • APV errors OR

Definition at line 168 of file SVDDAQDiagnostic.h.

168{ m_apvErrorOR = apvErrorOR; }

◆ setAPVMatch()

void setAPVMatch ( bool  APVMatch)
inline

functions for setting values of

  • APV match code

Definition at line 171 of file SVDDAQDiagnostic.h.

171{ m_apvMatch = APVMatch; }

◆ setBadMapping()

void setBadMapping ( bool  BadMapping)
inline

functions for setting values for

  • Bad Mapping

Definition at line 180 of file SVDDAQDiagnostic.h.

180{ m_badMapping = BadMapping; }

◆ setBadTrailer()

void setBadTrailer ( bool  BadTrailer)
inline

functions for setting values for

  • Bad FADC Trailer

Definition at line 183 of file SVDDAQDiagnostic.h.

183{ m_badTrailer = BadTrailer; }

◆ setEmuPipelineAddress()

void setEmuPipelineAddress ( uint8_t  emuPipelineAddress)
inline

functions for setting values unpacked from FADC trailer

  • emulated pipeline Address

Definition at line 165 of file SVDDAQDiagnostic.h.

165{ m_emuPipelineAddress = emuPipelineAddress; }

◆ setFADCMatch()

void setFADCMatch ( bool  FADCMatch)
inline

functions for setting values of

  • FADC match code

Definition at line 174 of file SVDDAQDiagnostic.h.

174{ m_fadcMatch = FADCMatch; }

◆ setFTBFlags()

void setFTBFlags ( uint16_t  ftbFlags)
inline

functions for setting values unpacked from FADC trailer

  • FTB Flags Field

Definition at line 162 of file SVDDAQDiagnostic.h.

162{ m_ftbFlags = ftbFlags; }

◆ setMissedHeader()

void setMissedHeader ( bool  MissedHeader)
inline

functions for setting values for

  • Missed Header

Definition at line 189 of file SVDDAQDiagnostic.h.

189{ m_missedHeader = MissedHeader; }

◆ setMissedTrailer()

void setMissedTrailer ( bool  MissedTrailer)
inline

functions for setting values for

  • Missed Trailer

Definition at line 186 of file SVDDAQDiagnostic.h.

186{ m_missedTrailer = MissedTrailer; }

◆ setUpsetAPV()

void setUpsetAPV ( bool  UpsetAPV)
inline

functions for setting values for

  • Upset APVs

Definition at line 177 of file SVDDAQDiagnostic.h.

177{ m_upsetApv = UpsetAPV; }

Member Data Documentation

◆ m_apvError

uint8_t m_apvError
private

APV error code.

Definition at line 203 of file SVDDAQDiagnostic.h.

◆ m_apvErrorOR

uint8_t m_apvErrorOR
private

APV error code in FADC trailer.

Definition at line 211 of file SVDDAQDiagnostic.h.

◆ m_apvMatch

bool m_apvMatch
private

if # of APV headers match # of APVs for given FADC

Definition at line 215 of file SVDDAQDiagnostic.h.

◆ m_apvNo

uint8_t m_apvNo
private

APV #.

Definition at line 232 of file SVDDAQDiagnostic.h.

◆ m_badHeader

bool m_badHeader
private

Bad fadc Header.

Definition at line 221 of file SVDDAQDiagnostic.h.

◆ m_badMapping

bool m_badMapping
private

Bad mapping.

Definition at line 219 of file SVDDAQDiagnostic.h.

◆ m_badTrailer

bool m_badTrailer
private

Bad fadc Trailer.

Definition at line 223 of file SVDDAQDiagnostic.h.

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

uint8_t m_cmc1
private

CMC1.

Definition at line 199 of file SVDDAQDiagnostic.h.

◆ m_cmc2

uint8_t m_cmc2
private

CMC2.

Definition at line 201 of file SVDDAQDiagnostic.h.

◆ m_emuPipelineAddress

uint8_t m_emuPipelineAddress
private

emulated pipeline Address

Definition at line 209 of file SVDDAQDiagnostic.h.

◆ m_fadcMatch

bool m_fadcMatch
private

if # of FADC boards match # of RawData objects

Definition at line 213 of file SVDDAQDiagnostic.h.

◆ m_fadcNo

uint8_t m_fadcNo
private

FADC #.

Definition at line 230 of file SVDDAQDiagnostic.h.

◆ m_ftbError

uint8_t m_ftbError
private

FTB error code.

Definition at line 205 of file SVDDAQDiagnostic.h.

◆ m_ftbFlags

uint16_t m_ftbFlags
private

FTB Flags Field.

Definition at line 207 of file SVDDAQDiagnostic.h.

◆ m_missedHeader

bool m_missedHeader
private

missed Header

Definition at line 225 of file SVDDAQDiagnostic.h.

◆ m_missedTrailer

bool m_missedTrailer
private

missed Trailer

Definition at line 227 of file SVDDAQDiagnostic.h.

◆ m_pipelineAddress

uint8_t m_pipelineAddress
private

Pipeline address.

Definition at line 197 of file SVDDAQDiagnostic.h.

◆ m_triggerNumber

uint8_t m_triggerNumber
private

Trigger number.

Definition at line 193 of file SVDDAQDiagnostic.h.

◆ m_triggerType

uint8_t m_triggerType
private

Trigger type.

Definition at line 195 of file SVDDAQDiagnostic.h.

◆ m_upsetApv

bool m_upsetApv
private

Upset APV.

Definition at line 217 of file SVDDAQDiagnostic.h.


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