Belle II Software development
EclConfiguration Class Reference

Singleton class to hold the ECL configuration. More...

#include <EclConfiguration.h>

Classes

struct  adccounts_t
 a struct for the ADC count More...
 
struct  algoparams_t
 a struct for the parameters of the algorithm More...
 
struct  fitparams_t
 a struct for the fit parameters More...
 
struct  signalsample_t
 a struct for a signal sample More...
 

Public Member Functions

bool background () const
 return the background flag
 
void setBackground (bool val)
 set the background flag
 

Static Public Member Functions

static EclConfigurationget ()
 return this instance
 
static double getRF ()
 See m_rf.
 
static double getTick ()
 See m_tick.
 

Static Public Attributes

static constexpr int m_nch
 total number of electronic channels (crystals) in calorimeter
 
static constexpr double m_step = 0.5
 time between points in internal units t_{asrto}*m_rf/2.
 
static constexpr double s_clock = 24.*12.
 digitization clock in RF units
 
static constexpr int m_ntrg = 144
 number of trigger counts per ADC clock tick
 
static constexpr int m_nsmp = 31
 number of ADC measurements for signal fitting
 
static constexpr double m_tmin = -15
 lower range of the signal fitting region in ADC clocks
 
static constexpr int m_nl = 48
 length of samples signal in number of ADC clocks
 
static constexpr int m_ns = 32
 number of samples per ADC clock
 
static constexpr int m_ndt = 96
 number of points per ADC tick where signal fit procedure parameters are evaluated
 

Private Attributes

bool m_background {false}
 constructor
 

Static Private Attributes

static double m_rf = -1
 RF clock, www-linac.kek.jp/linac-com/report/skb-tdr/, ch.
 
static double m_tick = -1
 == 72/127 digitization clock tick (in microseconds)
 

Detailed Description

Singleton class to hold the ECL configuration.

Definition at line 21 of file EclConfiguration.h.

Constructor & Destructor Documentation

◆ EclConfiguration()

EclConfiguration ( )
inlineprivate

Definition at line 58 of file EclConfiguration.h.

58{};

Member Function Documentation

◆ background()

bool background ( ) const
inline

return the background flag

Definition at line 30 of file EclConfiguration.h.

30{ return m_background; }

◆ get()

static EclConfiguration & get ( )
inlinestatic

return this instance

Definition at line 24 of file EclConfiguration.h.

25 {
26 static EclConfiguration instance;
27 return instance;
28 }

◆ getRF()

double getRF ( )
static

See m_rf.

This will try to use the value from the database

< Default RF value is 508.876 MHz, see www-linac.kek.jp/linac-com/report/skb-tdr/, ch. 6

Definition at line 36 of file EclConfiguration.cc.

37{
40 if (m_rf < 0) {
41 DBObjPtr<Belle2::HardwareClockSettings> clock_info("HardwareClockSettings");
42 // Convert RF from GHz to MHz
43 m_rf = clock_info->getAcceleratorRF() * 1e3;
44 }
45 return m_rf;
46}
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
static double m_rf
RF clock, www-linac.kek.jp/linac-com/report/skb-tdr/, ch.

◆ getTick()

double getTick ( )
static

See m_tick.

Definition at line 48 of file EclConfiguration.cc.

49{
50 return 24.*12. / getRF();
51}
static double getRF()
See m_rf.

◆ setBackground()

void setBackground ( bool  val)
inline

set the background flag

Definition at line 32 of file EclConfiguration.h.

32{ m_background = val; }

Member Data Documentation

◆ m_background

bool m_background {false}
private

constructor

background configuration

Definition at line 59 of file EclConfiguration.h.

◆ m_nch

constexpr int m_nch
staticconstexpr
Initial value:

total number of electronic channels (crystals) in calorimeter

Definition at line 34 of file EclConfiguration.h.

◆ m_ndt

constexpr int m_ndt = 96
staticconstexpr

number of points per ADC tick where signal fit procedure parameters are evaluated

Definition at line 45 of file EclConfiguration.h.

◆ m_nl

constexpr int m_nl = 48
staticconstexpr

length of samples signal in number of ADC clocks

Definition at line 43 of file EclConfiguration.h.

◆ m_ns

constexpr int m_ns = 32
staticconstexpr

number of samples per ADC clock

Definition at line 44 of file EclConfiguration.h.

◆ m_nsmp

constexpr int m_nsmp = 31
staticconstexpr

number of ADC measurements for signal fitting

Definition at line 40 of file EclConfiguration.h.

◆ m_ntrg

constexpr int m_ntrg = 144
staticconstexpr

number of trigger counts per ADC clock tick

Definition at line 38 of file EclConfiguration.h.

◆ m_rf

double m_rf = -1
staticprivate

RF clock, www-linac.kek.jp/linac-com/report/skb-tdr/, ch.

6

Definition at line 48 of file EclConfiguration.h.

◆ m_step

constexpr double m_step = 0.5
staticconstexpr

time between points in internal units t_{asrto}*m_rf/2.

/24./12.

Definition at line 36 of file EclConfiguration.h.

◆ m_tick

double m_tick = -1
staticprivate

== 72/127 digitization clock tick (in microseconds)

Definition at line 49 of file EclConfiguration.h.

◆ m_tmin

constexpr double m_tmin = -15
staticconstexpr

lower range of the signal fitting region in ADC clocks

Definition at line 41 of file EclConfiguration.h.

◆ s_clock

constexpr double s_clock = 24.*12.
staticconstexpr

digitization clock in RF units

Definition at line 37 of file EclConfiguration.h.


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