 |
Belle II Software
release-05-02-19
|
13 #include <vxd/dataobjects/VxdID.h>
46 typedef std::array<APVRawSampleType, c_nAPVSamples>
APVRawSamples;
65 [
this](T x)->APVRawSampleType { return trimToSampleRange(x); }
79 std::transform(samples.begin(), samples.end(),
m_samples.begin(),
80 [](
typename T::value_type x)->APVRawSampleType
81 { return trimToSampleRange(x); }
111 return returnSamples;
137 unsigned short maxCharge = 0;
152 unsigned short maxCharge = 0;
170 T trimmedX = std::min(
171 static_cast<T
>(std::numeric_limits<DATCONSVDDigit::APVRawSampleType>::max()),
173 static_cast<T
>(std::numeric_limits<DATCONSVDDigit::APVRawSampleType>::lowest()),
192 std::transform(apvInputSamples.begin(), apvInputSamples.end(),
m_samples.begin(),
void setUStrip(bool isU)
Setter for the strip direction (u or v).
Class to uniquely identify a any structure of the PXD and SVD.
static DATCONSVDDigit::APVRawSampleType trimToSampleRange(T x)
Convert a value to sample range.
APVRawSamples getRawSamples() const
Get int-array of of 6 APV25 samples.
void setSensorID(VxdID sensorid)
Setter for the sensorID.
std::array< APVFloatSampleType, c_nAPVSamples > APVFloatSamples
Types for array of samples for processing.
std::array< APVRawSampleType, c_nAPVSamples > APVRawSamples
Type for array of samples received from DAQ.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
uint8_t APVRawSampleType
Type of samples received from DAQ.
bool m_isU
True if U, false if V.
void setCellID(short cellID)
Setter for the stripID / cellID.
The DATCONSVDDigit class.
unsigned short baseType
The base integer type for VxdID.
APVFloatSamples getFloatSamples() const
Get float-array of 6 APV25 samples.
VxdID::baseType getRawSensorID() const
Getter for the raw sensor ID.
unsigned short getMaxSampleCharge()
Getter for the charge of the biggest sample of the array in ADUs.
unsigned short m_maxSampleIndex
Index of charge of sample max.
Abstract base class for different kinds of events.
unsigned short getTotalCharge()
Getter for the total charge of the array in ADUs.
float APVFloatSampleType
Types of samples for processing.
DATCONSVDDigit()
Default constructor for the ROOT IO.
void setAPVRawSamples(APVFloatSamples apvInputSamples)
Setter for the raw samples array.
unsigned short m_totalCharge
Total charge of this DATCONSVDDigit.
APVRawSamples m_samples
6 APV signals from the strip.
short m_cellID
Strip coordinate in pitch units.
static const std::size_t c_nAPVSamples
Number of APV samples stored.
unsigned short getMaxSampleIndex()
Getter for the index of the biggest sample inside the cluster (0...6)
VxdID::baseType m_sensorID
Compressed sensor identifier.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
VxdID getSensorID() const
Getter for the sensor ID.
bool isUStrip() const
Getter for the strip direction (u or v)
unsigned short m_maxSampleCharge
Charge of sample max.
short int getCellID() const
Getter for the strip ID.