ATLAS Offline Software
|
#include <ZDCDataAnalyzer.h>
Public Types | |
typedef std::array< std::array< float, 4 >, 2 > | ZDCModuleFloatArray |
typedef std::array< std::array< bool, 4 >, 2 > | ZDCModuleBoolArray |
typedef std::array< std::array< int, 4 >, 2 > | ZDCModuleIntArray |
Public Member Functions | |
ZDCDataAnalyzer (ZDCMsg::MessageFunctionPtr messageFunc_p, int nSample, float deltaTSample, size_t preSampleIdx, std::string fitFunction, const ZDCModuleIntArray &peak2ndDerivMinSamples, const ZDCModuleFloatArray &peak2ndDerivMinThresholdsHG, const ZDCModuleFloatArray &peak2ndDerivMinThresholdsLG, unsigned int LGMode=ZDCPulseAnalyzer::LGModeNormal) | |
~ZDCDataAnalyzer () | |
void | enableDelayed (float deltaT, const ZDCModuleFloatArray &undelayedDelayedPedestalDiff) |
void | enableDelayed (const ZDCModuleFloatArray &delayDeltaT, const ZDCModuleFloatArray &undelayedDelayedPedestalDiff) |
void | enableRepass (const ZDCModuleFloatArray &peak2ndDerivMinRepassHG, const ZDCModuleFloatArray &peak2ndDerivMinRepassLG) |
void | enablePreExclusion (unsigned int maxSamplesExcl, const ZDCModuleIntArray &HGADCThresh, const ZDCModuleIntArray &LGADCThresh) |
void | enablePreExclusion (unsigned int maxSamplesExcl, unsigned int HGADCThresh, unsigned int LGADCThresh) |
void | enablePostExclusion (unsigned int maxSamplesExcl, const ZDCModuleIntArray &HGADCThresh, const ZDCModuleIntArray &LGADCThresh) |
void | enablePostExclusion (unsigned int maxSamplesExcl, unsigned int HGADCThresh, unsigned int LGADCThresh) |
bool | ModuleDisabled (unsigned int side, unsigned int module) const |
unsigned int | GetModuleMask () const |
float | GetModuleSum (size_t side) const |
float | GetModuleSumErr (size_t side) const |
float | GetSideBkgdFrac (size_t side) const |
float | GetCalibModuleSum (size_t side) const |
float | GetCalibModuleSumErr (size_t side) const |
float | GetSideCalibBkgdFrac (size_t side) const |
float | GetModuleSumPreSample (size_t side) const |
float | GetAverageTime (size_t side) const |
bool | SideFailed (size_t side) const |
float | GetModuleAmplitude (size_t side, size_t module) const |
float | GetModuleTime (size_t side, size_t module) const |
float | GetModuleChisq (size_t side, size_t module) const |
float | GetModuleCalibAmplitude (size_t side, size_t module) const |
float | GetModuleCalibTime (size_t side, size_t module) const |
float | GetModuleStatus (size_t side, size_t module) const |
float | GetdelayedBS (size_t side, size_t module) const |
const ZDCPulseAnalyzer * | GetPulseAnalyzer (size_t side, size_t module) const |
bool | disableModule (size_t side, size_t module) |
void | set2ndDerivStep (size_t step) |
void | SetGainFactorsHGLG (float gainFactorHG, float gainFactorLG) |
void | SetGainFactorsHGLG (const ZDCModuleFloatArray &gainFactorsHG, const ZDCModuleFloatArray &gainFactorsLG) |
void | SetPeak2ndDerivMinTolerances (size_t tolerance) |
void | SetFitTimeMax (float tmax) |
void | SetSaveFitFunc (bool save) |
void | SetADCOverUnderflowValues (const ZDCModuleFloatArray &HGOverflowADC, const ZDCModuleFloatArray &HGUnderflowADC, const ZDCModuleFloatArray &LGOverflowADC) |
void | SetNoiseSigmas (const ZDCModuleFloatArray &noiseSigmasHG, const ZDCModuleFloatArray &noiseSigmasLG) |
void | SetTauT0Values (const ZDCModuleBoolArray &fxiTau1, const ZDCModuleBoolArray &fxiTau2, const ZDCModuleFloatArray &tau1, const ZDCModuleFloatArray &tau2, const ZDCModuleFloatArray &t0HG, const ZDCModuleFloatArray &t0LG) |
void | SetFitMinMaxAmpValues (const ZDCModuleFloatArray &minAmpHG, const ZDCModuleFloatArray &minAmpLG, const ZDCModuleFloatArray &maxAmpHG, const ZDCModuleFloatArray &maxAmpLG) |
void | SetFitMinMaxAmpValues (float minHG, float minLG, float maxHG, float maxLG) |
void | SetCutValues (const ZDCModuleFloatArray &chisqDivAmpCutHG, const ZDCModuleFloatArray &chisqDivAmpCutLG, const ZDCModuleFloatArray &deltaT0MinHG, const ZDCModuleFloatArray &deltaT0MaxHG, const ZDCModuleFloatArray &deltaT0MinLG, const ZDCModuleFloatArray &deltaT0MaxLG) |
void | SetTimingCorrParams (ZDCPulseAnalyzer::TimingCorrMode mode, float refADC, float refScale, const std::array< std::array< std::vector< float >, 4 >, 2 > &HGParamArr, const std::array< std::array< std::vector< float >, 4 >, 2 > &LGParamArr) |
void | SetNonlinCorrParams (float refADC, float refScale, const std::array< std::array< std::vector< float >, 4 >, 2 > &HGNonlinCorrParams, const std::array< std::array< std::vector< float >, 4 >, 2 > &LHGNonlinCorrParams) |
void | SetModuleAmpFractionLG (const ZDCDataAnalyzer::ZDCModuleFloatArray &moduleAmpFractionLG) |
void | enableTimeSigCut (bool AND, float sigCut, const std::string &TF1String, const std::array< std::array< std::vector< double >, 4 >, 2 > &parsHGArr, const std::array< std::array< std::vector< double >, 4 >, 2 > &parsLGArr) |
void | LoadEnergyCalibrations (std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > &calibSplines) |
void | LoadT0Calibrations (std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > &T0HGOffsetSplines, std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > &T0LGOffsetSplines) |
void | StartEvent (int lumiBlock) |
void | LoadAndAnalyzeData (size_t side, size_t module, const std::vector< float > &HGSamples, const std::vector< float > &LGSamples) |
void | LoadAndAnalyzeData (size_t side, size_t module, const std::vector< float > &HGSamples, const std::vector< float > &LGSamples, const std::vector< float > &HGSamplesDelayed, const std::vector< float > &LGSamplesDelayed) |
bool | FinishEvent () |
Private Attributes | |
ZDCMsg::MessageFunctionPtr | m_msgFunc_p |
size_t | m_nSample {} |
float | m_deltaTSample {} |
size_t | m_preSampleIdx {} |
std::string | m_fitFunction |
unsigned int | m_LGMode {} |
bool | m_repassEnabled {} |
std::array< std::array< int, 4 >, 2 > | m_delayedOrder {} |
ZDCModuleBoolArray | m_moduleDisabled {} |
std::array< std::array< std::unique_ptr< ZDCPulseAnalyzer >, 4 >, 2 > | m_moduleAnalyzers {} |
int | m_eventCount {} |
ZDCModuleFloatArray | m_HGGains {} |
ZDCModuleFloatArray | m_pedestals {} |
bool | m_haveECalib {} |
std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > | m_LBDepEcalibSplines {} |
bool | m_haveT0Calib {} |
std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > | m_T0HGOffsetSplines {} |
std::array< std::array< std::unique_ptr< TSpline >, 4 >, 2 > | m_T0LGOffsetSplines {} |
int | m_currentLB {} |
ZDCModuleFloatArray | m_currentECalibCoeff {} |
ZDCModuleFloatArray | m_currentT0OffsetsHG {} |
ZDCModuleFloatArray | m_currentT0OffsetsLG {} |
std::array< std::array< bool, 4 >, 2 > | m_dataLoaded {} |
unsigned int | m_moduleMask |
std::array< std::array< unsigned int, 4 >, 2 > | m_moduleStatus {} |
std::array< std::array< float, 4 >, 2 > | m_calibAmplitude {} |
std::array< std::array< float, 4 >, 2 > | m_calibTime {} |
std::array< float, 2 > | m_moduleSum {} |
std::array< float, 2 > | m_moduleSumErrSq {} |
std::array< float, 2 > | m_moduleSumPreSample {} |
std::array< float, 2 > | m_moduleSumBkgdFrac {} |
std::array< float, 2 > | m_calibModuleSum {} |
std::array< float, 2 > | m_calibModuleSumErrSq {} |
std::array< float, 2 > | m_calibModSumBkgdFrac {} |
std::array< float, 2 > | m_averageTime {} |
std::array< bool, 2 > | m_fail {} |
std::array< std::array< float, 4 >, 2 > | m_moduleAmpFractionLG {} |
Definition at line 19 of file ZDCDataAnalyzer.h.
typedef std::array<std::array<bool, 4>, 2> ZDCDataAnalyzer::ZDCModuleBoolArray |
Definition at line 23 of file ZDCDataAnalyzer.h.
typedef std::array<std::array<float, 4>, 2> ZDCDataAnalyzer::ZDCModuleFloatArray |
Definition at line 22 of file ZDCDataAnalyzer.h.
typedef std::array<std::array<int, 4>, 2> ZDCDataAnalyzer::ZDCModuleIntArray |
Definition at line 24 of file ZDCDataAnalyzer.h.
ZDCDataAnalyzer::ZDCDataAnalyzer | ( | ZDCMsg::MessageFunctionPtr | messageFunc_p, |
int | nSample, | ||
float | deltaTSample, | ||
size_t | preSampleIdx, | ||
std::string | fitFunction, | ||
const ZDCModuleIntArray & | peak2ndDerivMinSamples, | ||
const ZDCModuleFloatArray & | peak2ndDerivMinThresholdsHG, | ||
const ZDCModuleFloatArray & | peak2ndDerivMinThresholdsLG, | ||
unsigned int | LGMode = ZDCPulseAnalyzer::LGModeNormal |
||
) |
Definition at line 15 of file ZDCDataAnalyzer.cxx.
ZDCDataAnalyzer::~ZDCDataAnalyzer | ( | ) |
Definition at line 88 of file ZDCDataAnalyzer.cxx.
bool ZDCDataAnalyzer::disableModule | ( | size_t | side, |
size_t | module | ||
) |
Definition at line 92 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::enableDelayed | ( | const ZDCModuleFloatArray & | delayDeltaT, |
const ZDCModuleFloatArray & | undelayedDelayedPedestalDiff | ||
) |
Definition at line 120 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::enableDelayed | ( | float | deltaT, |
const ZDCModuleFloatArray & | undelayedDelayedPedestalDiff | ||
) |
Definition at line 109 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::enablePostExclusion | ( | unsigned int | maxSamplesExcl, |
const ZDCModuleIntArray & | HGADCThresh, | ||
const ZDCModuleIntArray & | LGADCThresh | ||
) |
void ZDCDataAnalyzer::enablePostExclusion | ( | unsigned int | maxSamplesExcl, |
unsigned int | HGADCThresh, | ||
unsigned int | LGADCThresh | ||
) |
Definition at line 162 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::enablePreExclusion | ( | unsigned int | maxSamplesExcl, |
const ZDCModuleIntArray & | HGADCThresh, | ||
const ZDCModuleIntArray & | LGADCThresh | ||
) |
void ZDCDataAnalyzer::enablePreExclusion | ( | unsigned int | maxSamplesExcl, |
unsigned int | HGADCThresh, | ||
unsigned int | LGADCThresh | ||
) |
Definition at line 144 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::enableRepass | ( | const ZDCModuleFloatArray & | peak2ndDerivMinRepassHG, |
const ZDCModuleFloatArray & | peak2ndDerivMinRepassLG | ||
) |
Definition at line 172 of file ZDCDataAnalyzer.cxx.
bool ZDCDataAnalyzer::FinishEvent | ( | ) |
Definition at line 492 of file ZDCDataAnalyzer.cxx.
|
inline |
Definition at line 119 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 113 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 114 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 130 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 122 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 126 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 127 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 124 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 107 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 128 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 109 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 110 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 117 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 123 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 132 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 111 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 115 of file ZDCDataAnalyzer.h.
void ZDCDataAnalyzer::LoadAndAnalyzeData | ( | size_t | side, |
size_t | module, | ||
const std::vector< float > & | HGSamples, | ||
const std::vector< float > & | LGSamples | ||
) |
Definition at line 430 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::LoadAndAnalyzeData | ( | size_t | side, |
size_t | module, | ||
const std::vector< float > & | HGSamples, | ||
const std::vector< float > & | LGSamples, | ||
const std::vector< float > & | HGSamplesDelayed, | ||
const std::vector< float > & | LGSamplesDelayed | ||
) |
Definition at line 456 of file ZDCDataAnalyzer.cxx.
|
inline |
Definition at line 182 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 190 of file ZDCDataAnalyzer.h.
|
inline |
Definition at line 105 of file ZDCDataAnalyzer.h.
void ZDCDataAnalyzer::set2ndDerivStep | ( | size_t | step | ) |
Definition at line 182 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetADCOverUnderflowValues | ( | const ZDCModuleFloatArray & | HGOverflowADC, |
const ZDCModuleFloatArray & | HGUnderflowADC, | ||
const ZDCModuleFloatArray & | LGOverflowADC | ||
) |
Definition at line 282 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetCutValues | ( | const ZDCModuleFloatArray & | chisqDivAmpCutHG, |
const ZDCModuleFloatArray & | chisqDivAmpCutLG, | ||
const ZDCModuleFloatArray & | deltaT0MinHG, | ||
const ZDCModuleFloatArray & | deltaT0MaxHG, | ||
const ZDCModuleFloatArray & | deltaT0MinLG, | ||
const ZDCModuleFloatArray & | deltaT0MaxLG | ||
) |
Definition at line 292 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetFitMinMaxAmpValues | ( | const ZDCModuleFloatArray & | minAmpHG, |
const ZDCModuleFloatArray & | minAmpLG, | ||
const ZDCModuleFloatArray & | maxAmpHG, | ||
const ZDCModuleFloatArray & | maxAmpLG | ||
) |
Definition at line 261 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetFitMinMaxAmpValues | ( | float | minHG, |
float | minLG, | ||
float | maxHG, | ||
float | maxLG | ||
) |
Definition at line 273 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetFitTimeMax | ( | float | tmax | ) |
Definition at line 218 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetGainFactorsHGLG | ( | const ZDCModuleFloatArray & | gainFactorsHG, |
const ZDCModuleFloatArray & | gainFactorsLG | ||
) |
void ZDCDataAnalyzer::SetGainFactorsHGLG | ( | float | gainFactorHG, |
float | gainFactorLG | ||
) |
Definition at line 191 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetModuleAmpFractionLG | ( | const ZDCDataAnalyzer::ZDCModuleFloatArray & | moduleAmpFractionLG | ) |
Definition at line 253 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetNoiseSigmas | ( | const ZDCModuleFloatArray & | noiseSigmasHG, |
const ZDCModuleFloatArray & | noiseSigmasLG | ||
) |
void ZDCDataAnalyzer::SetNonlinCorrParams | ( | float | refADC, |
float | refScale, | ||
const std::array< std::array< std::vector< float >, 4 >, 2 > & | HGNonlinCorrParams, | ||
const std::array< std::array< std::vector< float >, 4 >, 2 > & | LHGNonlinCorrParams | ||
) |
Definition at line 318 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetPeak2ndDerivMinTolerances | ( | size_t | tolerance | ) |
Definition at line 209 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetSaveFitFunc | ( | bool | save | ) |
Definition at line 227 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetTauT0Values | ( | const ZDCModuleBoolArray & | fxiTau1, |
const ZDCModuleBoolArray & | fxiTau2, | ||
const ZDCModuleFloatArray & | tau1, | ||
const ZDCModuleFloatArray & | tau2, | ||
const ZDCModuleFloatArray & | t0HG, | ||
const ZDCModuleFloatArray & | t0LG | ||
) |
Definition at line 232 of file ZDCDataAnalyzer.cxx.
void ZDCDataAnalyzer::SetTimingCorrParams | ( | ZDCPulseAnalyzer::TimingCorrMode | mode, |
float | refADC, | ||
float | refScale, | ||
const std::array< std::array< std::vector< float >, 4 >, 2 > & | HGParamArr, | ||
const std::array< std::array< std::vector< float >, 4 >, 2 > & | LGParamArr | ||
) |
Definition at line 305 of file ZDCDataAnalyzer.cxx.
|
inline |
Definition at line 120 of file ZDCDataAnalyzer.h.
void ZDCDataAnalyzer::StartEvent | ( | int | lumiBlock | ) |
Definition at line 342 of file ZDCDataAnalyzer.cxx.
|
private |
Definition at line 78 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 66 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 76 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 74 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 75 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 67 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 56 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 55 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 57 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 58 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 60 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 36 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 29 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 41 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 79 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 31 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 46 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 49 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 43 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 47 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 32 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 81 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 39 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 38 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 63 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 65 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 69 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 72 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 70 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 71 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 27 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 28 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 44 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 30 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 34 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 50 of file ZDCDataAnalyzer.h.
|
private |
Definition at line 51 of file ZDCDataAnalyzer.h.