Belle II Software development
|
Class to store results of TOPBunchFinder. More...
#include <TOPRecBunch.h>
Public Types | |
enum | EBucketStatus { c_Unknown = -1 , c_Empty = 0 , c_Filled = 1 } |
Reconstructed bucket status. More... | |
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, Const::EDetector detector) |
Set reconstructed relative bunch number and time. | |
void | setNumTracks (int numTracks, int usedTracks, int nodEdx) |
Set number of tracks. | |
void | setRevo9Counter (unsigned short revo9Counter) |
Sets number of system clock tics since last revo9 marker. | |
void | setMinChi2 (double minChi2) |
Sets chi2 value at minimum. | |
void | addHistogram (const TH1F &histo) |
Add histogram. | |
void | setSimulated (int bunchNo, double time) |
Set simulated relative bunch number and time. | |
void | setBucketNumber (int bucketNumber) |
Sets reconstructed bucket number. | |
void | setBucketFillStatus (bool isFilled) |
Sets reconstructed bucket fill status. | |
int | getBunchNo () const |
Returns reconstructed bunch number relative to L1 trigger signal at TOP note: depends on the "look back" setting. | |
int | getBucketNumber (int offset, unsigned RFBucketsPerRevolution=5120) const |
Returns reconstructed bucket number within the ring. | |
int | getBucketNumber () const |
Returns reconstructed bucket number stored in private member. | |
EBucketStatus | getBucketFillStatus () const |
Returns bucket fill status. | |
double | getTime () const |
Returns reconstructed bunch time relative to L1 trigger signal at TOP (time to be subtracted to correct time of digits) | |
double | getCurrentOffset () const |
Returns current offset to reconstructed bunch. | |
double | getCurrentOffsetError () const |
Returns uncertainly of current offset. | |
double | getMinChi2 () const |
Returns chi2 value at minimum. | |
double | getAverageOffset () const |
Returns average offset to reconstructed bunch. | |
double | getAverageOffsetError () const |
Returns uncertainly of average offset. | |
int | getNumTracks () const |
Returns number of tracks in acceptance of TOP. | |
int | getUsedTracks () const |
Returns number of tracks used for bunch reconstruction. | |
int | getNodEdxTracks () const |
Returns number of used tracks without dEdx information. | |
const std::vector< TH1F > & | getHistograms () const |
Returns histograms. | |
bool | isReconstructed () const |
Check if reconstructed return values are valid. | |
bool | isFineSearch () const |
Check if fine search is done. | |
int | getMCBunchNo () const |
Returns simulated bunch number (= bunch used for the event start time) | |
double | getMCTime () const |
Returns simulated bunch time (= time used as event start time) | |
bool | isSimulated () const |
Check if simulated return values are valid. | |
unsigned short | getRevo9Counter () const |
Returns 127 MHz clock ticks since last revo9 marker. | |
Const::EDetector | getSeedingDetector () const |
Returns detector component which provided the time seed. | |
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. | |
Static Public Member Functions | |
static int | getBucketNumber (int recBunchNo, int revo9Count, int offset, int RFBucketsPerRevolution) |
Returns reconstructed bucket number within the ring. | |
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, 7) | |
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 = 0xFFFF |
number of system clocks since last revo9 marker | |
float | m_minChi2 = 0 |
chi2 value at minimum | |
Const::EDetector | m_detector = Const::invalidDetector |
component providing the time seed | |
int | m_bucketNumber = c_Unknown |
reconstructed bucket number | |
EBucketStatus | m_isBucketFilled = c_Unknown |
reconstructed bucket status | |
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 26 of file TOPRecBunch.h.
enum EBucketStatus |
Reconstructed bucket status.
Enumerator | |
---|---|
c_Unknown | not known |
c_Empty | bucket is empty |
c_Filled | bucket is filled |
Definition at line 32 of file TOPRecBunch.h.
|
inline |
|
inline |
Add histogram.
histo | one dimensional histogram |
Definition at line 122 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.
|
inline |
Clear reconstruction data members.
Definition at line 47 of file TOPRecBunch.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.
|
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 |
Returns average offset to reconstructed bunch.
Definition at line 225 of file TOPRecBunch.h.
|
inline |
Returns uncertainly of average offset.
Definition at line 231 of file TOPRecBunch.h.
|
inline |
|
inline |
Returns reconstructed bucket number stored in private member.
Definition at line 188 of file TOPRecBunch.h.
|
inline |
Returns reconstructed bucket number within the ring.
offset | calibrated offset [RF clock ticks] |
RFBucketsPerRevolution | number of RF buckets per beam revolution |
Definition at line 179 of file TOPRecBunch.h.
|
inlinestatic |
Returns reconstructed bucket number within the ring.
recBunchNo | reconstructed bunch number relative to L1 trigger |
revo9Count | number of system clock tics since last revo9 marker at L1 trigger |
offset | calibrated offset [RF clock ticks] |
RFBucketsPerRevolution | number of RF buckets per beam revolution |
Definition at line 166 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 156 of file TOPRecBunch.h.
|
inline |
Returns current offset to reconstructed bunch.
Definition at line 207 of file TOPRecBunch.h.
|
inline |
Returns uncertainly of current offset.
Definition at line 213 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 Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.
Definition at line 362 of file RelationsObject.h.
|
inline |
Returns simulated bunch number (= bunch used for the event start time)
Definition at line 273 of file TOPRecBunch.h.
|
inline |
Returns simulated bunch time (= time used as event start time)
Definition at line 279 of file TOPRecBunch.h.
|
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 |
Returns number of used tracks without dEdx information.
Definition at line 249 of file TOPRecBunch.h.
|
inline |
Returns number of tracks in acceptance of TOP.
Definition at line 237 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 291 of file TOPRecBunch.h.
|
inline |
Returns detector component which provided the time seed.
Definition at line 297 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 201 of file TOPRecBunch.h.
|
inline |
Returns number of tracks used for bunch reconstruction.
Definition at line 243 of file TOPRecBunch.h.
|
inline |
Check if fine search is done.
Definition at line 267 of file TOPRecBunch.h.
|
inline |
Check if reconstructed return values are valid.
Definition at line 261 of file TOPRecBunch.h.
|
inline |
Check if simulated return values are valid.
Definition at line 285 of file TOPRecBunch.h.
|
inline |
Sets reconstructed bucket fill status.
isFilled | fill status |
Definition at line 149 of file TOPRecBunch.h.
|
inline |
Sets reconstructed bucket number.
bucketNumber | bucket number |
Definition at line 143 of file TOPRecBunch.h.
|
inline |
Sets chi2 value at minimum.
minChi2 | value at minimum |
Definition at line 116 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 99 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 |
detector | a component providing the time seed |
Definition at line 77 of file TOPRecBunch.h.
|
inline |
Sets number of system clock tics since last revo9 marker.
revo9Counter | counter state when L1 trigger is issued |
Definition at line 110 of file TOPRecBunch.h.
|
inline |
Set simulated relative bunch number and time.
bunchNo | relative bunch number |
time | relative bunch time |
Definition at line 132 of file TOPRecBunch.h.
|
private |
running average of offset
Definition at line 304 of file TOPRecBunch.h.
|
private |
uncertainty of running average of offset
Definition at line 306 of file TOPRecBunch.h.
|
private |
reconstructed bucket number
Definition at line 322 of file TOPRecBunch.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 |
current offset
Definition at line 303 of file TOPRecBunch.h.
|
private |
uncertainty of current offset
Definition at line 305 of file TOPRecBunch.h.
|
private |
component providing the time seed
Definition at line 320 of file TOPRecBunch.h.
|
private |
if true, fine search was done
Definition at line 310 of file TOPRecBunch.h.
|
private |
histograms, like chi2 vs t0
Definition at line 311 of file TOPRecBunch.h.
|
private |
reconstructed bucket status
Definition at line 323 of file TOPRecBunch.h.
|
private |
chi2 value at minimum
Definition at line 319 of file TOPRecBunch.h.
|
private |
number of used tracks with no dEdx information
Definition at line 309 of file TOPRecBunch.h.
|
private |
number of tracks in acceptance of TOP
Definition at line 307 of file TOPRecBunch.h.
|
private |
reconstructed relative bunch number
Definition at line 301 of file TOPRecBunch.h.
|
private |
reconstructed relative bunch time
Definition at line 302 of file TOPRecBunch.h.
|
private |
status of rec
Definition at line 312 of file TOPRecBunch.h.
|
private |
number of system clocks since last revo9 marker
Definition at line 318 of file TOPRecBunch.h.
|
private |
simulated relative bunch number
Definition at line 314 of file TOPRecBunch.h.
|
private |
simulated relative bunch time
Definition at line 315 of file TOPRecBunch.h.
|
private |
status of sim
Definition at line 316 of file TOPRecBunch.h.
|
private |
number of tracks used for bunch reconstruction
Definition at line 308 of file TOPRecBunch.h.