Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Detectors/Upgrades/ALICE3/TRK/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

o2_add_library(TRKBase
SOURCES src/GeometryTGeo.cxx
src/AlmiraParam.cxx
src/TRKBaseParam.cxx
src/SegmentationChip.cxx
PUBLIC_LINK_LIBRARIES O2::DetectorsBase)

o2_target_root_dictionary(TRKBase
HEADERS include/TRKBase/GeometryTGeo.h
HEADERS include/TRKBase/AlmiraParam.h
include/TRKBase/GeometryTGeo.h
include/TRKBase/TRKBaseParam.h
include/TRKBase/SegmentationChip.h)
include/TRKBase/SegmentationChip.h)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#ifndef O2_TRK_ALMIRAPARAM_H
#define O2_TRK_ALMIRAPARAM_H

#include "CommonConstants/LHCConstants.h"
#include "CommonUtils/ConfigurableParam.h"
#include "CommonUtils/ConfigurableParamHelper.h"

namespace o2
{
namespace trk
{
constexpr float DEFAlmiraStrobeDelay = 0.f; ///< default strobe delay in ns wrt ROF start, to be tuned with the real chip response

struct AlmiraParam : public o2::conf::ConfigurableParamHelper<AlmiraParam> {
int roFrameLengthInBC = o2::constants::lhc::LHCMaxBunches / 198; ///< ROF length in BC for continuous mode
float strobeDelay = DEFAlmiraStrobeDelay; ///< strobe start in ns wrt ROF start
float strobeLengthCont = -1.; ///< if < 0, full ROF length minus delay
int roFrameBiasInBC = 0; ///< ROF start bias in BC wrt orbit start

O2ParamDef(AlmiraParam, "TRKAlmiraParam");
};

} // namespace trk

namespace framework
{
template <typename T>
struct is_messageable;

template <>
struct is_messageable<o2::trk::AlmiraParam> : std::true_type {
};
} // namespace framework

} // namespace o2

#endif
14 changes: 14 additions & 0 deletions Detectors/Upgrades/ALICE3/TRK/base/src/AlmiraParam.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

#include "TRKBase/AlmiraParam.h"

O2ParamImpl(o2::trk::AlmiraParam);
4 changes: 3 additions & 1 deletion Detectors/Upgrades/ALICE3/TRK/base/src/TRKBaseLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
#pragma link off all classes;
#pragma link off all functions;

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

#pragma link C++ class o2::trk::AlmiraParam + ;
#pragma link C++ class o2::trk::GeometryTGeo +
#pragma link C++ class o2::trk::TRKBaseParam + ;
#pragma link C++ class o2::trk::SegmentationChip + ;

#endif
#endif
12 changes: 12 additions & 0 deletions Detectors/Upgrades/ALICE3/TRK/macros/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.


o2_add_test_root_macro(CheckBandwidth.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTBase
O2::ITSMFTSimulation
O2::TRKBase
O2::TRKSimulation
O2::MathUtils
O2::SimulationDataFormat
O2::DetectorsBase
O2::Steer
LABELS trk COMPILE_ONLY)

o2_add_test_root_macro(CheckDigits.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTBase
O2::ITSMFTSimulation
Expand Down
Loading