R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandHit2.h
Go to the documentation of this file.
1#pragma once
2
3#include "R3BValueError.h"
4#include <Rtypes.h>
5#include <fmt/base.h>
6#include <root/Math/Vector3D.h> // IWYU pragma: keep
7#include <root/Math/Vector3Dfwd.h>
8
9namespace R3B::Neuland
10{
12 ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<ValueErrorD>, ROOT::Math::DefaultCoordinateSystemTag>;
26} // namespace R3B::Neuland
27
29
30#ifndef __CLING__
31template <>
32class fmt::formatter<R3B::Neuland::Hit>
33{
34 public:
35 static constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.end(); }
36 template <typename FmtContent>
37 constexpr auto format(const R3B::Neuland::Hit& hit, FmtContent& ctn) const
38 {
39 return fmt::format_to(
40 ctn.out(),
41 "{{module_id: {}, left_tdc: {}, right_tdc: {}, time: {} ns, left_qdc: {}, right_qdc: {}, energy: "
42 "{} MeV, position: {} cm, pixel: {}}}",
43 hit.module_id,
44 hit.tdc_left,
45 hit.tdc_right,
46 hit.time,
47 hit.qdc_left,
48 hit.qdc_right,
49 hit.energy,
50 hit.position,
51 hit.pixel);
52 }
53};
54#endif
R3B::Neuland::Hit R3BNeulandHit2
static constexpr auto parse(fmt::format_parse_context &ctx)
constexpr auto format(const R3B::Neuland::Hit &hit, FmtContent &ctn) const
Simulation of NeuLAND Bar/Paddle.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< ValueErrorD >, ROOT::Math::DefaultCoordinateSystemTag > XYZVectorValueErrorD
ValueError< double > ValueErrorD
XYZVectorValueErrorD position
ValueErrorD qdc_right
ROOT::Math::XYZVectorD pixel
ValueErrorD tdc_left
ValueErrorD tdc_right
ValueErrorD qdc_left