Project
Loading...
Searching...
No Matches
RecoParamZDC.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_ZDC_RECOPARAMZDC_H
13#define O2_ZDC_RECOPARAMZDC_H
14
17#include "ZDCBase/Constants.h"
18
22
23namespace o2
24{
25namespace zdc
26{
27struct RecoParamZDC : public o2::conf::ConfigurableParamHelper<RecoParamZDC> {
28 // Trigger
29 int32_t tsh[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Trigger shift
30 int32_t tth[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Trigger threshold
31 bool bitset[NTDCChannels] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; // Set bits in coincidence
32 void setBit(uint32_t ibit, bool val = true);
33 uint8_t triggerCondition = 0x0; // Trigger condition: 0x1 single, 0x3 double and 0x7 triple
34
35 // Signal processing
36 int low_pass_filter = -1; // Low pass filtering
37 int full_interpolation = -1; // Full interpolation of waveform
38 int full_interpolation_min_length = -1; // Minimum length to perform full interpolation
39 int corr_signal = -1; // TDC signal correction
40 int corr_background = -1; // TDC pile-up correction
41
42 int debug_output = -1; // Debug output
43
44 // TDC
45 int32_t tmod[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Position of TDC channel in raw data
46 int32_t tch[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Position of TDC channel in raw data
47 float tdc_shift[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Correction of TDC position (0-25 ns, units of ~10 ps)
48 float tdc_calib[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Correction of TDC amplitude
49 float tdc_search[NTDCChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Search zone for a TDC signal ideally 2.5 ns (units of ~10 ps)
50
51 float tdc_offset[NTDCChannels] = {-FInfty, -FInfty, -FInfty, -FInfty, -FInfty, -FInfty, -FInfty, -FInfty, -FInfty, -FInfty}; // Compensation of TDC amplitude offset
52
53 // Enable extended search at beginning of first bunch
54 bool setExtendedSearch = false;
55 bool doExtendedSearch = false;
56
57 // Store events with in-event pile-up
58 bool setStoreEvPileup = false;
59 bool doStoreEvPileup = false;
60
61 // Charge integration
62 int32_t amod[NChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Position of ADC channel in raw data
63 int32_t ach[NChannels] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; // Position of ADC channel in raw data
64 // Beginning and end of integration range: signal
67 // Beginning and end of integration range: pedestal
70 // Pedestal thresholds for pile-up detection
73
74 float energy_calib[NChannels] = {0}; // Energy calibration coefficients
75 // Compensation of ADC offset
77 float tower_calib[NChannels] = {0}; // Tower calibration coefficients
78
79 void print();
80
81 O2ParamDef(RecoParamZDC, "RecoParamZDC");
82};
83} // namespace zdc
84} // namespace o2
85
86#endif
GLuint GLfloat * val
Definition glcorearb.h:1582
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int DummyIntRange
Definition Constants.h:303
constexpr float FInfty
Definition Constants.h:77
constexpr int NTDCChannels
Definition Constants.h:90
constexpr int NChannels
Definition Constants.h:65
constexpr int ADCRange
Definition Constants.h:76
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
int32_t amod[NChannels]
float energy_calib[NChannels]
float tdc_shift[NTDCChannels]
int32_t tmod[NTDCChannels]
float tdc_calib[NTDCChannels]
float ped_thr_hi[NChannels]
float adc_offset[NChannels]
float tdc_offset[NTDCChannels]
int32_t ach[NChannels]
int32_t end_int[NChannels]
void setBit(uint32_t ibit, bool val=true)
bool bitset[NTDCChannels]
float tdc_search[NTDCChannels]
int32_t tsh[NTDCChannels]
int32_t beg_int[NChannels]
float ped_thr_lo[NChannels]
int32_t tth[NTDCChannels]
int32_t end_ped_int[NChannels]
O2ParamDef(RecoParamZDC, "RecoParamZDC")
float tower_calib[NChannels]
int32_t tch[NTDCChannels]
int32_t beg_ped_int[NChannels]