Belle II Software  release-08-01-10
ValidationTreeStruct Struct Reference

Calibration validation tree structure. More...

#include <ValidationTreeStruct.h>

Public Types

enum  { c_numModules = 16 }
 

Public Member Functions

void clear ()
 Clear the structure.
 
void clearNumMerged ()
 Clear the number of merged entries.
 
void merge (const ValidationTreeStruct &other)
 Merge two structures. More...
 
void rescaleErrors (double scaleFactor)
 Rescale errors. More...
 
void add (float &x, float &e, float x1, float e1)
 Add (x1, e1) to (x, e) using weighting by errors (e.g. More...
 

Public Attributes

int expNo = 0
 experiment number
 
int runNo = 0
 run number
 
int numTracks = 0
 number of selected tracks
 
float commonT0 = 0
 common T0 residual
 
float commonT0Err = 0
 common T0 uncertainty (not scaled)
 
float moduleT0 [c_numModules] = {0}
 module T0 residuals, index = slot - 1
 
float moduleT0Err [c_numModules] = {0}
 module T0 uncertainties (not scaled), index = slot - 1
 
int numTBCalibrated [c_numModules] = {0}
 number of timebase calibrated channels, index = slot - 1
 
int numT0Calibrated [c_numModules] = {0}
 number of channel T0 calibrated channels, index = slot - 1
 
int numActive [c_numModules] = {0}
 number of active channels, index = slot - 1
 
int numActiveCalibrated [c_numModules] = {0}
 number of active calibrated channels, index = slot - 1
 
float thrEffi [c_numModules] = {0}
 threshold efficiency: average over active calibrated channels, index = slot - 1
 
float asicShifts [4] = {0}
 carrier shifts of BS13d, index = carrier number
 
float svdOffset = 0
 SVD event T0 offset.
 
float svdSigma = 0
 SVD event T0 resolution.
 
float cdcOffset = 0
 CDC event T0 offset.
 
float cdcSigma = 0
 CDC event T0 resolution.
 
float fillPatternOffset = 0
 fill pattern offset
 
float fillPatternFraction = 0
 fraction of reconstructed buckets matched with filled ones
 
int numMerged = 0
 number of merged entries
 

Detailed Description

Calibration validation tree structure.

Definition at line 22 of file ValidationTreeStruct.h.

Member Function Documentation

◆ add()

void add ( float &  x,
float &  e,
float  x1,
float  e1 
)
inline

Add (x1, e1) to (x, e) using weighting by errors (e.g.

least square fit of a constant)

Parameters
xinput/output value
einput/output error
x1value to be added
e1error to be added

Definition at line 79 of file ValidationTreeStruct.h.

80  {
81  if (e1 == 0) return;
82  if (e == 0) {
83  x = x1;
84  e = e1;
85  return;
86  }
87  e *= e;
88  e1 *= e1;
89  float s = 1 / e + 1 / e1;
90  x = (x / e + x1 / e1) / s;
91  e = sqrt(1 / s);
92  }
double sqrt(double a)
sqrt for double
Definition: beamHelpers.h:28

◆ merge()

void merge ( const ValidationTreeStruct other)

Merge two structures.

Parameters
otherstructure to be merged with this one

Definition at line 42 of file ValidationTreeStruct.cc.

43  {
44  if (numMerged == 0) {
45  *this = other;
46  } else {
47  if (expNo != other.expNo or runNo != other.runNo) {
48  B2ERROR("TOP::ValidationTreeStruct: experiment and run numbers must be equal - objects not merged");
49  return;
50  }
51  numTracks += other.numTracks;
52  add(commonT0, commonT0Err, other.commonT0, other.commonT0Err);
53  for (unsigned i = 0; i < c_numModules; i++) {
54  add(moduleT0[i], moduleT0Err[i], other.moduleT0[i], other.moduleT0Err[i]);
55  }
56  }
57  numMerged++;
58  }
int numMerged
number of merged entries
int numTracks
number of selected tracks
float commonT0Err
common T0 uncertainty (not scaled)
float moduleT0[c_numModules]
module T0 residuals, index = slot - 1
float moduleT0Err[c_numModules]
module T0 uncertainties (not scaled), index = slot - 1
void add(float &x, float &e, float x1, float e1)
Add (x1, e1) to (x, e) using weighting by errors (e.g.

◆ rescaleErrors()

void rescaleErrors ( double  scaleFactor)

Rescale errors.

Parameters
scaleFactorscale factor

Definition at line 60 of file ValidationTreeStruct.cc.


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