3#ifndef EICD_TrackPoint_H
4#define EICD_TrackPoint_H
8#include "edm4hep/Vector3f.h"
11#ifdef PODIO_JSON_OUTPUT
12#include "nlohmann/json.hpp"
40 o << value.
time <<
" ";
42 o << value.
theta <<
" ";
43 o << value.
phi <<
" ";
51#ifdef PODIO_JSON_OUTPUT
52inline void to_json(nlohmann::json& j,
const TrackPoint& value) {
54 {
"position", value.position}
55 ,{
"positionError", value.positionError}
56 ,{
"momentum", value.momentum}
57 ,{
"momentumError", value.momentumError}
59 ,{
"timeError", value.timeError}
60 ,{
"theta", value.theta}
62 ,{
"directionError", value.directionError}
63 ,{
"pathlength", value.pathlength}
64 ,{
"pathlengthError", value.pathlengthError}
Definition: TrackPoint.h:18
::edm4hep::Vector3f position
Position of the trajectory point [mm].
Definition: TrackPoint.h:20
float pathlength
Pathlength from the origin to this point.
Definition: TrackPoint.h:29
::edm4hep::Vector3f momentum
3-momentum at the point [GeV]
Definition: TrackPoint.h:22
float pathlengthError
Error on the pathlenght.
Definition: TrackPoint.h:30
float phi
azimuthal direction of the track at the surface [rad]
Definition: TrackPoint.h:27
::eicd::Cov2f directionError
Error on the polar and azimuthal angles.
Definition: TrackPoint.h:28
float theta
polar direction of the track at the surface [rad]
Definition: TrackPoint.h:26
::eicd::Cov3f momentumError
Error on the 3-momentum.
Definition: TrackPoint.h:23
float time
Time at this point [ns].
Definition: TrackPoint.h:24
float timeError
Error on the time at this point.
Definition: TrackPoint.h:25
::eicd::Cov3f positionError
Error on the position.
Definition: TrackPoint.h:21
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93