 |
Belle II Software
release-05-01-25
|
11 #include <framework/logging/Logger.h>
12 #include <tracking/modules/DATCON/DATCONSVDSimpleClusterCandidate.h>
13 #include <vxd/geometry/GeoCache.h>
23 DATCONSVDSimpleClusterCandidate::DATCONSVDSimpleClusterCandidate(
VxdID vxdID,
bool isUside)
30 , m_maxClusterSize(maxClusterSize) {};
33 unsigned short cellID)
73 B2ERROR(
"This mode is currently not supported, nothing will happen, no DATCONSVDClusters will be created!");
85 double pitch =
m_isUside ? info.getUPitch() : info.getVPitch();
86 unsigned short numberofStrips =
m_isUside ? info.getUCells() : info.getVCells();
88 unsigned short minStripCellID =
m_strips.at(0);
90 unsigned short clusterSize =
m_strips.size();
91 unsigned short seedStripIndex = clusterSize / 2 + 1;
92 unsigned short seedStrip = (minStripCellID + seedStripIndex - 1);
93 double clusterPosition = pitch * (seedStrip - numberofStrips / 2);
unsigned short m_seedStripIndex
Index of the seed strip of the cluster (0...m_Size)
Class to uniquely identify a any structure of the PXD and SVD.
void finalizeCluster()
compute the position of the cluster
std::vector< unsigned short > m_strips
Vector containing strips (DATCONSVDDigits) that are added.
float m_position
Position of the cluster.
unsigned short m_size
Size of the cluster.
DATCONSVDSimpleClusterCandidate()
Constructor to create an empty Cluster.
bool isGoodCluster()
return true if the cluster candidate can be promoted to cluster
Base class to provide Sensor Information for PXD and SVD.
std::vector< unsigned short > m_digitIndices
Vector of the indices in the DATCONSVDDigit StoreArray of the added strips.
static GeoCache & getInstance()
Return a reference to the singleton instance.
Abstract base class for different kinds of events.
unsigned short m_seedCharge
Seed Charge of the cluster.
bool m_isUside
side of the cluster
VxdID m_vxdID
VxdID of the cluster.
void finalizeSimpleCluster()
compute the simple cluster position as in phase 2 FPGA implementation
std::vector< unsigned short > m_charges
Vector containing the charges of the corresponding strips that are added.
unsigned short m_maxClusterSize
Maximum cluster size (mainly for the simple clusterizer)
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
unsigned short m_seedStrip
SVD strip (i.e.
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
bool add(VxdID vxdID, bool isUside, unsigned short index, unsigned short charge, unsigned short cellID)
Add a Strip to the current cluster.