11#include <framework/datastore/RelationsObject.h>
14#include <framework/gearbox/Const.h>
78 double currentOffset,
double currentOffsetError,
79 double averageOffset,
double averageOffsetError,
166 static int getBucketNumber(
int recBunchNo,
int revo9Count,
int offset,
int RFBucketsPerRevolution)
168 int bn = (recBunchNo + revo9Count * 4 - offset) % RFBucketsPerRevolution;
169 if (bn < 0) bn += RFBucketsPerRevolution;
EDetector
Enum for identifying the detector components (detector and subdetector).
Defines interface for accessing relations of objects in StoreArray.
Class to store results of TOPBunchFinder.
float m_recTime
reconstructed relative bunch time
int getBucketNumber() const
Returns reconstructed bucket number stored in private member.
Const::EDetector m_detector
component providing the time seed
int m_bucketNumber
reconstructed bucket number
void setRevo9Counter(unsigned short revo9Counter)
Sets number of system clock tics since last revo9 marker.
int getNumTracks() const
Returns number of tracks in acceptance of TOP.
double getCurrentOffset() const
Returns current offset to reconstructed bunch.
void setBucketFillStatus(bool isFilled)
Sets reconstructed bucket fill status.
float m_currentOffset
current offset
void addHistogram(const TH1F &histo)
Add histogram.
unsigned short getRevo9Counter() const
Returns 127 MHz clock ticks since last revo9 marker.
static int getBucketNumber(int recBunchNo, int revo9Count, int offset, int RFBucketsPerRevolution)
Returns reconstructed bucket number within the ring.
unsigned short m_revo9Counter
number of system clocks since last revo9 marker
bool m_recValid
status of rec
void setReconstructed(int bunchNo, double time, double currentOffset, double currentOffsetError, double averageOffset, double averageOffsetError, Const::EDetector detector)
Set reconstructed relative bunch number and time.
bool m_fineSearch
if true, fine search was done
int getNodEdxTracks() const
Returns number of used tracks without dEdx information.
EBucketStatus
Reconstructed bucket status.
@ c_Filled
bucket is filled
double getMCTime() const
Returns simulated bunch time (= time used as event start time)
float m_averageOffset
running average of offset
bool isReconstructed() const
Check if reconstructed return values are valid.
float m_minChi2
chi2 value at minimum
float m_simTime
simulated relative bunch time
double getMinChi2() const
Returns chi2 value at minimum.
int m_numTracks
number of tracks in acceptance of TOP
int getBunchNo() const
Returns reconstructed bunch number relative to L1 trigger signal at TOP note: depends on the "look ba...
int m_nodEdx
number of used tracks with no dEdx information
bool isSimulated() const
Check if simulated return values are valid.
void setNumTracks(int numTracks, int usedTracks, int nodEdx)
Set number of tracks.
double getAverageOffsetError() const
Returns uncertainly of average offset.
ClassDef(TOPRecBunch, 7)
ClassDef.
EBucketStatus m_isBucketFilled
reconstructed bucket status
void setBucketNumber(int bucketNumber)
Sets reconstructed bucket number.
int getMCBunchNo() const
Returns simulated bunch number (= bunch used for the event start time)
float m_currentOffsetError
uncertainty of current offset
int getBucketNumber(int offset, unsigned RFBucketsPerRevolution=5120) const
Returns reconstructed bucket number within the ring.
int m_simBunchNo
simulated relative bunch number
int m_recBunchNo
reconstructed relative bunch number
double getAverageOffset() const
Returns average offset to reconstructed bunch.
void clearReconstructed()
Clear reconstruction data members.
bool isFineSearch() const
Check if fine search is done.
void setSimulated(int bunchNo, double time)
Set simulated relative bunch number and time.
double getCurrentOffsetError() const
Returns uncertainly of current offset.
int getUsedTracks() const
Returns number of tracks used for bunch reconstruction.
EBucketStatus getBucketFillStatus() const
Returns bucket fill status.
std::vector< TH1F > m_histograms
histograms, like chi2 vs t0
Const::EDetector getSeedingDetector() const
Returns detector component which provided the time seed.
void setMinChi2(double minChi2)
Sets chi2 value at minimum.
const std::vector< TH1F > & getHistograms() const
Returns histograms.
bool m_simValid
status of sim
TOPRecBunch()
Default constructor.
double getTime() const
Returns reconstructed bunch time relative to L1 trigger signal at TOP (time to be subtracted to corre...
int m_usedTracks
number of tracks used for bunch reconstruction
float m_averageOffsetError
uncertainty of running average of offset
Abstract base class for different kinds of events.