![]() |
Belle II Software release-09-00-03
|
Class representing a cluster candidate during simple clustering of the SVD. More...
#include <SimpleClusterCandidate.h>

Public Member Functions | |
| SimpleClusterCandidate (VxdID vxdID, bool isUside, int sizeHeadTail, double cutSeed, double cutAdjacent, double cutSNR, int timeAlgorithm) | |
| Constructor to create an empty Cluster. | |
| SimpleClusterCandidate (VxdID vxdID, bool isUside, int sizeHeadTail, double cutSeed, double cutAdjacent, double cutSNR, int timeAlgorithm, const std::string &storeShaperDigitsName, const std::string &storeRecoDigitsName) | |
| You can specify the name of StoreArray<SVDShaperDigit> and StoreArray<SVDRecoDigit> | |
| bool | add (VxdID vxdID, bool isUside, struct stripInCluster &aStrip) |
| Add a Strip to the current cluster. | |
| void | finalizeCluster () |
| compute the position, time and their error of the cluster | |
| bool | isGoodCluster () |
| return true if the cluster candidate can be promoted to cluster | |
| VxdID | getSensorID () |
| return the VxdID of the cluster sensor | |
| bool | isUSide () |
| return true if the cluster is on the U/P side | |
| float | getCharge () const |
| return the charge of the cluster | |
| float | getChargeError () const |
| return the error of the charge of the cluster | |
| float | getSeedCharge () const |
| return the seed charge of the cluster | |
| float | getTime () const |
| return the time of the cluster depending on the m_timeAlgorithm | |
| float | get6SampleCoGTime () const |
| return the time of the cluster for the 6-sample CoG | |
| float | get3SampleCoGRawTime () const |
| return the raw time of the cluster for the 3-sample CoG | |
| float | get3SampleELSRawTime () const |
| return the raw time of the cluster for the 3-sample ELS | |
| float | getTimeError () const |
| return the error on the time of the cluster depending on the m_timeAlgorithm, implemented only for the 6-Sample CoG | |
| float | get6SampleCoGTimeError () const |
| return the time of the cluster for the 6-sample CoG | |
| float | get3SampleCoGTimeError () const |
| return the time of the cluster for the 3-sample CoG | |
| float | get3SampleELSTimeError () const |
| return the time of the cluster for the 3-sample ELS | |
| Belle2::SVDShaperDigit::APVFloatSamples | getClsSamples () const |
| returns the APVFloatSamples obtained summing sample-by-sample all the strips on the cluster | |
| 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 selection | |
| int | getFirstFrame () |
| return the first frame always 0 if 6-Sample CoG | |
| float | getPosition () const |
| return the position of the cluster | |
| float | getPositionError () const |
| return the error on the position of the cluster | |
| float | getSNR () const |
| return the signal over noise ratio of the cluster | |
| int | size () const |
| return the cluster size (number of strips of the cluster | |
| const std::vector< stripInCluster > | getStripsInCluster () const |
| returns the vector of the strips in the cluster | |
Protected Attributes | |
| bool | m_stopCreationCluster = false |
| cluster is not good if something goes wrong | |
| VxdID | m_vxdID |
| VxdID of the cluster. | |
| bool | m_isUside |
| side of the cluster | |
| int | m_sizeHeadTail |
| number of strips after which we switch from COG to HeadTail estimation of the position | |
| double | m_cutSeed |
| SNR above which the strip can be considered as seed. | |
| double | m_cutAdjacent |
| SNR above which the strip can be considered for clustering. | |
| double | m_cutCluster |
| SNR above which the cluster is ok. | |
| int | m_timeAlgorithm = 0 |
| selects the algorithm to compute the cluster tim 0 = 6-sample CoG (default) 1 = 3-sample CoG 2 = 3-sample ELS | |
| float | m_charge |
| Charge of the cluster. | |
| float | m_chargeError |
| Error on Charge of the cluster. | |
| float | m_seedCharge |
| Seed Charge of the cluster. | |
| float | m_6SampleTime |
| Time of the cluster computed with the 6-sample CoG. | |
| float | m_6SampleTimeError |
| Error on Time of the cluster computed with the 6-sample CoG (not implemented yet) | |
| float | m_position |
| Position of the cluster. | |
| float | m_positionError |
| Error on Position of the cluster. | |
| float | m_SNR |
| SNR of the cluster. | |
| float | m_seedSNR |
| SNR of the seed strip. | |
| int | m_seedIndex |
| SVDRecoDigit index of the seed strip of the cluster. | |
| std::vector< stripInCluster > | m_strips |
| first frame selected with the max-sum algorithm | |
| std::string | m_storeShaperDigitsName |
| Name of the collection to use for the SVDShaperDigits. | |
| std::string | m_storeRecoDigitsName |
| Name of the collection to use for the SVDRecoDigits. | |
Class representing a cluster candidate during simple clustering of the SVD.
Definition at line 40 of file SimpleClusterCandidate.h.
| SimpleClusterCandidate | ( | VxdID | vxdID, |
| bool | isUside, | ||
| int | sizeHeadTail, | ||
| double | cutSeed, | ||
| double | cutAdjacent, | ||
| double | cutSNR, | ||
| int | timeAlgorithm | ||
| ) |
Constructor to create an empty Cluster.
Definition at line 30 of file SimpleClusterCandidate.cc.
| SimpleClusterCandidate | ( | VxdID | vxdID, |
| bool | isUside, | ||
| int | sizeHeadTail, | ||
| double | cutSeed, | ||
| double | cutAdjacent, | ||
| double | cutSNR, | ||
| int | timeAlgorithm, | ||
| const std::string & | storeShaperDigitsName, | ||
| const std::string & | storeRecoDigitsName | ||
| ) |
You can specify the name of StoreArray<SVDShaperDigit> and StoreArray<SVDRecoDigit>
which are needed to get clustered samples.
Definition at line 54 of file SimpleClusterCandidate.cc.
| bool add | ( | VxdID | vxdID, |
| bool | isUside, | ||
| struct stripInCluster & | aStrip | ||
| ) |
Add a Strip to the current cluster.
Update the cluster seed seed.
| vxdID | sensorID |
| isUside | is u |
| aStrip | to add to the cluster |
Definition at line 78 of file SimpleClusterCandidate.cc.
| void finalizeCluster | ( | ) |
compute the position, time and their error of the cluster
Definition at line 110 of file SimpleClusterCandidate.cc.
| float get3SampleCoGRawTime | ( | ) | const |
return the raw time of the cluster for the 3-sample CoG
Definition at line 258 of file SimpleClusterCandidate.cc.
| float get3SampleCoGTimeError | ( | ) | const |
return the time of the cluster for the 3-sample CoG
Definition at line 297 of file SimpleClusterCandidate.cc.
| float get3SampleELSRawTime | ( | ) | const |
return the raw time of the cluster for the 3-sample ELS
Definition at line 278 of file SimpleClusterCandidate.cc.
| float get3SampleELSTimeError | ( | ) | const |
return the time of the cluster for the 3-sample ELS
Definition at line 304 of file SimpleClusterCandidate.cc.
|
inline |
return the time of the cluster for the 6-sample CoG
Definition at line 107 of file SimpleClusterCandidate.h.
|
inline |
return the time of the cluster for the 6-sample CoG
Definition at line 125 of file SimpleClusterCandidate.h.
|
inline |
|
inline |
return the error of the charge of the cluster
Definition at line 93 of file SimpleClusterCandidate.h.
| Belle2::SVDShaperDigit::APVFloatSamples getClsSamples | ( | ) | const |
returns the APVFloatSamples obtained summing sample-by-sample all the strips on the cluster
Definition at line 312 of file SimpleClusterCandidate.cc.
|
inline |
return the first frame always 0 if 6-Sample CoG
Definition at line 152 of file SimpleClusterCandidate.h.
| 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 selection
Definition at line 341 of file SimpleClusterCandidate.cc.
|
inline |
|
inline |
return the error on the position of the cluster
Definition at line 167 of file SimpleClusterCandidate.h.
|
inline |
|
inline |
|
inline |
return the signal over noise ratio of the cluster
Definition at line 172 of file SimpleClusterCandidate.h.
|
inline |
returns the vector of the strips in the cluster
Definition at line 180 of file SimpleClusterCandidate.h.
| float getTime | ( | ) | const |
return the time of the cluster depending on the m_timeAlgorithm
Definition at line 228 of file SimpleClusterCandidate.cc.
| float getTimeError | ( | ) | const |
return the error on the time of the cluster depending on the m_timeAlgorithm, implemented only for the 6-Sample CoG
Definition at line 243 of file SimpleClusterCandidate.cc.
| bool isGoodCluster | ( | ) |
return true if the cluster candidate can be promoted to cluster
Definition at line 211 of file SimpleClusterCandidate.cc.
|
inline |
return true if the cluster is on the U/P side
Definition at line 83 of file SimpleClusterCandidate.h.
|
inline |
return the cluster size (number of strips of the cluster
Definition at line 177 of file SimpleClusterCandidate.h.
|
protected |
Time of the cluster computed with the 6-sample CoG.
Definition at line 222 of file SimpleClusterCandidate.h.
|
protected |
Error on Time of the cluster computed with the 6-sample CoG (not implemented yet)
Definition at line 225 of file SimpleClusterCandidate.h.
|
protected |
Charge of the cluster.
Definition at line 213 of file SimpleClusterCandidate.h.
|
protected |
Error on Charge of the cluster.
Definition at line 216 of file SimpleClusterCandidate.h.
|
protected |
SNR above which the strip can be considered for clustering.
Definition at line 200 of file SimpleClusterCandidate.h.
|
protected |
SNR above which the cluster is ok.
Definition at line 203 of file SimpleClusterCandidate.h.
|
protected |
SNR above which the strip can be considered as seed.
Definition at line 197 of file SimpleClusterCandidate.h.
|
protected |
side of the cluster
Definition at line 191 of file SimpleClusterCandidate.h.
|
protected |
Position of the cluster.
Definition at line 228 of file SimpleClusterCandidate.h.
|
protected |
Error on Position of the cluster.
Definition at line 231 of file SimpleClusterCandidate.h.
|
protected |
Seed Charge of the cluster.
Definition at line 219 of file SimpleClusterCandidate.h.
|
protected |
SVDRecoDigit index of the seed strip of the cluster.
Definition at line 240 of file SimpleClusterCandidate.h.
|
protected |
SNR of the seed strip.
Definition at line 237 of file SimpleClusterCandidate.h.
|
protected |
number of strips after which we switch from COG to HeadTail estimation of the position
Definition at line 194 of file SimpleClusterCandidate.h.
|
protected |
SNR of the cluster.
Definition at line 234 of file SimpleClusterCandidate.h.
|
protected |
cluster is not good if something goes wrong
Definition at line 185 of file SimpleClusterCandidate.h.
|
protected |
Name of the collection to use for the SVDRecoDigits.
Definition at line 252 of file SimpleClusterCandidate.h.
|
protected |
Name of the collection to use for the SVDShaperDigits.
Definition at line 249 of file SimpleClusterCandidate.h.
|
protected |
first frame selected with the max-sum algorithm
vector containing the strips in the cluster
Definition at line 246 of file SimpleClusterCandidate.h.
|
protected |
selects the algorithm to compute the cluster tim 0 = 6-sample CoG (default) 1 = 3-sample CoG 2 = 3-sample ELS
Definition at line 210 of file SimpleClusterCandidate.h.
|
protected |
VxdID of the cluster.
Definition at line 188 of file SimpleClusterCandidate.h.