ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimTrackPars Class Reference

#include <FPGATrackSimTrackPars.h>

Collaboration diagram for FPGATrackSimTrackPars:

Public Types

enum  pars_index {
  IPHI , IHIP , ID0 , IZ0 ,
  IETA , NPARS
}

Public Member Functions

 FPGATrackSimTrackPars (double init=std::nan(""))
const double & operator[] (unsigned i) const
double & operator[] (unsigned i)

Static Public Member Functions

static std::string parName (unsigned i)

Public Attributes

double phi
double qOverPt
double d0
double z0
double eta

Friends

std::ostream & operator<< (std::ostream &os, const FPGATrackSimTrackPars &pars)

Detailed Description

Definition at line 21 of file FPGATrackSimTrackPars.h.

Member Enumeration Documentation

◆ pars_index

Constructor & Destructor Documentation

◆ FPGATrackSimTrackPars()

FPGATrackSimTrackPars::FPGATrackSimTrackPars ( double init = std::nan(""))
inline

Definition at line 33 of file FPGATrackSimTrackPars.h.

Member Function Documentation

◆ operator[]() [1/2]

double & FPGATrackSimTrackPars::operator[] ( unsigned i)

Definition at line 30 of file FPGATrackSimTrackPars.cxx.

31{
32 switch (i)
33 {
34 case 0: return phi;
35 case 1: return qOverPt;
36 case 2: return d0;
37 case 3: return z0;
38 case 4: return eta;
39 default: throw std::out_of_range("FPGATrackSimTrackPars[] out of range");
40 }
41}

◆ operator[]() [2/2]

const double & FPGATrackSimTrackPars::operator[] ( unsigned i) const

Definition at line 16 of file FPGATrackSimTrackPars.cxx.

17{
18 switch (i)
19 {
20 case 0: return phi;
21 case 1: return qOverPt;
22 case 2: return d0;
23 case 3: return z0;
24 case 4: return eta;
25 default: throw std::out_of_range("FPGATrackSimTrackPars[] out of range");
26 }
27}

◆ parName()

std::string FPGATrackSimTrackPars::parName ( unsigned i)
static

Definition at line 72 of file FPGATrackSimTrackPars.cxx.

73{
74 switch (i)
75 {
76 case 0: return "phi";
77 case 1: return "qOverPt";
78 case 2: return "d0";
79 case 3: return "z0";
80 case 4: return "eta";
81 default: throw std::out_of_range("FPGATrackSimTrackPars::parName out of range");
82 }
83}

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const FPGATrackSimTrackPars & pars )
friend

Definition at line 85 of file FPGATrackSimTrackPars.cxx.

86{
87 os << "phi:" << pars.phi
88 << " q/pt:" << pars.qOverPt
89 << " d0:" << pars.d0
90 << " z0:" << pars.z0
91 << " eta:" << pars.eta;
92 return os;
93}

Member Data Documentation

◆ d0

double FPGATrackSimTrackPars::d0

Definition at line 26 of file FPGATrackSimTrackPars.h.

◆ eta

double FPGATrackSimTrackPars::eta

Definition at line 28 of file FPGATrackSimTrackPars.h.

◆ phi

double FPGATrackSimTrackPars::phi

Definition at line 24 of file FPGATrackSimTrackPars.h.

◆ qOverPt

double FPGATrackSimTrackPars::qOverPt

Definition at line 25 of file FPGATrackSimTrackPars.h.

◆ z0

double FPGATrackSimTrackPars::z0

Definition at line 27 of file FPGATrackSimTrackPars.h.


The documentation for this class was generated from the following files: