 |
Belle II Software
release-05-01-25
|
11 #ifndef SVD_RECODIGIT_H
12 #define SVD_RECODIGIT_H
14 #include <vxd/dataobjects/VxdID.h>
15 #include <svd/dataobjects/SVDModeByte.h>
16 #include <framework/datastore/RelationsObject.h>
77 float fittedAmplitudeError,
float fittedTime,
float fittedTimeError,
85 double inputNorm = std::accumulate(probabilities.begin(), probabilities.end(), 0.0);
86 if (inputNorm < 0.1) inputNorm = 1.0;
88 std::transform(probabilities.begin(), probabilities.end(),
90 [normCoef](
typename T::value_type x)->StoredProbType
91 { return static_cast<StoredProbType>(normCoef * x); }
97 0, true, 0, 0.0, 10.0, 0.0, 100.0, std::vector<double>( {1.0}), 100.0
156 double normCoef =
static_cast<double>(1.0 / storeNorm);
157 if (normCoef < 1.0e-15) normCoef = 1.0;
159 std::back_inserter(outputPdf),
161 { return static_cast<OutputProbType>(normCoef * x); }
181 SVDModeByte thisMode(
m_mode);
183 std::ostringstream os;
184 os <<
"VXDID : " <<
m_sensorID <<
" = " << std::string(thisSensorID) <<
" strip: "
188 <<
" probabilities: ";
190 std::ostream_iterator<StoredProbType>(os,
" "));
191 os <<
"Chi2/ndf: " <<
m_fitChi2Ndf <<
" " << thisMode << std::endl;
216 #endif // SVD_RECODIGIT_H
OutputProbArray getProbabilities() const
Get signal time pdf.
float m_fittedAmplitude
Fitted amplitude of the signal ("charge")
short m_cellID
Strip coordinate in pitch units.
Class to uniquely identify a any structure of the PXD and SVD.
float getChi2Ndf() const
Get waveform fit chi2/ndf.
uint16_t StoredProbType
Types for internal storage of probability array.
float getTime() const
Get time estimate @returm fitted signal arrival time.
static const uint16_t storedProbArrayNorm
some constant
bool isUStrip() const
Get strip direction.
int getID(const std::vector< double > &breaks, double t)
get id of the time point t
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
VxdID::baseType m_sensorID
Compressed sensor identifier.
Class to store SVD mode information.
float m_fitChi2Ndf
Standardized chi2 of the fit.
SVDRecoDigit()
Default constructor for the ROOT IO.
VxdID::baseType getRawSensorID() const
Get raw sensor ID.
std::string toString() const
Display main parameters in this object.
double OutputProbType
Type for output probability array.
float m_fittedAmplitudeError
Error estimate of amplitude fit.
unsigned short baseType
The base integer type for VxdID.
Abstract base class for different kinds of events.
uint8_t baseType
The base integer type for SVDModeByte.
float getAmplitude() const
Get amplitude estimate.
VxdID getSensorID() const
Get the sensor ID.
short int getCellID() const
Get strip ID.
float getTimeError() const
Get time error.
StoredProbArray m_probabilities
pdf of the time estimate.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
float m_fittedTimeError
Error estimate of time fit.
SVDModeByte getModeByte() const
Get the SVDMOdeByte object containing information on trigger FADCTime and DAQ mode.
SVDModeByte::baseType m_mode
Mode byte, trigger FADCTime + DAQ mode.
float getCharge() const
Get amplitude estimate, alternate getter name.
bool m_isU
True if U, false if V.
std::vector< StoredProbType > StoredProbArray
vector of StoreProbType objects
std::vector< OutputProbType > OutputProbArray
vector of OutProbType objects
float m_fittedTime
Fitted arrival time of the signal.
float getAmplitudeError() const
Get amplitude error.