ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimTrackPars.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGFPGATrackSimOBJECTS_FPGATrackSimTRACKPARS_H
6#define TRIGFPGATrackSimOBJECTS_FPGATrackSimTRACKPARS_H
7
8
15
16
17#include <string>
18#include <iostream>
19#include <cmath>
20
22{
23public:
24 double phi;
25 double qOverPt;
26 double d0;
27 double z0;
28 double eta;
29
31 // Methods
32
33 FPGATrackSimTrackPars(double init = std::nan("")) :
34 phi(init),
35 qOverPt(init),
36 d0(init),
37 z0(init),
38 eta(init)
39 {
40 }
41 const double& operator[](unsigned i) const;
42 double& operator[](unsigned i);
43
45 // Statics
46
47 friend std::ostream& operator<<(std::ostream& os, const FPGATrackSimTrackPars& pars);
48
50 static std::string parName(unsigned i);
51};
52
53
54// Useful to store bin numbers, i.e.
56{
57public:
58 int phi;
60 int d0;
61 int z0;
62 int eta;
63
64 const int& operator[](unsigned i) const;
65 int& operator[](unsigned i);
66
67 friend std::ostream& operator<<(std::ostream& os, const FPGATrackSimTrackParsI& pars);
68
69 FPGATrackSimTrackParsI(int init = 0) :
70 phi(init),
71 qOverPt(init),
72 d0(init),
73 z0(init),
74 eta(init)
75 {
76 }
77};
78
79
80
81#endif
friend std::ostream & operator<<(std::ostream &os, const FPGATrackSimTrackParsI &pars)
const int & operator[](unsigned i) const
static std::string parName(unsigned i)
friend std::ostream & operator<<(std::ostream &os, const FPGATrackSimTrackPars &pars)
const double & operator[](unsigned i) const
FPGATrackSimTrackPars(double init=std::nan(""))