Project
Loading...
Searching...
No Matches
AlmiraParam.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_TRK_ALMIRAPARAM_H
13#define O2_TRK_ALMIRAPARAM_H
14
15#include <algorithm>
16
20#include "TRKBase/Specs.h"
21
22namespace o2
23{
24namespace trk
25{
26
27struct AlmiraParam : public o2::conf::ConfigurableParamHelper<AlmiraParam> {
28 // This should be part of geometryTGeo
30 static constexpr size_t getNLayers() { return kNLayers; }
31
37
38 int getROFLengthInBC(int layer) const
39 {
42 } else {
44 }
45 }
46 float getStrobeDelay(int layer) const { return strobeDelayPerLayer[layer]; }
50
51 O2ParamDef(AlmiraParam, "TRKAlmiraParam");
52};
53
54} // namespace trk
55
56namespace framework
57{
58template <typename T>
59struct is_messageable;
60
61template <>
62struct is_messageable<o2::trk::AlmiraParam> : std::true_type {
63};
64} // namespace framework
65
66} // namespace o2
67
68#endif
Header to collect LHC related constants.
specs of the ALICE3 TRK
GLenum GLuint GLint GLint layer
Definition glcorearb.h:1310
constexpr int LHCMaxBunches
constexpr int nLayers
Definition Specs.h:105
constexpr int nLayers
Definition Specs.h:123
constexpr int nLayers
Definition Specs.h:47
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
O2ParamDef(AlmiraParam, "TRKAlmiraParam")
int roFrameBiasInBCPerLayer[kNLayers]
ROF start bias in BC per layer.
Definition AlmiraParam.h:35
static constexpr size_t getNLayers()
Definition AlmiraParam.h:30
float strobeLengthContPerLayer[kNLayers]
strobe length in ns per layer
Definition AlmiraParam.h:34
int getROFBiasInBC(int layer) const
Definition AlmiraParam.h:48
int getROFDelayInBC(int layer) const
Definition AlmiraParam.h:49
float getStrobeLengthCont(int layer) const
Definition AlmiraParam.h:47
int getROFLengthInBC(int layer) const
Definition AlmiraParam.h:38
int roFrameLengthInBCPerLayer[kNLayers]
ROF length in BC per layer.
Definition AlmiraParam.h:32
static constexpr size_t kNLayers
Definition AlmiraParam.h:29
int roFrameDelayInBCPerLayer[kNLayers]
extra ROF delay in BC per layer
Definition AlmiraParam.h:36
float getStrobeDelay(int layer) const
Definition AlmiraParam.h:46
float strobeDelayPerLayer[kNLayers]
strobe delay in ns per layer
Definition AlmiraParam.h:33