10#include <vxd/dataobjects/VxdID.h>
41 bool add(
VxdID nextID,
int nextCharge,
unsigned short nextCellID,
float nextStripSNR,
unsigned short maxClusterSize)
46 if (
vxdID != nextID)
return false;
49 if (
strips.size() == 0) added =
true;
53 if (
strips.size() > 0 and nextCellID ==
strips.back() + 1 and
strips.size() < maxClusterSize) {
59 strips.push_back(nextCellID);
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.
struct containing a cluster candidate for easier handling
void finalizeCluster(const double pitch, const int stripsInSensor)
calculate cluster properties once a cluster is ready to be stored
float maxSNRinClusterCandidate
Maximum SNR of all the strips in the cluster candidate.
float clusterPosition
Position of the cluster.
int seedStrip
SVD strip (i.e.
std::vector< unsigned short > charges
Vector containing the charges of the corresponding strips that are added.
VxdID vxdID
VxdID of the cluster.
int seedStripIndex
Index of the seed strip of the cluster (0...m_Size)
std::vector< unsigned short > strips
Vector containing strips (DATCONSVDDigits) that are added.
bool add(VxdID nextID, int nextCharge, unsigned short nextCellID, float nextStripSNR, unsigned short maxClusterSize)
add a new strip to the current cluster candidate if possible
int charge
Charge of the cluster.
int seedCharge
Seed Charge of the cluster.