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