 |
Belle II Software
release-05-01-25
|
15 #include <svd/dataobjects/SVDModeByte.h>
16 #include <svd/dataobjects/SVDTriggerType.h>
31 class SVDEventInfo :
public TObject {
35 explicit SVDEventInfo(SVDModeByte mode = SVDModeByte(), SVDTriggerType type = SVDTriggerType()):
100 {
return 4000. / 509 * (3 - SVDModeByte(
m_modeByte).getTriggerBin() + 4 * firstFrame); }
120 return floor(nTriggerClocks / 4) * 16000. / 509.;
182 std::ostringstream os;
184 os <<
" Full SVDModeByte: " << (
unsigned int)thisMode << std::endl;
185 os <<
" Triggerbin: " << (
unsigned int) thisMode.
getTriggerBin() << std::endl;
186 os <<
"RunType: " << (
unsigned int)thisMode.
getRunType() <<
", EventType: " << (
unsigned int) thisMode.
getEventType() <<
187 ", DAQMode: " << (
unsigned int) thisMode.
getDAQMode() << std::endl;
188 os <<
" ModeByte Match: " << thisModeMatch << std::endl;
189 os <<
" Trigger Type: " << (
unsigned int)thisType.
getType() << std::endl;
190 os <<
" TriggerType Match: " << thisTriggerMatch << std::endl;
191 os <<
" Cross Talk: " << (thisXtalk ?
"true" :
"false") << std::endl;
192 os <<
" Relative Shift 3/6: " << (
unsigned int)thisRelativeShift << std::endl;
193 os <<
" Number of APV samples: " << (
unsigned int)thisNsamples << std::endl;
Stores SVDModeByte object with Trigger time, DAQ mode, Run type & Event type! Also - the information ...
float getSamplingDelayInNs() const
getSamplingDelayInNs() returns the delay of the sampling with respect to the sampling of the 6-sample...
void setTriggerType(SVDTriggerType type)
SVDTriggerType setter Sets the type of SVDTrigger in the EventInfo object.
Class to store Trigger Type information.
static const baseType c_DefaultID
Default / non-informative id 10010111 = 151 Run type: zero-suppressed, 2 Event type: global run,...
void setModeByte(SVDModeByte mode)
SVDModeByte setter Sets the SVDModeByte data in the EventInfo object.
void setRelativeShift(int relativeShift)
relative 3/6 shift Sets the relative shift in latency in data taken in 3/6 samples int between 0 and ...
baseType getTriggerBin() const
Get the triggerBin id.
ClassDef(SVDEventInfo, 2)
class def needed by root
baseType getType() const
Get the unique type.
std::string toString() const
Display main parameters in this object.
int getID(const std::vector< double > &breaks, double t)
get id of the time point t
void setMatchModeByte(bool modematch)
Match ModeByte setter Sets the flag telling us if the SVDModeByte object is the same for each FADCs i...
~SVDEventInfo()
Destructor.
bool m_ModeByteMatch
flag telling if the SVDModeByte object is the same for each FADCs in the event
SVDTriggerType::baseType m_triggerType
information on the Trigger type
Class to store SVD mode information.
double getTimeInFTSWReference(double time_in_SVD, int firstFrame) const
getTimeInFTSWReference it takes the cluster time in SVD reference (in either 3- or 6-sample DAQ mode)...
int m_nAPVsamples
number of acquired samples
baseType getDAQMode() const
Get the daqMode id.
bool m_TriggerTypeMatch
flag telling if the SVDTriggerType object is the same for each FADCs in the event
int getNSamples() const
returns the number of samples: 6, 3 or 1
void setNSamples(int nAPVsamples)
nAPVsamples setter Sets the number of acquired samples (3 or 6) found in the raw data
bool getMatchModeByte()
MatchModeByte getter Gets the flag telling us if the SVDModeByte object is the same for each FADCs in...
Abstract base class for different kinds of events.
uint8_t baseType
The base integer type for SVDModeByte.
void setMatchTriggerType(bool triggermatch)
Match TriggerType setter Sets the flag telling us if the SVDTriggerType object is the same for each F...
bool m_Xtalk
information on the x-talk
SVDTriggerType getTriggerType() const
SVDTriggerType getter Gets the type of SVDTrigger for the event.
baseType getRunType() const
Get the runMode id.
SVDModeByte::baseType m_modeByte
SVDModeByte object (runType + eventType + DAQmode + TriggerBin)
int m_relativeTimeShift
relative shift in units of APV-clock/4 between 3- and 6-sample acquired events
float getSVD2FTSWTimeShift(int firstFrame) const
returns the time shift between SVD reference and FTSW (Trigger) reference: time in FTSW reference = t...
SVDEventInfo(SVDModeByte mode=SVDModeByte(), SVDTriggerType type=SVDTriggerType())
Constructor.
bool isCrossTalkEvent()
X-talk info getter Gets the X-talk info for the event.
double getTimeInSVDReference(double time_in_FTSW, int firstFrame) const
getTimeInSVDReference it takes the cluster time in FTSW reference and provides the time in the SVD re...
bool getMatchTriggerType()
Match TriggerType getter Gets the flag telling us if the SVDTriggerType object is the same for each F...
int getRelativeShift() const
getRelativeShift returns the relative shift in data taken in 3/6 samples A number between 0 and 15 as...
SVDModeByte getModeByte() const
SVDModeByte getter Gets the SVDModeByte info for the event.
void setCrossTalk(bool xtalk)
x-Talk setter Sets the x-talk info in the EventInfo object
uint8_t baseType
The base integer type for SVDTriggerType.
baseType getEventType() const
Get the eventMode id.