Belle II Software development
ClustersOnSensor Struct Reference

small struct for storing all clusters of the same sensor in one container. More...

#include <SpacePointHelperFunctions.h>

Public Member Functions

void addCluster (const SVDCluster *entry, int index)
 member function to automatically add the cluster to its corresponding entry
 

Public Attributes

VxdID vxdID
 Id of sensor, TODO can be removed if struct is used in a map.
 
std::vector< const SVDCluster * > clustersU
 stores all SVDclusters of U type.
 
std::vector< const SVDCluster * > clustersV
 stores all SVDclusters of V type.
 
std::vector< int > indicesU
 stores the StoreArray indices of the clusters in clustersU, in the same order
 
std::vector< int > indicesV
 stores the StoreArray indices of the clusters in clustersV, in the same order
 

Detailed Description

small struct for storing all clusters of the same sensor in one container.

members should only be filled using the single addCluster-function described below.

Definition at line 47 of file SpacePointHelperFunctions.h.

Member Function Documentation

◆ addCluster()

void addCluster ( const SVDCluster * entry,
int index )
inline

member function to automatically add the cluster to its corresponding entry

index is the position of the cluster in the SVDCluster StoreArray, it is kept to be able to add the relations to the SpacePoints without having to look the clusters up in the DataStore again.

Definition at line 57 of file SpacePointHelperFunctions.h.

58 {
59 vxdID = entry->getSensorID();
60 if (entry->isUCluster() == true) {
61 clustersU.push_back(entry);
62 indicesU.push_back(index);
63 return;
64 }
65 clustersV.push_back(entry);
66 indicesV.push_back(index);
67 }

Member Data Documentation

◆ clustersU

std::vector<const SVDCluster*> clustersU

stores all SVDclusters of U type.

Each entry stores a pointer to its SVDCluster.

Definition at line 76 of file SpacePointHelperFunctions.h.

◆ clustersV

std::vector<const SVDCluster*> clustersV

stores all SVDclusters of V type.

Each entry stores a pointer to its SVDCluster.

Definition at line 82 of file SpacePointHelperFunctions.h.

◆ indicesU

std::vector<int> indicesU

stores the StoreArray indices of the clusters in clustersU, in the same order

Definition at line 85 of file SpacePointHelperFunctions.h.

◆ indicesV

std::vector<int> indicesV

stores the StoreArray indices of the clusters in clustersV, in the same order

Definition at line 88 of file SpacePointHelperFunctions.h.

◆ vxdID

VxdID vxdID

Id of sensor, TODO can be removed if struct is used in a map.

Definition at line 70 of file SpacePointHelperFunctions.h.


The documentation for this struct was generated from the following file: