Project
Loading...
Searching...
No Matches
CPVCalibParams.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_CPV_CPVCALIBPARAMS_H_
13#define O2_CPV_CPVCALIBPARAMS_H_
14
18
19namespace o2
20{
21namespace cpv
22{
23// parameters used in responce calculation and digitization
24// (mostly used in GEANT stepping and Digitizer)
25struct CPVCalibParams : public o2::conf::ConfigurableParamHelper<CPVCalibParams> {
26
27 // Parameters used in pedestal calibration
28 uint16_t pedToleratedGapWidth = 5;
29 uint32_t pedMinEvents = 100;
31 float pedZSnSigmas = 3.;
32
33 // Parameters used in noise scan calibration
34 uint32_t noiseMinEvents = 100;
37 uint16_t noiseThreshold = 10;
39
40 // Parameters used in gain calibration
41 uint32_t gainMinEvents = 1000;
43 float gainDesiredLandauMPV = 200.;
45 float gainMinAllowedCoeff = 0.1;
46 float gainMaxAllowedCoeff = 10.;
47 float gainFitRangeL = 10.;
48 float gainFitRangeR = 1000.;
49 unsigned char gainMinClusterMultForCalib = 3;
50 unsigned char gainMaxClusterMultForCalib = 15;
52
53 O2ParamDef(CPVCalibParams, "CPVCalibParams");
54};
55} // namespace cpv
56
57namespace framework
58{
59template <typename T>
60struct is_messageable;
61template <>
62struct is_messageable<o2::cpv::CPVCalibParams> : std::true_type {
63};
64} // namespace framework
65
66} // namespace o2
67
68#endif /* O2_CPV_CPVCALIBPARAMS_H_ */
Definition of the Names Generator class.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
uint32_t pedMinEvents
Minimal number of events to produce calibration.
O2ParamDef(CPVCalibParams, "CPVCalibParams")
uint32_t gainMinEvents
Minimal number of events to produce calibration in one channel.
float noiseToleratedChannelEfficiencyLow
Tolerated channel efficiency (lower limit)
float gainToleratedChi2PerNDF
Tolerated max Chi2 of the fit.
uint16_t pedToleratedGapWidth
Tolerated gap between bins: if |bin1 - bin2| < width -> bin1 and bin2 belongs to same peak.
float pedSuspiciousPedestalRMS
Take additional care for channel if its RMS > mPedSuspiciousPedestalRMS.
float pedZSnSigmas
Zero Suppression threshold.
uint32_t gainMinNChannelsToCalibrate
Minimal number of channels ready to be calibrated to produce calibration.
float gainMaxAllowedCoeff
Max value of gain coeff.
float noiseFrequencyCriteria
Appearance frequency of noisy channels.
unsigned char gainMinClusterMultForCalib
Min cluster multiplicity for calibration digit production.
unsigned char gainMaxClusterMultForCalib
Max cluster multiplicity for calibration digit production.
uint16_t noiseThreshold
ADC threshold.
float noiseToleratedChannelEfficiencyHigh
Tolerated channel efficiency (upper limit)
float gainDesiredLandauMPV
Desired LandauMPV of the spectrum: gain coeff = 200./(max Ampl of the cluster)
float gainFitRangeL
Fit range of amplitude spectrum (left)
float gainFitRangeR
Fit range of amplitude spectrum (right)
uint32_t noiseMinEvents
Minimal number of events to produce calibration.
float gainMinAllowedCoeff
Min value of gain coeff.
uint32_t gainCheckForCalibrationInterval
Check interval (in TFs) if statistics is enough.