Belle II Software development
|
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. | |
DATCONSVDDigit (VxdID sensorID, bool isU, short cellID, APVFloatSamples samples) | |
Constructor using a stl container of samples. | |
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. | |
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. | |
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.
typedef std::array<APVFloatSampleType, c_nAPVSamples> APVFloatSamples |
Types for array of samples for processing.
Definition at line 45 of file DATCONSVDDigit.h.
typedef float APVFloatSampleType |
Types of samples for processing.
Definition at line 43 of file DATCONSVDDigit.h.
typedef std::array<APVRawSampleType, c_nAPVSamples> APVRawSamples |
Type for array of samples received from DAQ.
Definition at line 40 of file DATCONSVDDigit.h.
typedef uint8_t APVRawSampleType |
Type of samples received from DAQ.
Definition at line 38 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 |
|
inline |
Get float-array of 6 APV25 samples.
Definition at line 86 of file DATCONSVDDigit.h.
|
inline |
Getter for the charge of the biggest sample of the array in ADUs.
Definition at line 115 of file DATCONSVDDigit.h.
|
inline |
Getter for the index of the biggest sample inside the cluster (0...6)
Definition at line 127 of file DATCONSVDDigit.h.
|
inline |
Get int-array of of 6 APV25 samples.
Definition at line 95 of file DATCONSVDDigit.h.
|
inline |
|
inline |
|
inline |
Getter for the total charge of the array in ADUs.
Definition at line 101 of file DATCONSVDDigit.h.
|
inline |
|
inline |
Setter for the raw samples array.
Definition at line 169 of file DATCONSVDDigit.h.
|
inline |
Setter for the stripID / cellID.
Definition at line 166 of file DATCONSVDDigit.h.
|
inline |
Setter for the sensorID.
Definition at line 160 of file DATCONSVDDigit.h.
|
inline |
Setter for the strip direction (u or v).
Definition at line 163 of file DATCONSVDDigit.h.
|
inlinestatic |
Convert a value to sample range.
x | value to be converted |
Definition at line 148 of file DATCONSVDDigit.h.
|
static |
Number of APV samples stored.
Definition at line 35 of file DATCONSVDDigit.h.
|
private |
Strip coordinate in pitch units.
Definition at line 180 of file DATCONSVDDigit.h.
|
private |
True if U, false if V.
Definition at line 179 of file DATCONSVDDigit.h.
|
private |
Index of charge of sample max.
Definition at line 183 of file DATCONSVDDigit.h.
|
private |
6 APV signals from the strip.
Definition at line 181 of file DATCONSVDDigit.h.
|
private |
Compressed sensor identifier.
Definition at line 178 of file DATCONSVDDigit.h.
|
private |
Total charge of this DATCONSVDDigit.
Definition at line 182 of file DATCONSVDDigit.h.