Belle II Software
release-08-01-10
|
The DATCONSVDDigit class. More...
#include <DATCONSVDDigit.h>
Public Types | |
typedef uint8_t | APVRawSampleType |
Type of samples received from DAQ. | |
typedef std::array< APVRawSampleType, c_nAPVSamples > | APVRawSamples |
Type for array of samples received from DAQ. | |
typedef float | APVFloatSampleType |
Types of samples for processing. | |
typedef std::array< APVFloatSampleType, c_nAPVSamples > | APVFloatSamples |
Types for array of samples for processing. | |
Public Member Functions | |
DATCONSVDDigit (VxdID sensorID, bool isU, short cellID, APVFloatSampleType samples[c_nAPVSamples]) | |
Constructor using c-array of samples. More... | |
DATCONSVDDigit (VxdID sensorID, bool isU, short cellID, APVFloatSamples samples) | |
Constructor using a stl container of samples. More... | |
VxdID | getSensorID () const |
Getter for the sensor ID. | |
VxdID::baseType | getRawSensorID () const |
Getter for the raw sensor ID. | |
bool | isUStrip () const |
Getter for the strip direction (u or v) | |
short int | getCellID () const |
Getter for the strip ID. | |
APVFloatSamples | getFloatSamples () const |
Get float-array of 6 APV25 samples. More... | |
APVRawSamples | getRawSamples () const |
Get int-array of of 6 APV25 samples. | |
unsigned short | getTotalCharge () |
Getter for the total charge of the array in ADUs. | |
unsigned short | getMaxSampleCharge () const |
Getter for the charge of the biggest sample of the array in ADUs. | |
unsigned short | getMaxSampleIndex () |
Getter for the index of the biggest sample inside the cluster (0...6) | |
void | setSensorID (VxdID sensorid) |
Setter for the sensorID. | |
void | setUStrip (bool isU) |
Setter for the strip direction (u or v). | |
void | setCellID (short cellID) |
Setter for the stripID / cellID. | |
void | setAPVRawSamples (APVFloatSamples apvInputSamples) |
Setter for the raw samples array. | |
Static Public Member Functions | |
template<typename T > | |
static DATCONSVDDigit::APVRawSampleType | trimToSampleRange (T x) |
Convert a value to sample range. More... | |
Static Public Attributes | |
static const std::size_t | c_nAPVSamples = 6 |
Number of APV samples stored. | |
Private Attributes | |
VxdID::baseType | m_sensorID |
Compressed sensor identifier. | |
bool | m_isU |
True if U, false if V. | |
short | m_cellID |
Strip coordinate in pitch units. | |
APVRawSamples | m_samples |
6 APV signals from the strip. | |
unsigned short | m_totalCharge |
Total charge of this DATCONSVDDigit. | |
unsigned short | m_maxSampleIndex |
Index of charge of sample max. | |
The DATCONSVDDigit class.
This class is a simplified version of the SVDShaperDigit class. It is used for the DATCON simulation, as DATCON has less information of the SVD hits available compared to the usual SVDShaperDigits. The DATCONSVDDigit holds a set of 6 raw APV25 signal samples taken on a strip.
Definition at line 30 of file DATCONSVDDigit.h.
|
inline |
Constructor using c-array of samples.
sensorID | Sensor VXD ID. |
isU | True if u strip, false if v. |
cellID | Strip ID. |
samples | std::array of 6 APV raw samples. |
Definition at line 53 of file DATCONSVDDigit.h.
|
inline |
Constructor using a stl container of samples.
sensorID | Sensor VXD ID. |
isU | True if u strip, false if v. |
cellID | Strip ID. |
samples | std::array of 6 APV raw samples. |
Definition at line 66 of file DATCONSVDDigit.h.
|
inline |
|
inlinestatic |
Convert a value to sample range.
x | value to be converted |
Definition at line 148 of file DATCONSVDDigit.h.