Skip to content

Commit cf5c3cb

Browse files
committed
Add Almira params
1 parent 6593df3 commit cf5c3cb

File tree

4 files changed

+69
-3
lines changed

4 files changed

+69
-3
lines changed

Detectors/Upgrades/ALICE3/TRK/base/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111

1212
o2_add_library(TRKBase
1313
SOURCES src/GeometryTGeo.cxx
14+
src/AlmiraParam.cxx
1415
src/TRKBaseParam.cxx
1516
src/SegmentationChip.cxx
1617
PUBLIC_LINK_LIBRARIES O2::DetectorsBase)
1718

1819
o2_target_root_dictionary(TRKBase
19-
HEADERS include/TRKBase/GeometryTGeo.h
20+
HEADERS include/TRKBase/AlmiraParam.h
21+
include/TRKBase/GeometryTGeo.h
2022
include/TRKBase/TRKBaseParam.h
21-
include/TRKBase/SegmentationChip.h)
23+
include/TRKBase/SegmentationChip.h)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 "CommonConstants/LHCConstants.h"
16+
#include "CommonUtils/ConfigurableParam.h"
17+
#include "CommonUtils/ConfigurableParamHelper.h"
18+
19+
namespace o2
20+
{
21+
namespace trk
22+
{
23+
constexpr float DEFAlmiraStrobeDelay = 0.f; ///< default strobe delay in ns wrt ROF start, to be tuned with the real chip response
24+
25+
struct AlmiraParam : public o2::conf::ConfigurableParamHelper<AlmiraParam> {
26+
int roFrameLengthInBC = o2::constants::lhc::LHCMaxBunches / 198; ///< ROF length in BC for continuous mode
27+
float strobeDelay = DEFAlmiraStrobeDelay; ///< strobe start in ns wrt ROF start
28+
float strobeLengthCont = -1.; ///< if < 0, full ROF length minus delay
29+
int roFrameBiasInBC = 0; ///< ROF start bias in BC wrt orbit start
30+
31+
O2ParamDef(AlmiraParam, "TRKAlmiraParam");
32+
};
33+
34+
} // namespace trk
35+
36+
namespace framework
37+
{
38+
template <typename T>
39+
struct is_messageable;
40+
41+
template <>
42+
struct is_messageable<o2::trk::AlmiraParam> : std::true_type {
43+
};
44+
} // namespace framework
45+
46+
} // namespace o2
47+
48+
#endif
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
#include "TRKBase/AlmiraParam.h"
13+
14+
O2ParamImpl(o2::trk::AlmiraParam);

Detectors/Upgrades/ALICE3/TRK/base/src/TRKBaseLinkDef.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
#pragma link off all classes;
1616
#pragma link off all functions;
1717

18+
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::trk::AlmiraParam> + ;
1819
#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::trk::TRKBaseParam> + ;
1920

21+
#pragma link C++ class o2::trk::AlmiraParam + ;
2022
#pragma link C++ class o2::trk::GeometryTGeo +
2123
#pragma link C++ class o2::trk::TRKBaseParam + ;
2224
#pragma link C++ class o2::trk::SegmentationChip + ;
2325

24-
#endif
26+
#endif

0 commit comments

Comments
 (0)