Project
Loading...
Searching...
No Matches
SimCondition.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 ALICEO2_ZDC_SIMCONFIG_H
13#define ALICEO2_ZDC_SIMCONFIG_H
14
15#include "ZDCBase/Constants.h"
16#include <Rtypes.h>
17#include <array>
18
19namespace o2
20{
21namespace zdc
22{
23
25 using Histo = std::vector<float>;
26 // Note: we don't use here correct BC spacing.
27 // Shapes were measured with digitizer synchronized to a 100 MHz clock
28 // As soon as we will have shapes acquired with the production digitizer we
29 // will need to replace 25 with o2::constants::lhc::LHCBunchSpacingNS -> Done on 220609
31 static constexpr float ShapeBinWidthInv = 1. / ShapeBinWidth;
32
34 int ampMinID = 0;
35 float pedestal = 0.f;
36 float pedestalNoise = 0.f;
37 float pedestalFluct = 0.f;
38 float gain = 0.f;
39 float gainInSum = 1.f;
40 float timeJitter = 0.f; // in ns
41 float timePosition = 0.f; // in ns
42
43 void print() const;
45};
46
48
49 std::array<ChannelSimCondition, NChannels> channels; // configuration per channel
50
51 void print() const;
52
54};
55
56}; // namespace zdc
57} // namespace o2
58
59#endif
constexpr double LHCBunchSpacingNS
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NTimeBinsPerBC
Definition Constants.h:53
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float gain
Baseline oscillations (low frequency)
std::vector< float > Histo
float pedestalNoise
Average baseline.
static constexpr float ShapeBinWidthInv
static constexpr float ShapeBinWidth
ClassDefNV(ChannelSimCondition, 2)
float pedestalFluct
Baseline noise (high frequency)
ClassDefNV(SimCondition, 2)
std::array< ChannelSimCondition, NChannels > channels