Belle II Software prerelease-11-00-00e
ClustersOnSensor Struct Reference

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

#include <SpacePointHelperFunctions.h>

Collaboration diagram for ClustersOnSensor:

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 46 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 56 of file SpacePointHelperFunctions.h.

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

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 75 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 81 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 84 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 87 of file SpacePointHelperFunctions.h.

◆ vxdID

VxdID vxdID

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

Definition at line 69 of file SpacePointHelperFunctions.h.


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