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 double X() const { return fX; }
30 double Y() const { return fY; }
31 double Z() const { return fZ; }
32 double Time() const { return fTime; }
33 double Dx() const { return fDx; }
34 double Dy() const { return fDy; }
35 double TimeError() const { return fTimeError; }
36
37 private: // serialization
39
40 template<class Archive>
41 void serialize(Archive& ar, unsigned int /*version*/)
42 {
43 ar& fX;
44 ar& fY;
45 ar& fZ;
46 ar& fTime;
47 ar& fDx;
48 ar& fDy;
49 ar& fDxy;
50 ar& fTimeError;
51 ar& fDu;
52 ar& fDv;
53
56 }
57 };
58
59} // namespace cbm::algo::sts
60
61#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].
double Y() const
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].
double X() const
double Z() const
real fZ
Z position of hit [cm].
double Dy() const
u32 fFrontClusterId
Index of front-side cluster, used by tracking to reduce combinatorics.
u32 fTime
Hit time [ns].
void serialize(Archive &ar, unsigned int)
double Dx() const
friend class boost::serialization::access
double Time() const
real fDu
Error of coordinate across front-side strips [cm].
double TimeError() const