Belle II Software development
YScanner::Result Struct Reference

Single PDF peak data. More...

#include <YScanner.h>

Public Member Functions

 Result (int ID)
 Constructor with pixel ID.
 
void set ()
 Sets the mean and width-squared from the accumulated values.
 

Public Attributes

int pixelID = 0
 pixel ID (1-based)
 
double sum = 0
 peak area proportional to number of photons
 
double e0 = 0
 mean photon energy of the peak
 
double sigsq = 0
 width of the peak squared, in photon energy units
 

Detailed Description

Single PDF peak data.

Definition at line 208 of file YScanner.h.

Constructor & Destructor Documentation

◆ Result()

Result ( int ID)
inlineexplicit

Constructor with pixel ID.

Parameters
IDpixel ID (1-based)

Definition at line 218 of file YScanner.h.

218 : pixelID(ID)
219 {}

Member Function Documentation

◆ set()

void set ( )
inline

Sets the mean and width-squared from the accumulated values.

Definition at line 612 of file YScanner.h.

613 {
614 if (sum == 0) return;
615 e0 /= sum;
616 sigsq = std::max(sigsq / sum - e0 * e0, 0.0);
617 }

Member Data Documentation

◆ e0

double e0 = 0

mean photon energy of the peak

Definition at line 211 of file YScanner.h.

◆ pixelID

int pixelID = 0

pixel ID (1-based)

Definition at line 209 of file YScanner.h.

◆ sigsq

double sigsq = 0

width of the peak squared, in photon energy units

Definition at line 212 of file YScanner.h.

◆ sum

double sum = 0

peak area proportional to number of photons

Definition at line 210 of file YScanner.h.


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