Belle II Software development
|
Stores SVDModeByte object with Trigger time, DAQ mode, Run type & Event type! Also - the information of any inconsistencies of these variables within one event are stored. More...
#include <SVDEventInfo.h>
Public Member Functions | |
SVDEventInfo (SVDModeByte mode=SVDModeByte(), SVDTriggerType type=SVDTriggerType()) | |
Constructor. | |
~SVDEventInfo () | |
Destructor. | |
void | setMatchTriggerType (bool triggermatch) |
Match TriggerType setter Sets the flag telling us if the SVDTriggerType object is the same for each FADCs in the event. | |
void | setMatchModeByte (bool modematch) |
Match ModeByte setter Sets the flag telling us if the SVDModeByte object is the same for each FADCs in the event. | |
void | setModeByte (SVDModeByte mode) |
SVDModeByte setter Sets the SVDModeByte data in the EventInfo object. | |
void | setTriggerType (SVDTriggerType type) |
SVDTriggerType setter Sets the type of SVDTrigger in the EventInfo object. | |
void | setCrossTalk (bool xtalk) |
x-Talk setter Sets the x-talk info 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 15 (shift is 0*7.9 .... | |
void | setNSamples (int nAPVsamples) |
nAPVsamples setter Sets the number of acquired samples (3 or 6) found in the raw data | |
bool | getMatchTriggerType () |
Match TriggerType getter Gets the flag telling us if the SVDTriggerType object is the same for each FADCs in the event. | |
bool | getMatchModeByte () |
MatchModeByte getter Gets the flag telling us if the SVDModeByte object is the same for each FADCs in the event. | |
SVDModeByte | getModeByte () const |
SVDModeByte getter Gets the SVDModeByte info for the event. | |
float | getSVD2FTSWTimeShift (int firstFrame) const |
returns the time shift between SVD reference (t = 0 at the FF) and the FTSW (Trigger) reference | |
int | getNSamples () const |
returns the number of samples: 6, 3 or 1 | |
float | getSamplingDelayInNs () const |
getSamplingDelayInNs() returns the delay of the sampling with respect to the sampling of the 6-sample DAQ mode For 6-sample event it returns 0, for 3-sample events computes the delay using the relativeShift information | |
int | getRelativeShift () const |
getRelativeShift returns the relative shift in data taken in 3/6 samples A number between 0 and 15 as written in the xml file | |
double | getTimeInFTSWReference (double time_in_SVD, int firstFrame) const |
getTimeInFTSWReference it takes the cluster time in SVD reference (t = 0 at FF, in either 3- or 6-sample DAQ mode) and the firstFrame and provides the time in the FTWS reference. | |
bool | setAPVClock (DBObjPtr< HardwareClockSettings > hwClock) |
sets the APV clock period. | |
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 reference (t = 0 at FF) for that event. | |
SVDTriggerType | getTriggerType () const |
SVDTriggerType getter Gets the type of SVDTrigger for the event. | |
bool | isCrossTalkEvent () |
X-talk info getter Gets the X-talk info for the event. | |
std::string | toString () const |
Display main parameters in this object. | |
Private Member Functions | |
ClassDef (SVDEventInfo, 3) | |
class def needed by root | |
Private Attributes | |
SVDModeByte::baseType | m_modeByte = SVDModeByte::c_DefaultID |
SVDModeByte object (runType + eventType + DAQmode + TriggerBin) | |
SVDTriggerType::baseType | m_triggerType |
information on the Trigger type | |
bool | m_ModeByteMatch |
flag telling if the SVDModeByte object is the same for each FADCs in the event | |
bool | m_TriggerTypeMatch |
flag telling if the SVDTriggerType object is the same for each FADCs in the event | |
bool | m_Xtalk = false |
information on the x-talk | |
int | m_relativeTimeShift = 0 |
relative shift in units of APV-clock/4 between 3- and 6-sample acquired events | |
int | m_nAPVsamples = 0 |
number of acquired samples | |
double | m_apvClockPeriod = 16000. / 509. |
APV clock period. | |
Stores SVDModeByte object with Trigger time, DAQ mode, Run type & Event type! Also - the information of any inconsistencies of these variables within one event are stored.
For data this object will be filled by the SVDUnpacker once per event
For simulation there is the SVDEventInfoSetter module to set the parameters
Definition at line 31 of file SVDEventInfo.h.
|
inlineexplicit |
Constructor.
Definition at line 35 of file SVDEventInfo.h.
|
inline |
|
inline |
MatchModeByte getter Gets the flag telling us if the SVDModeByte object is the same for each FADCs in the event.
Definition at line 88 of file SVDEventInfo.h.
|
inline |
Match TriggerType getter Gets the flag telling us if the SVDTriggerType object is the same for each FADCs in the event.
Definition at line 83 of file SVDEventInfo.h.
|
inline |
SVDModeByte getter Gets the SVDModeByte info for the event.
Definition at line 93 of file SVDEventInfo.h.
|
inline |
returns the number of samples: 6, 3 or 1
Definition at line 105 of file SVDEventInfo.h.
|
inline |
getRelativeShift returns the relative shift in data taken in 3/6 samples A number between 0 and 15 as written in the xml file
Definition at line 130 of file SVDEventInfo.h.
|
inline |
getSamplingDelayInNs() returns the delay of the sampling with respect to the sampling of the 6-sample DAQ mode For 6-sample event it returns 0, for 3-sample events computes the delay using the relativeShift information
Definition at line 114 of file SVDEventInfo.h.
|
inline |
returns the time shift between SVD reference (t = 0 at the FF) and the FTSW (Trigger) reference
Definition at line 99 of file SVDEventInfo.h.
|
inline |
getTimeInFTSWReference it takes the cluster time in SVD reference (t = 0 at FF, in either 3- or 6-sample DAQ mode) and the firstFrame and provides the time in the FTWS reference.
DO NOT USE WITH EventT0! In the SVD reference t=0 is the time of the first sample, regardless if the event is acquired in 3- or 6-sample DAQ mode
Definition at line 141 of file SVDEventInfo.h.
|
inline |
getTimeInSVDReference it takes the cluster time in FTSW reference and provides the time in the SVD reference (t = 0 at FF) for that event.
If used with EventT0, it returns EventT0 synchronized to the SVD reference. In the SVD reference t=0 is the time of the first sample, regardless if the event is acquired in 3- or 6-sample DAQ mode
Definition at line 167 of file SVDEventInfo.h.
|
inline |
SVDTriggerType getter Gets the type of SVDTrigger for the event.
Definition at line 175 of file SVDEventInfo.h.
|
inline |
X-talk info getter Gets the X-talk info for the event.
Definition at line 181 of file SVDEventInfo.h.
|
inline |
sets the APV clock period.
This operation can be done only in an event(). return false if the HardwareClockSettings DBObject is not valid, in this case the APV clock period is set to be 16000. / 509.; returns true when the operation is successfull.
Definition at line 151 of file SVDEventInfo.h.
|
inline |
x-Talk setter Sets the x-talk info in the EventInfo object
Definition at line 67 of file SVDEventInfo.h.
|
inline |
Match ModeByte setter Sets the flag telling us if the SVDModeByte object is the same for each FADCs in the event.
Definition at line 52 of file SVDEventInfo.h.
|
inline |
Match TriggerType setter Sets the flag telling us if the SVDTriggerType object is the same for each FADCs in the event.
Definition at line 47 of file SVDEventInfo.h.
|
inline |
SVDModeByte setter Sets the SVDModeByte data in the EventInfo object.
Definition at line 57 of file SVDEventInfo.h.
|
inline |
nAPVsamples setter Sets the number of acquired samples (3 or 6) found in the raw data
Definition at line 78 of file SVDEventInfo.h.
|
inline |
relative 3/6 shift Sets the relative shift in latency in data taken in 3/6 samples int between 0 and 15 (shift is 0*7.9 ....
15*7.9 in ns)
Definition at line 73 of file SVDEventInfo.h.
|
inline |
SVDTriggerType setter Sets the type of SVDTrigger in the EventInfo object.
Definition at line 62 of file SVDEventInfo.h.
|
inline |
Display main parameters in this object.
Definition at line 185 of file SVDEventInfo.h.
|
private |
APV clock period.
Definition at line 222 of file SVDEventInfo.h.
|
private |
SVDModeByte object (runType + eventType + DAQmode + TriggerBin)
Definition at line 213 of file SVDEventInfo.h.
|
private |
flag telling if the SVDModeByte object is the same for each FADCs in the event
Definition at line 215 of file SVDEventInfo.h.
|
private |
number of acquired samples
Definition at line 219 of file SVDEventInfo.h.
|
private |
relative shift in units of APV-clock/4 between 3- and 6-sample acquired events
Definition at line 218 of file SVDEventInfo.h.
|
private |
information on the Trigger type
Definition at line 214 of file SVDEventInfo.h.
|
private |
flag telling if the SVDTriggerType object is the same for each FADCs in the event
Definition at line 216 of file SVDEventInfo.h.
|
private |
information on the x-talk
Definition at line 217 of file SVDEventInfo.h.