Belle II Software  release-08-01-10
ClusterInfoExtractor Class Reference

class to extract info from individual clusters and combine for SPTC More...

#include <ClusterInfoExtractor.h>

Inheritance diagram for ClusterInfoExtractor:
Collaboration diagram for ClusterInfoExtractor:

Public Member Functions

 ClusterInfoExtractor (std::vector< Named< float * >> &variableSet, bool useTimingInfo)
 Constructor fills variableSet with variables to be extracted. More...
 
void extractVariables (std::vector< SpacePoint const * > const &spacePoints)
 extract variables from SpacePoints
 

Protected Member Functions

void initializeStats (const std::string &identifier, std::vector< Named< float * >> &variables)
 initialize statistics subsets of variables from clusters that get combined for SPTC
 
void setStats (const std::string &identifier, std::vector< float > &values)
 calculated statistics and saves them in variable set
 
void addVariable (const std::string &identifier, std::vector< Named< float * >> &variables)
 add a variable to the variable set
 

Protected Attributes

bool m_UseTimingInfo
 whether to use timing info from cluster
 
std::unordered_map< std::string, float > m_variables
 unordered_map to associate float value with a string name
 

Detailed Description

class to extract info from individual clusters and combine for SPTC

Definition at line 23 of file ClusterInfoExtractor.h.

Constructor & Destructor Documentation

◆ ClusterInfoExtractor()

ClusterInfoExtractor ( std::vector< Named< float * >> &  variableSet,
bool  useTimingInfo 
)
inline

Constructor fills variableSet with variables to be extracted.

Parameters
variableSetset of variable to be filled
useTimingInfowhether to use the timing info in clusters

Definition at line 29 of file ClusterInfoExtractor.h.

29  :
30  VariableExtractor(), m_UseTimingInfo(useTimingInfo)
31  {
32  initializeStats("charge", variableSet);
33  initializeStats("seedCharge", variableSet);
34  initializeStats("size", variableSet);
35  initializeStats("energyLoss", variableSet);
36  if (m_UseTimingInfo) {
37  initializeStats("time", variableSet);
38  initializeStats("timeSigma", variableSet);
39  }
40 
41  }
bool m_UseTimingInfo
whether to use timing info from cluster
void initializeStats(const std::string &identifier, std::vector< Named< float * >> &variables)
initialize statistics subsets of variables from clusters that get combined for SPTC

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