R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
NeulandSimCalData.h
Go to the documentation of this file.
1#pragma once
2
3#include "R3BShared.h"
4#include "TObject.h"
5#include <Rtypes.h>
6#include <fmt/core.h>
7
8namespace R3B::Neuland
9{
10 struct SimCalData : public TObject
11 {
12 int module_id{}; // ns
15 SimCalData() = default;
16 SimCalData(int paddle_id, double totL, double totR, double tleL, double tleR)
17 : module_id{ paddle_id }
18 , leading_time{ tleL, tleR }
19 , time_over_thresh{ totL, totR }
20 {
21 }
23 };
24} // namespace R3B::Neuland
25
26template <>
27class fmt::formatter<R3B::Neuland::SimCalData>
28{
29 public:
30 static constexpr auto parse(format_parse_context& ctx) { return ctx.end(); }
31 template <typename FmtContent>
32 constexpr auto format(const R3B::Neuland::SimCalData& cal_data, FmtContent& ctn) const
33 {
34 return format_to(ctn.out(),
35 "{{module_id: {}, leading_time: {}, time_over_thresh: {}}}",
36 cal_data.module_id,
37 cal_data.leading_time,
38 cal_data.time_over_thresh);
39 }
40};
constexpr auto format(const R3B::Neuland::SimCalData &cal_data, FmtContent &ctn) const
static constexpr auto parse(format_parse_context &ctx)
Simulation of NeuLAND Bar/Paddle.
SimCalData(int paddle_id, double totL, double totR, double tleL, double tleR)
ClassDefNV(SimCalData, 3)
LRPair< double > leading_time
LRPair< double > time_over_thresh