CbmRoot
Loading...
Searching...
No Matches
data/sts/Hit.h
Go to the documentation of this file.
1/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer] */
4
5#ifndef CBM_ALGO_DATA_STS_HIT_H
6#define CBM_ALGO_DATA_STS_HIT_H
7
8#include "Definitions.h"
9
10#include <boost/serialization/access.hpp>
11
12namespace cbm::algo::sts
13{
14
15 struct Hit {
24
27
28 // Interface for tracking
29 real X() const { return fX; }
30 real Y() const { return fY; }
31 real Z() const { return fZ; }
32 u32 Time() const { return fTime; }
33
34 real Dx() const { return fDx; }
35 real Dy() const { return fDy; }
36 real TimeError() const { return fTimeError; }
37
38 private: // serialization
40
41 template<class Archive>
42 void serialize(Archive& ar, unsigned int /*version*/)
43 {
44 ar& fX;
45 ar& fY;
46 ar& fZ;
47 ar& fTime;
48 ar& fDx;
49 ar& fDy;
50 ar& fDxy;
51 ar& fTimeError;
52 ar& fDu;
53 ar& fDv;
54
57 }
58 };
59
60} // namespace cbm::algo::sts
61
62#endif // CBM_ALGO_DATA_STS_HIT_H
std::uint32_t u32
Definition Definitions.h:21
real fDxy
XY correlation.
real fDy
X, Y errors [cm].
real fDv
Error of coordinate across back-side strips [cm].
u32 fBackClusterId
Index of back-side cluster, used by tracking to reduce combinatorics.
real fY
X, Y positions of hit [cm].
real fTimeError
Error of hit time [ns].
real TimeError() const
real fZ
Z position of hit [cm].
u32 fFrontClusterId
Index of front-side cluster, used by tracking to reduce combinatorics.
u32 fTime
Hit time [ns].
void serialize(Archive &ar, unsigned int)
friend class boost::serialization::access
real fDu
Error of coordinate across front-side strips [cm].