![]() |
Belle II Software
release-06-02-00
|
Class to store results of TOPBunchFinder. More...
#include <TOPRecBunch.h>
Public Member Functions | |
TOPRecBunch () | |
Default constructor. | |
void | clearReconstructed () |
Clear reconstruction data members. | |
void | setReconstructed (int bunchNo, double time, double currentOffset, double currentOffsetError, double averageOffset, double averageOffsetError, bool fineSearch) |
Set reconstructed relative bunch number and time. More... | |
void | setNumTracks (int numTracks, int usedTracks, int nodEdx) |
Set number of tracks. More... | |
void | setRevo9Counter (unsigned short revo9Counter) |
Sets number of global clock tics since last revo9 flag. More... | |
void | addHistogram (const TH1F &histo) |
Add histogram. More... | |
void | setSimulated (int bunchNo, double time) |
Set simulated relative bunch number and time. More... | |
int | getBunchNo () const |
Returns reconstructed bunch number relative to L1 trigger signal at TOP note: depends on the "look back" setting. More... | |
int | getAbsoluteBunchNo (int offset) const |
Returns reconstructed absolute bunch number within the ring. More... | |
double | getTime () const |
Returns reconstructed bunch time relative to L1 trigger signal at TOP (time to be subtracted to correct time of digits) More... | |
double | getCurrentOffset () const |
Returns current offset to reconstructed bunch. More... | |
double | getCurrentOffsetError () const |
Returns uncertainly of current offset. More... | |
double | getAverageOffset () const |
Returns average offset to reconstructed bunch. More... | |
double | getAverageOffsetError () const |
Returns uncertainly of average offset. More... | |
int | getNumTracks () const |
Returns number of tracks in acceptance of TOP. More... | |
int | getUsedTracks () const |
Returns number of tracks used for bunch reconstruction. More... | |
int | getNodEdxTracks () const |
Returns number of used tracks without dEdx information. More... | |
const std::vector< TH1F > & | getHistograms () const |
Returns histograms. More... | |
bool | isReconstructed () const |
Check if reconstructed return values are valid. More... | |
bool | isFineSearch () const |
Check if fine search is done. More... | |
int | getMCBunchNo () const |
Returns simulated bunch number (= bunch used for the event start time) More... | |
double | getMCTime () const |
Returns simulated bunch time (= time used as event start time) More... | |
bool | isSimulated () const |
Check if simulated return values are valid. More... | |
unsigned short | getRevo9Counter () const |
Returns 127 MHz clock ticks since last revo9 marker. More... | |
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). More... | |
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). More... | |
void | copyRelations (const RelationsInterface< BASE > *sourceObj) |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). More... | |
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. More... | |
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. More... | |
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. More... | |
template<class TO > | |
TO * | getRelatedTo (const std::string &name="", const std::string &namedRelation="") const |
Get the object to which this object has a relation. More... | |
template<class FROM > | |
FROM * | getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the object from which this object has a relation. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
virtual std::string | getName () const |
Return a short name that describes this object, e.g. More... | |
virtual std::string | getInfoHTML () const |
Return a short summary of this object's contents in HTML format. More... | |
std::string | getInfo () const |
Return a short summary of this object's contents in raw text format. More... | |
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 (TOPRecBunch, 3) | |
ClassDef. | |
Private Attributes | |
int | m_recBunchNo = 0 |
reconstructed relative bunch number | |
float | m_recTime = 0 |
reconstructed relative bunch time | |
float | m_currentOffset = 0 |
current offset | |
float | m_averageOffset = 0 |
running average of offset | |
float | m_currentOffsetError = 0 |
uncertainty of current offset | |
float | m_averageOffsetError = 0 |
uncertainty of running average of offset | |
int | m_numTracks = 0 |
number of tracks in acceptance of TOP | |
int | m_usedTracks = 0 |
number of tracks used for bunch reconstruction | |
int | m_nodEdx = 0 |
number of used tracks with no dEdx information | |
bool | m_fineSearch = false |
if true, fine search was done | |
std::vector< TH1F > | m_histograms |
histograms, like chi2 vs t0 | |
bool | m_recValid = false |
status of rec | |
int | m_simBunchNo = 0 |
simulated relative bunch number | |
float | m_simTime = 0 |
simulated relative bunch time | |
bool | m_simValid = false |
status of sim | |
unsigned short | m_revo9Counter = 0 |
number of clock ticks since last revo9 flag | |
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 results of TOPBunchFinder.
Definition at line 25 of file TOPRecBunch.h.
|
inline |
Add histogram.
histo | one dimensional histogram |
Definition at line 101 of file TOPRecBunch.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 |
Returns reconstructed absolute bunch number within the ring.
offset | offset [RF clock ticks] (to be calibrated) |
Definition at line 130 of file TOPRecBunch.h.
|
inline |
Returns average offset to reconstructed bunch.
Definition at line 158 of file TOPRecBunch.h.
|
inline |
Returns uncertainly of average offset.
Definition at line 164 of file TOPRecBunch.h.
|
inline |
Returns reconstructed bunch number relative to L1 trigger signal at TOP note: depends on the "look back" setting.
Definition at line 123 of file TOPRecBunch.h.
|
inline |
Returns current offset to reconstructed bunch.
Definition at line 146 of file TOPRecBunch.h.
|
inline |
Returns uncertainly of current offset.
Definition at line 152 of file TOPRecBunch.h.
|
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 RecoTrack, TRGSummary, TrackFitResult, Track, SoftwareTriggerResult, PIDLikelihood, MCParticle, Cluster, and Particle.
Definition at line 362 of file RelationsObject.h.
|
inline |
Returns simulated bunch number (= bunch used for the event start time)
Definition at line 206 of file TOPRecBunch.h.
|
inline |
Returns simulated bunch time (= time used as event start time)
Definition at line 212 of file TOPRecBunch.h.
|
inlinevirtualinherited |
Return a short name that describes this object, e.g.
pi+ for an MCParticle.
Reimplemented in SpacePoint, MCParticle, and Particle.
Definition at line 344 of file RelationsObject.h.
|
inline |
Returns number of used tracks without dEdx information.
Definition at line 182 of file TOPRecBunch.h.
|
inline |
Returns number of tracks in acceptance of TOP.
Definition at line 170 of file TOPRecBunch.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 |
Returns 127 MHz clock ticks since last revo9 marker.
Definition at line 224 of file TOPRecBunch.h.
|
inline |
Returns reconstructed bunch time relative to L1 trigger signal at TOP (time to be subtracted to correct time of digits)
Definition at line 140 of file TOPRecBunch.h.
|
inline |
Returns number of tracks used for bunch reconstruction.
Definition at line 176 of file TOPRecBunch.h.
|
inline |
Check if fine search is done.
Definition at line 200 of file TOPRecBunch.h.
|
inline |
Check if reconstructed return values are valid.
Definition at line 194 of file TOPRecBunch.h.
|
inline |
Check if simulated return values are valid.
Definition at line 218 of file TOPRecBunch.h.
|
inline |
Set number of tracks.
numTracks | number of tracks in acceptance of TOP |
usedTracks | number of tracks used for bunch reconstruction |
nodEdx | number of used tracks without dEdx information |
Definition at line 84 of file TOPRecBunch.h.
|
inline |
Set reconstructed relative bunch number and time.
bunchNo | relative bunch number |
time | relative bunch time |
currentOffset | current offset |
currentOffsetError | uncertainty of current offset |
averageOffset | average offset |
averageOffsetError | uncertainty of average offset |
fineSearch | fine search flag |
Definition at line 63 of file TOPRecBunch.h.
|
inline |
Sets number of global clock tics since last revo9 flag.
revo9Counter | counter state |
Definition at line 95 of file TOPRecBunch.h.
|
inline |
Set simulated relative bunch number and time.
bunchNo | relative bunch number |
time | relative bunch time |
Definition at line 111 of file TOPRecBunch.h.