|
| 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 |
0 commit comments