Project
Loading...
Searching...
No Matches
TriggerOffsetsParam.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_CTP_TRIGGER_OFFSETS_PARAM_H_
13#define _ALICEO2_CTP_TRIGGER_OFFSETS_PARAM_H_
14
17
19
20namespace o2
21{
22namespace ctp
23{
24struct TriggerOffsetsParam : public o2::conf::ConfigurableParamHelper<TriggerOffsetsParam> {
25 static constexpr int MaxNDet = 32; // take with margin to account for possible changes / upgrades
26 int64_t LM_L0 = 15;
27 int64_t L0_L1 = 281; // trigger input latency
28 int64_t globalInputsShift = 0; // Global shift of inps; customOffset[CTP] is global shift of classes
29 int64_t customOffset[MaxNDet] = {};
30 int64_t L0_L1_classes = 280; // trigger input latency
31 O2ParamDef(TriggerOffsetsParam, "TriggerOffsetsParam"); // boilerplate stuff + make principal key
32};
33} // namespace ctp
34
35namespace framework
36{
37template <typename T>
38struct is_messageable;
39template <>
40struct is_messageable<o2::ctp::TriggerOffsetsParam> : std::true_type {
41};
42} // namespace framework
43
44} // namespace o2
45
46#endif // _ALICEO2_CTP_TRIGGER_OFFSETS_RARAM_H_
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
O2ParamDef(TriggerOffsetsParam, "TriggerOffsetsParam")