Belle II Software development
|
Class representing a raw cluster candidate during clustering of the SVD. More...
#include <RawCluster.h>
Public Member Functions | |
RawCluster () | |
Default Constructor to create an empty RawCluster. | |
RawCluster (VxdID vxdID, bool isUside, double cutSeed, double cutAdjacent) | |
Constructor to create an empty RawCluster. | |
RawCluster (VxdID vxdID, bool isUside, double cutSeed, double cutAdjacent, const std::string &storeShaperDigitsName) | |
You can specify the name of StoreArray<SVDShaperDigit> which are needed to get clustered samples. | |
bool | add (VxdID vxdID, bool isUside, struct StripInRawCluster &aStrip) |
Add a Strip to the current cluster. | |
bool | isGoodRawCluster () |
VxdID | getSensorID () const |
bool | isUSide () const |
Belle2::SVDShaperDigit::APVFloatSamples | getClsSamples (bool inElectrons) const |
std::pair< int, std::vector< float > > | getMaxSum3Samples (bool inElectrons=false) const |
int | getSize () const |
const std::vector< StripInRawCluster > | getStripsInRawCluster () const |
int | getSeedMaxSample () const |
int | getSeedInternalIndex () const |
void | setStripCharge (int index, double charge) |
set the strip charge | |
void | setStripTime (int index, double time) |
set the strip time | |
Protected Attributes | |
VxdID | m_vxdID |
VxdID of the cluster. | |
bool | m_isUside |
side of the cluster | |
double | m_cutSeed = 5 |
SNR above which the strip can be considered as seed. | |
double | m_cutAdjacent = 3 |
SNR above which the strip can be considered for clustering. | |
int | m_seedMaxSample = -1 |
ADC MaxSample of the seed strip. | |
float | m_seedSNR = -1 |
SNR (using MaxSample) of the seed strip. | |
int | m_seedIndex = -1 |
SVDShaperDigit index of the seed strip of the cluster. | |
int | m_seedInternalIndex = -1 |
stripsInRawCluster index of the seed strip of the cluster | |
std::vector< StripInRawCluster > | m_strips |
vector containing the strips in the cluster | |
std::string | m_storeShaperDigitsName |
Name of the collection to use for the SVDShaperDigits. | |
Class representing a raw cluster candidate during clustering of the SVD.
Definition at line 33 of file RawCluster.h.
|
inline |
Default Constructor to create an empty RawCluster.
Definition at line 40 of file RawCluster.h.
RawCluster | ( | VxdID | vxdID, |
bool | isUside, | ||
double | cutSeed, | ||
double | cutAdjacent | ||
) |
Constructor to create an empty RawCluster.
vxdID | sensorID |
isUside | true if the RawCluster is on the U-side |
cutSeed | minimum SNR of the seed strip |
cutAdjacent | minimum SNR of a strip belonging to the cluster |
Definition at line 30 of file RawCluster.cc.
RawCluster | ( | VxdID | vxdID, |
bool | isUside, | ||
double | cutSeed, | ||
double | cutAdjacent, | ||
const std::string & | storeShaperDigitsName | ||
) |
You can specify the name of StoreArray<SVDShaperDigit> which are needed to get clustered samples.
vxdID | sensorID |
isUside | true if the RawCluster is on the U-side |
cutSeed | minimum SNR of the seed strip |
cutAdjacent | minimum SNR of a strip belonging to the cluster |
storeShaperDigitsName | name of the SVDShaperDigit StoreArray |
Definition at line 42 of file RawCluster.cc.
bool add | ( | VxdID | vxdID, |
bool | isUside, | ||
struct StripInRawCluster & | aStrip | ||
) |
Add a Strip to the current cluster.
Update the cluster seed strip.
vxdID | sensorID |
isUside | true if the RawCluster is on the U-side |
aStrip | the raw strip to be added to the cluster |
Definition at line 54 of file RawCluster.cc.
Belle2::SVDShaperDigit::APVFloatSamples getClsSamples | ( | bool | inElectrons | ) | const |
inElectrons | if true samples are returned in electrons instead of ADC |
Definition at line 104 of file RawCluster.cc.
std::pair< int, std::vector< float > > getMaxSum3Samples | ( | bool | inElectrons = false | ) | const |
inElectrons | if true samples are returned in electrons instead of ADC |
Definition at line 137 of file RawCluster.cc.
|
inline |
Definition at line 120 of file RawCluster.h.
|
inline |
|
inline |
|
inline |
Definition at line 105 of file RawCluster.h.
|
inline |
bool isGoodRawCluster | ( | ) |
Definition at line 92 of file RawCluster.cc.
|
inline |
|
inline |
set the strip charge
index | of the strip in the cluster |
charge | of the strip |
Definition at line 127 of file RawCluster.h.
|
inline |
set the strip time
index | of the strip in the cluster |
time | of the strip |
Definition at line 133 of file RawCluster.h.
|
protected |
SNR above which the strip can be considered for clustering.
Definition at line 147 of file RawCluster.h.
|
protected |
SNR above which the strip can be considered as seed.
Definition at line 144 of file RawCluster.h.
|
protected |
side of the cluster
Definition at line 141 of file RawCluster.h.
|
protected |
SVDShaperDigit index of the seed strip of the cluster.
Definition at line 156 of file RawCluster.h.
|
protected |
stripsInRawCluster index of the seed strip of the cluster
Definition at line 159 of file RawCluster.h.
|
protected |
ADC MaxSample of the seed strip.
Definition at line 150 of file RawCluster.h.
|
protected |
SNR (using MaxSample) of the seed strip.
Definition at line 153 of file RawCluster.h.
|
protected |
Name of the collection to use for the SVDShaperDigits.
Definition at line 165 of file RawCluster.h.
|
protected |
vector containing the strips in the cluster
Definition at line 162 of file RawCluster.h.
|
protected |
VxdID of the cluster.
Definition at line 138 of file RawCluster.h.