9#ifndef SVD_SIMPLECLUSTERCANDIDATE_H
10#define SVD_SIMPLECLUSTERCANDIDATE_H
12#include <vxd/dataobjects/VxdID.h>
13#include <svd/dataobjects/SVDShaperDigit.h>
52 const std::string& storeShaperDigitsName,
53 const std::string& storeRecoDigitsName);
std::array< APVFloatSampleType, c_nAPVSamples > APVFloatSamples
array of APVFloatSampleType objects
Class representing a cluster candidate during simple clustering of the SVD.
float getPositionError() const
return the error on the position of the cluster
const std::vector< stripInCluster > getStripsInCluster() const
returns the vector of the strips in the cluster
int getFirstFrame()
return the first frame always 0 if 6-Sample CoG
std::string m_storeRecoDigitsName
Name of the collection to use for the SVDRecoDigits.
float m_position
Position of the cluster.
float m_6SampleTimeError
Error on Time of the cluster computed with the 6-sample CoG (not implemented yet)
float getChargeError() const
return the error of the charge of the cluster
float getTime() const
return the time of the cluster depending on the m_timeAlgorithm
float get3SampleELSRawTime() const
return the raw time of the cluster for the 3-sample ELS
bool m_stopCreationCluster
cluster is not good if something goes wrong
std::string m_storeShaperDigitsName
Name of the collection to use for the SVDShaperDigits.
float getSNR() const
return the signal over noise ratio of the cluster
float getPosition() const
return the position of the cluster
double m_cutCluster
SNR above which the cluster is ok.
std::vector< stripInCluster > m_strips
first frame selected with the max-sum algorithm
float get6SampleCoGTime() const
return the time of the cluster for the 6-sample CoG
Belle2::SVDShaperDigit::APVFloatSamples getClsSamples() const
returns the APVFloatSamples obtained summing sample-by-sample all the strips on the cluster
float m_SNR
SNR of the cluster.
bool add(VxdID vxdID, bool isUside, struct stripInCluster &aStrip)
Add a Strip to the current cluster.
float m_charge
Charge of the cluster.
void finalizeCluster()
compute the position, time and their error of the cluster
float m_6SampleTime
Time of the cluster computed with the 6-sample CoG.
bool isGoodCluster()
return true if the cluster candidate can be promoted to cluster
float get3SampleCoGTimeError() const
return the time of the cluster for the 3-sample CoG
bool m_isUside
side of the cluster
float m_positionError
Error on Position of the cluster.
VxdID m_vxdID
VxdID of the cluster.
float get3SampleCoGRawTime() const
return the raw time of the cluster for the 3-sample CoG
float getCharge() const
return the charge of the cluster
float m_seedSNR
SNR of the seed strip.
float get6SampleCoGTimeError() const
return the time of the cluster for the 6-sample CoG
std::pair< int, std::vector< float > > getMaxSum3Samples() const
returns the float vector of clustered 3-samples selected by the MaxSum method with First Frame of the...
int m_sizeHeadTail
number of strips after which we switch from COG to HeadTail estimation of the position
int m_timeAlgorithm
selects the algorithm to compute the cluster tim 0 = 6-sample CoG (default) 1 = 3-sample CoG 2 = 3-sa...
bool isUSide()
return true if the cluster is on the U/P side
float m_chargeError
Error on Charge of the cluster.
VxdID getSensorID()
return the VxdID of the cluster sensor
double m_cutSeed
SNR above which the strip can be considered as seed.
float get3SampleELSTimeError() const
return the time of the cluster for the 3-sample ELS
float getSeedCharge() const
return the seed charge of the cluster
float m_seedCharge
Seed Charge of the cluster.
float getTimeError() const
return the error on the time of the cluster depending on the m_timeAlgorithm, implemented only for th...
int m_seedIndex
SVDRecoDigit index of the seed strip of the cluster.
double m_cutAdjacent
SNR above which the strip can be considered for clustering.
int size() const
return the cluster size (number of strips of the cluster
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.
structure containing the relevant informations of eachstrip of the cluster
float timeError
6-sample CoG strip time error
int recoDigitIndex
index of the reco digit
float time
6-sample CoG strip time