Belle II Software light-2406-ragdoll
PIDDetectorWeights::WeightsTable Class Reference

Nested class acting as a container the per-detector weights. More...

#include <PIDDetectorWeights.h>

Collaboration diagram for PIDDetectorWeights::WeightsTable:

Public Attributes

bool m_isEmpty
 Default constructor.
 
std::set< double > m_pBinEdges
 Set of p bins edges.
 
std::set< double > m_thetaBinEdges
 Set of theta bins edges.
 
int m_nPBins
 Number of p bins.
 
int m_nThetaBins
 Number of theta bins.
 
std::unordered_map< double, unsigned int > m_linBinIdxsToRowIdxs
 Map the linearised index of the (p, theta) bin indexes to the row index in the (filtered) table.
 
std::map< std::string, std::vector< double > > m_weightsPerDet
 Map each detector to its vector of weights.
 

Private Member Functions

 ClassDef (WeightsTable, 1)
 Needed for sub-class schema evolution.
 

Detailed Description

Nested class acting as a container the per-detector weights.

Conceptually, an instance of this class is associated to one std charged hypothesis.

Definition at line 39 of file PIDDetectorWeights.h.

Constructor & Destructor Documentation

◆ WeightsTable()

WeightsTable ( )
inline

Definition at line 42 of file PIDDetectorWeights.h.

42 :
43 m_isEmpty(false),
44 m_nPBins(0),
46 {};

Member Data Documentation

◆ m_isEmpty

bool m_isEmpty

Default constructor.

  • Flag to indicate whether the internal containers were filled.

Definition at line 48 of file PIDDetectorWeights.h.

◆ m_linBinIdxsToRowIdxs

std::unordered_map<double, unsigned int> m_linBinIdxsToRowIdxs

Map the linearised index of the (p, theta) bin indexes to the row index in the (filtered) table.

Used for fast lookup in the event loop.

Definition at line 60 of file PIDDetectorWeights.h.

◆ m_nPBins

int m_nPBins

Number of p bins.

Definition at line 53 of file PIDDetectorWeights.h.

◆ m_nThetaBins

int m_nThetaBins

Number of theta bins.

Definition at line 54 of file PIDDetectorWeights.h.

◆ m_pBinEdges

std::set<double> m_pBinEdges

Set of p bins edges.

Definition at line 50 of file PIDDetectorWeights.h.

◆ m_thetaBinEdges

std::set<double> m_thetaBinEdges

Set of theta bins edges.

Definition at line 51 of file PIDDetectorWeights.h.

◆ m_weightsPerDet

std::map<std::string, std::vector<double> > m_weightsPerDet

Map each detector to its vector of weights.

By construction, the size of each vector is equal to the number of rows in the (filtered) table.

Definition at line 65 of file PIDDetectorWeights.h.


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