![]() |
Belle II Software development
|
FAM module. More...
#include <TrgEclDigitizer.h>
Public Member Functions | |
| TrgEclDigitizer () | |
| Constructor. | |
| virtual | ~TrgEclDigitizer () |
| Destructor. | |
| void | setup (int) |
| setup fam module | |
| void | getTCHit () |
| get TC Hits from Xtal hits Set TC data m_sourceOfTC => 1=ECLHit, 2=ECLSimHit, 3=ECLHit+TRGECLBGTCHit ("1:=ECLHit" is used for signal w/o bkg, and real time background monitor) | |
| void | digitization01 (std::vector< std::vector< double > > &, std::vector< std::vector< double > > &) |
| fit method, digi with 125ns interval | |
| void | digitization02 (std::vector< std::vector< double > > &, std::vector< std::vector< double > > &) |
| original no fit method, digi with 12ns interval | |
| void | save (int) |
| save fitting result into tables | |
| void | setWaveform (int wave) |
| Set flag of waveform table. | |
| void | setFADC (int fadc) |
| Set flag of waveform table. | |
| void | setSourceOfTC (int SourceOfTC) |
| Set flag of waveform table. | |
| void | clear () |
| Clear all the data fields. | |
| void | initialize () |
| Initialize the class. | |
| double | FADC (int, double) |
| FADC. | |
| double | SimplifiedFADC (int, double) |
| FADC. | |
| double | interFADC (double) |
| Faster FADC using interpolation. | |
| double | ShapeF (double, double, double, double, double, double, double) |
| return shape using FADC function | |
| double | ShapeF (double, double) |
| Return shape using Simplified FADC. | |
| double | u_max (double, double) |
| Find max value between 2 vals;. | |
Private Attributes | |
| double | m_TimeRange = 4000 |
| time range(default : -4000 ~ 4000 ns ) | |
| std::array< std::array< double, c_nTimeBins >, c_NTC > | m_TCEnergy |
| TC Energy converted from Xtarl Energy [GeV]. | |
| std::array< std::array< double, c_nTimeBins >, c_NTC > | m_TCTiming |
| TC Timing converted from Xtarl Timing [GeV]. | |
| std::array< double, c_NTC > | m_TCEnergy_tot |
| TC Energy converted from Xtarl Energy [GeV]. | |
| std::array< double, c_NTC > | m_TCTiming_tot |
| TC Timing converted from Xtarl Timing [GeV]. | |
| std::array< std::array< double, 60 >, c_NTC > | m_TCRawEnergy |
| Input TC energy[GeV]. | |
| std::array< std::array< double, 60 >, c_NTC > | m_TCRawTiming |
| Input TC timing[ns]. | |
| std::array< std::array< double, 60 >, c_NTC > | m_TCRawBkgTag |
| Input Beambackground tag. | |
| TrgEclMapping * | m_TCMap |
| Object of TC Mapping. | |
| TrgEclDataBase * | m_DataBase |
| Object of DataBase. | |
| std::array< std::array< double, 64 >, 64 > | m_MatrixParallel |
| Noise Matrix of Parallel and Serial Noise. | |
| std::array< std::array< double, 64 >, 64 > | m_MatrixSerial |
| Noise Low triangle Matrix of Serial noise. | |
| std::array< std::array< double, c_nTimeBins >, c_NTC > | m_TCBkgContribution |
| Beambackground contribution. | |
| std::array< std::array< double, c_nTimeBins >, c_NTC > | m_TCSigContribution |
| Signal contribution. | |
| std::array< std::array< double, c_nTimeBins >, c_NTC > | m_TCBeambkgTag |
| Beambackground tag. | |
| int | m_SaveTCWaveForm = 0 |
| Flag of waveform table. | |
| double | m_WaveForm [c_NTC][c_NSamplingDigi01] = {{0.}} |
| TC Energy converted from Xtarl Energy [GeV]. | |
| int | m_FADC = 1 |
| Flag of choosing the method of waveform generation function 0: use simplifiedFADC, 1: use interFADC(interpolation) | |
| int | m_BeambkgTag = 0 |
| Flag of saving beam background tag or not. | |
| int | m_sourceOfTC = 0 |
| Which TC source to use. | |
| std::array< float, c_NSamplingDigi01 > | m_noisePileup = {0.} |
| Noise from pileup. | |
| std::array< float, c_NSamplingDigi01 > | m_noiseParallel = {0.} |
| Noise from parallel. | |
| std::array< float, c_NSamplingDigi01 > | m_noiseSerial = {0.} |
| Noise from serial. | |
| std::array< float, c_NSamplingDigi01 > | m_Xpr = {0.} |
| Random parallel noise. | |
| std::array< float, c_NSamplingDigi01 > | m_Xsr = {0.} |
| Random serial noise. | |
Static Private Attributes | |
| static constexpr int | c_NTC = 576 |
| Number of ECL TriggerCells (TC) | |
| static constexpr int | c_NSamplingDigi01 = 64 |
| Numer of sampling points for digitizer01. | |
| static constexpr int | c_NSamplingDigi02 = 666 |
| Numer of sampling points for digitizer02. | |
| static constexpr int | c_nTimeBins = 80 |
| Numer of time bins. | |
| static constexpr int | c_nECLCrystals = 8736 |
| Numer of time bins. | |
| static constexpr std::array< double, 245 > | m_SignalAmp |
| Normalised FADC signal shape, sampled every 12 ns from 0 to 2928 ns. | |
FAM module.
Definition at line 26 of file TrgEclDigitizer.h.
| TrgEclDigitizer | ( | ) |
Constructor.
Definition at line 32 of file TrgEclDigitizer.cc.
|
virtual |
Destructor.
Definition at line 39 of file TrgEclDigitizer.cc.
| void clear | ( | ) |
Clear all the data fields.
Definition at line 63 of file TrgEclDigitizer.cc.
| void digitization01 | ( | std::vector< std::vector< double > > & | TCDigiE, |
| std::vector< std::vector< double > > & | TCDigiT ) |
fit method, digi with 125ns interval
Definition at line 313 of file TrgEclDigitizer.cc.
| void digitization02 | ( | std::vector< std::vector< double > > & | TCDigiE, |
| std::vector< std::vector< double > > & | TCDigiT ) |
original no fit method, digi with 12ns interval
Definition at line 486 of file TrgEclDigitizer.cc.
| double FADC | ( | int | flag_gen, |
| double | timing ) |
FADC.
Definition at line 644 of file TrgEclDigitizer.cc.
| void getTCHit | ( | ) |
get TC Hits from Xtal hits Set TC data m_sourceOfTC => 1=ECLHit, 2=ECLSimHit, 3=ECLHit+TRGECLBGTCHit ("1:=ECLHit" is used for signal w/o bkg, and real time background monitor)
Definition at line 86 of file TrgEclDigitizer.cc.
| void initialize | ( | ) |
Initialize the class.
Definition at line 49 of file TrgEclDigitizer.cc.
| double interFADC | ( | double | timing | ) |
Faster FADC using interpolation.
Definition at line 616 of file TrgEclDigitizer.cc.
| void save | ( | int | m_nEvent | ) |
save fitting result into tables
Definition at line 574 of file TrgEclDigitizer.cc.
|
inline |
|
inline |
Set flag of waveform table.
Definition at line 56 of file TrgEclDigitizer.h.
|
inline |
Set flag of waveform table.
Definition at line 52 of file TrgEclDigitizer.h.
| double ShapeF | ( | double | t00, |
| double | ts1 ) |
Return shape using Simplified FADC.
Definition at line 956 of file TrgEclDigitizer.cc.
| double ShapeF | ( | double | t00, |
| double | t01, | ||
| double | tb1, | ||
| double | t02, | ||
| double | tb2, | ||
| double | td1, | ||
| double | ts1 ) |
return shape using FADC function
Definition at line 760 of file TrgEclDigitizer.cc.
| double SimplifiedFADC | ( | int | flag_gen, |
| double | timing ) |
FADC.
Faster FADC
Definition at line 836 of file TrgEclDigitizer.cc.
| double u_max | ( | double | aaa, |
| double | bbb ) |
Find max value between 2 vals;.
Definition at line 1026 of file TrgEclDigitizer.cc.
|
staticconstexprprivate |
Numer of time bins.
Definition at line 87 of file TrgEclDigitizer.h.
|
staticconstexprprivate |
Numer of sampling points for digitizer01.
Definition at line 81 of file TrgEclDigitizer.h.
|
staticconstexprprivate |
Numer of sampling points for digitizer02.
Definition at line 83 of file TrgEclDigitizer.h.
|
staticconstexprprivate |
Number of ECL TriggerCells (TC)
Definition at line 79 of file TrgEclDigitizer.h.
|
staticconstexprprivate |
Numer of time bins.
Definition at line 85 of file TrgEclDigitizer.h.
|
private |
Flag of saving beam background tag or not.
Definition at line 137 of file TrgEclDigitizer.h.
|
private |
Object of DataBase.
Definition at line 117 of file TrgEclDigitizer.h.
|
private |
Flag of choosing the method of waveform generation function 0: use simplifiedFADC, 1: use interFADC(interpolation)
Definition at line 135 of file TrgEclDigitizer.h.
|
private |
Noise Matrix of Parallel and Serial Noise.
Noise Low triangle Matrix of Parallel noise
Definition at line 121 of file TrgEclDigitizer.h.
|
private |
Noise Low triangle Matrix of Serial noise.
Definition at line 123 of file TrgEclDigitizer.h.
|
private |
|
private |
|
private |
|
private |
Flag of waveform table.
Definition at line 131 of file TrgEclDigitizer.h.
|
staticconstexprprivate |
Normalised FADC signal shape, sampled every 12 ns from 0 to 2928 ns.
Used by interFADC() to interpolate the waveform; the corresponding sampling times are simply 12 ns * index and so are not tabulated.
Definition at line 156 of file TrgEclDigitizer.h.
|
private |
Which TC source to use.
Definition at line 139 of file TrgEclDigitizer.h.
|
private |
Beambackground tag.
Definition at line 129 of file TrgEclDigitizer.h.
|
private |
Beambackground contribution.
Definition at line 125 of file TrgEclDigitizer.h.
|
private |
TC Energy converted from Xtarl Energy [GeV].
Definition at line 92 of file TrgEclDigitizer.h.
|
private |
TC Energy converted from Xtarl Energy [GeV].
Definition at line 96 of file TrgEclDigitizer.h.
|
private |
Object of TC Mapping.
Definition at line 115 of file TrgEclDigitizer.h.
|
private |
Input Beambackground tag.
Definition at line 112 of file TrgEclDigitizer.h.
|
private |
Input TC energy[GeV].
Definition at line 108 of file TrgEclDigitizer.h.
|
private |
Input TC timing[ns].
Definition at line 110 of file TrgEclDigitizer.h.
|
private |
Signal contribution.
Definition at line 127 of file TrgEclDigitizer.h.
|
private |
TC Timing converted from Xtarl Timing [GeV].
Definition at line 94 of file TrgEclDigitizer.h.
|
private |
TC Timing converted from Xtarl Timing [GeV].
Definition at line 98 of file TrgEclDigitizer.h.
|
private |
time range(default : -4000 ~ 4000 ns )
Definition at line 90 of file TrgEclDigitizer.h.
|
private |
TC Energy converted from Xtarl Energy [GeV].
Definition at line 133 of file TrgEclDigitizer.h.
|
private |
|
private |