Belle II Software  release-08-01-10
KLMStripEfficiencyAlgorithm::Results Class Reference

Calibration results or supplementary results calculated from the input data. More...

#include <KLMStripEfficiencyAlgorithm.h>

Public Member Functions

 Results ()
 Constructor.
 
 Results (const Results &results)
 Copy constructor.
 
 ~Results ()
 Destructor,.
 
float getAchievedPrecision () const
 Get achieved precision of efficiency measurement (the worst one).
 
int getMatchedDigits () const
 Get number of matched digits.
 
float * getEfficiency () const
 Get efficiency.
 
int getExtHits () const
 Get total number of ExtHits.
 
int * getExtHitsPlane () const
 Get number of ExtHits per plane.
 
int newMeasuredPlanes (const float *efficiency) const
 Get number of new measured planes. More...
 
int newExtHitsPlanes (const int *extHitsPlane) const
 Get number of new measured planes with ExtHits. More...
 

Private Attributes

float m_AchievedPrecision = 0
 Achieved precision of efficiency measurement.
 
int m_MatchedDigits = 0
 Number of matched digits.
 
float * m_Efficiency = nullptr
 Efficiency.
 
int m_ExtHits = 0
 Number of ExtHits (overall).
 
int * m_ExtHitsPlane = nullptr
 Number of ExtHits per plane.
 

Friends

class KLMStripEfficiencyAlgorithm
 

Detailed Description

Calibration results or supplementary results calculated from the input data.

Definition at line 49 of file KLMStripEfficiencyAlgorithm.h.

Member Function Documentation

◆ newExtHitsPlanes()

int newExtHitsPlanes ( const int *  extHitsPlane) const

Get number of new measured planes with ExtHits.

Parameters
[in]extHitsPlaneNumber of ExtHits for other measurement.

Definition at line 173 of file KLMStripEfficiencyAlgorithm.cc.

175 {
176  const int nPlanes = KLMPlaneArrayIndex::Instance().getNElements();
177  int newPlanes = 0;
178  for (int i = 0; i < nPlanes; ++i) {
179  if (m_ExtHitsPlane[i] > 0 && extHitsPlane[i] == 0)
180  newPlanes++;
181  }
182  return newPlanes;
183 }
uint16_t getNElements() const
Get number of elements.
static const KLMPlaneArrayIndex & Instance()
Instantiation.

◆ newMeasuredPlanes()

int newMeasuredPlanes ( const float *  efficiency) const

Get number of new measured planes.

Parameters
[in]efficiencyEfficiency for other measurement.

Definition at line 161 of file KLMStripEfficiencyAlgorithm.cc.


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