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 195 of file YScanner.h.

Constructor & Destructor Documentation

◆ Result()

Result ( int  ID)
inlineexplicit

Constructor with pixel ID.

Parameters
IDpixel ID (1-based)

Definition at line 205 of file YScanner.h.

205 : pixelID(ID)
206 {}
int pixelID
pixel ID (1-based)
Definition: YScanner.h:196

Member Function Documentation

◆ set()

void set ( )
inline

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

Definition at line 547 of file YScanner.h.

548 {
549 if (sum == 0) return;
550 e0 /= sum;
551 sigsq = std::max(sigsq / sum - e0 * e0, 0.0);
552 }
double e0
mean photon energy of the peak
Definition: YScanner.h:198
double sum
peak area proportional to number of photons
Definition: YScanner.h:197
double sigsq
width of the peak squared, in photon energy units
Definition: YScanner.h:199

Member Data Documentation

◆ e0

double e0 = 0

mean photon energy of the peak

Definition at line 198 of file YScanner.h.

◆ pixelID

int pixelID = 0

pixel ID (1-based)

Definition at line 196 of file YScanner.h.

◆ sigsq

double sigsq = 0

width of the peak squared, in photon energy units

Definition at line 199 of file YScanner.h.

◆ sum

double sum = 0

peak area proportional to number of photons

Definition at line 197 of file YScanner.h.


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