Belle II Software development
|
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation. More...
#include <CDCHit.h>
Public Types | |
enum | EAppendStatus { c_DontAppend = 0 , c_Append = 1 } |
Enum for return state of addBGDigit function. More... | |
Public Member Functions | |
CDCHit () | |
Empty constructor for ROOT IO. | |
CDCHit (unsigned short tdcCount, unsigned short adcCount, unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire, unsigned short status=0, unsigned short tot=0, signed short otherHitIndex=-1, unsigned short leadingEdgeADC=0) | |
Constructor to set all internal variables. | |
CDCHit (unsigned short tdcCount, unsigned short adcCount, const WireID &wireID, unsigned short status=0, unsigned short tot=0, signed short otherHitIndex=-1, unsigned short leadingEdgeADC=0) | |
Constructor using the WireID object. | |
void | setWireID (unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire) |
Setter for Wire ID. | |
void | setWireID (const WireID &wireID) |
Setter for Wire ID using the WireID object directly. | |
void | setStatus (unsigned short status) |
Setter for CDCHit status. | |
void | set2ndHitFlag () |
Setter for 2nd hit flag. | |
void | setAlreadyCheckedFlag () |
Setter for already-checked flag. | |
void | setTDCCount (short tdcCount) |
Setter for TDC count. | |
void | setADCCount (unsigned short adcCount) |
Setter for ADC count. | |
void | setOtherHitIndex (signed short index) |
Setter for the other hit index. | |
void | setOtherHitIndices (CDCHit *otherHit) |
Setter for the other hit indices. | |
void | setADCCountAtLeadingEdge (unsigned short adcCount) |
Setter for ADCcount at leading edge. | |
void | setTOT (unsigned short tot) |
Setter for TOT. | |
unsigned short | getIWire () const |
Getter for iWire. | |
unsigned short | getILayer () const |
Getter for iLayer. | |
unsigned short | getICLayer () const |
Getter for iCLayer (0-55). | |
unsigned short | getISuperLayer () const |
Getter for iSuperLayer. | |
unsigned short | getID () const |
Getter for encoded wire number. | |
unsigned short | getStatus () const |
Getter for CDCHit status. | |
bool | is2ndHit () const |
Getter for 2nd hit flag. | |
bool | isAlreadyChecked () const |
Getter for already-checked flag. | |
short | getTDCCount () const |
Getter for TDC count. | |
unsigned short | getADCCount () const |
Getter for integrated charge. | |
signed short | getOtherHitIndex () const |
Getter for otherHitIndex. | |
unsigned short | getADCCountAtLeadingEdge () const |
Getter for adcCountAtLeadingEdge. | |
unsigned short | getTOT () const |
Getter for TOT. | |
unsigned int | getUniqueChannelID () const override |
Implementation of the base class function. | |
DigitBase::EAppendStatus | addBGDigit (const DigitBase *bg) override |
Implementation of the base class function. | |
virtual void | adjustAppendedBGDigit () |
Virtual method for possible modification of BG digit which is just appended to simulation store array. | |
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). | |
Protected Attributes | |
unsigned short | m_eWire |
Wire encoding. | |
unsigned short | m_tdcCount |
TDC count in ns. | |
unsigned short | m_adcCount |
ADC count of the integrated charge in the cell. | |
unsigned short | m_status |
Status of CDCHit. | |
unsigned short | m_tot |
Time over threshod. | |
signed short | m_otherHitIndex |
Index to the other hit. | |
unsigned short | m_adcCountAtLeadingEdge |
ADC count at leading edge. | |
Private Member Functions | |
ClassDefOverride (CDCHit, 8) | |
ROOT Macro. | |
ClassDef (DigitBase, 2) | |
ClassDef. | |
Private Attributes | |
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 containing the result of the unpacker in raw data and the result of the digitizer in simulation.
This class is optimized for low disc usage.
For reconstruction purposes, use the corresponding CDCRecoHit class or create your own class.
It stores the TDC count (timing information of the hit),
the accumulated ADC count of the charge in the hit cell,
and the WireID.
Regarding the treatment of 2nd fastest hit timing recorded by the front end, if it exists,
the unpacker creates another individual CDCHit object for the 2nd hit in addition to the CDCHit for the 1st hit.
In both case, the hit timing is stored as the TDC count.
To identify if the CDCHit is 1st hit or 2nd hit, the first bit of member variable, m_status, is assigned.
If such bit is 0(1), The CDCHit belongs to the 1st (2nd) hit.
The method CDCHit::is2ndHit() has to be used for this purpose.
The relastion between the 1st hit object and the 2nd hit object is established with the variable, m_otherHitIndex.
Users can call the CDCHit::getOtherHitIndex() to obtain the index of CDCHit array for the other hit.
|
inherited |
Enum for return state of addBGDigit function.
Enumerator | |
---|---|
c_DontAppend | do not append BG digit to digits |
c_Append | append BG digit to digits |
Definition at line 32 of file DigitBase.h.
|
inline |
Empty constructor for ROOT IO.
Definition at line 43 of file CDCHit.h.
CDCHit | ( | unsigned short | tdcCount, |
unsigned short | adcCount, | ||
unsigned short | iSuperLayer, | ||
unsigned short | iLayer, | ||
unsigned short | iWire, | ||
unsigned short | status = 0 , |
||
unsigned short | tot = 0 , |
||
signed short | otherHitIndex = -1 , |
||
unsigned short | leadingEdgeADC = 0 |
||
) |
Constructor to set all internal variables.
Currently the setters are called for the actual assignment, for reducing the number of places where to encode the transformation into the internal encoding.
tdcCount | Timing measurement of the hit. |
adcCount | ADC count of the accumulated charge in the drift cell for this hit. |
iSuperLayer | Super Layer of the wire. |
iLayer | Layer number inside the Super Layer. |
iWire | Wire number in the Layer. |
status | Status of the hit. |
tot | Time over threshold. |
otherHitIndex | Index to the other hit. |
leadingEdgeADC | FADCcount at a sampling point near the leading edge. |
Definition at line 18 of file CDCHit.cc.
|
inline |
Constructor using the WireID object.
Definition at line 69 of file CDCHit.h.
|
overridevirtual |
Implementation of the base class function.
Overlay method.
bg | BG digit |
Implements DigitBase.
Definition at line 32 of file CDCHit.cc.
|
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.
|
inlinevirtualinherited |
Virtual method for possible modification of BG digit which is just appended to simulation store array.
Reimplemented in SVDShaperDigit.
Definition at line 62 of file DigitBase.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 |
Getter for integrated charge.
Note: This is the integrated charge over the cell. In principle, this charge can come from more than just the track, this hit belongs to.
|
inline |
Getter for adcCountAtLeadingEdge.
|
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 |
|
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 |
Getter for otherHitIndex.
|
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 |
|
inlineoverridevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Setter for ADC count.
|
inline |
Setter for ADCcount at leading edge.
|
inline |
|
inline |
Setter for the other hit index.
|
inline |
Setter for the other hit indices.
Definition at line 147 of file CDCHit.h.
|
inline |
|
inline |
Setter for TDC count.
tdcCount | Information for timing of the hit. |
|
inline |
|
inline |
|
inline |
Setter for Wire ID.
The numbering scheme is the same as in the one used in this document.
iSuperLayer | Values should be between [0, 8]. |
iLayer | Values should be between [0, 7], depending on the SuperLayer. |
iWire | Values should be between [0, 511], depending on the SuperLayer. |
Definition at line 90 of file CDCHit.h.
|
protected |
|
protected |
|
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.
|
protected |
|
protected |