CMS 3D CMS Logo

TrackPars.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackPars_h
2 #define L1Trigger_TrackFindingTracklet_interface_TrackPars_h
3 
4 namespace trklet {
5 
6  template <class T>
7  class TrackPars {
8  public:
9  TrackPars() = default;
10 
11  TrackPars(T rinv, T phi0, T d0, T t, T z0) {
12  rinv_ = rinv;
13  phi0_ = phi0;
14  d0_ = d0;
15  t_ = t;
16  z0_ = z0;
17  }
18 
19  ~TrackPars() = default;
20 
21  void init(T rinv, T phi0, T d0, T t, T z0) {
22  rinv_ = rinv;
23  phi0_ = phi0;
24  d0_ = d0;
25  t_ = t;
26  z0_ = z0;
27  }
28 
29  const T& rinv() const { return rinv_; }
30  const T& phi0() const { return phi0_; }
31  const T& d0() const { return d0_; }
32  const T& t() const { return t_; }
33  const T& z0() const { return z0_; }
34 
35  T& rinv() { return rinv_; }
36  T& phi0() { return phi0_; }
37  T& d0() { return d0_; }
38  T& t() { return t_; }
39  T& z0() { return z0_; }
40 
41  private:
44  T d0_;
45  T t_;
46  T z0_;
47  };
48 
49 }; // namespace trklet
50 #endif
trklet::TrackPars::phi0_
T phi0_
Definition: TrackPars.h:43
trklet::TrackPars::d0
T & d0()
Definition: TrackPars.h:37
trklet::TrackPars::d0_
T d0_
Definition: TrackPars.h:44
trklet::TrackPars::t_
T t_
Definition: TrackPars.h:45
trklet::TrackPars::t
const T & t() const
Definition: TrackPars.h:32
trklet::TrackPars::d0
const T & d0() const
Definition: TrackPars.h:31
trklet::TrackPars::rinv_
T rinv_
Definition: TrackPars.h:42
trklet::TrackPars::t
T & t()
Definition: TrackPars.h:38
trklet::TrackPars::rinv
T & rinv()
Definition: TrackPars.h:35
trklet::TrackPars::phi0
T & phi0()
Definition: TrackPars.h:36
trklet::TrackPars::~TrackPars
~TrackPars()=default
trklet::TrackPars::z0_
T z0_
Definition: TrackPars.h:46
trklet::TrackPars
Definition: TrackPars.h:7
trklet::TrackPars::init
void init(T rinv, T phi0, T d0, T t, T z0)
Definition: TrackPars.h:21
trklet
Definition: AllInnerStubsMemory.h:10
trklet::TrackPars::z0
const T & z0() const
Definition: TrackPars.h:33
trklet::TrackPars::rinv
const T & rinv() const
Definition: TrackPars.h:29
trklet::TrackPars::z0
T & z0()
Definition: TrackPars.h:39
T
long double T
Definition: Basic3DVectorLD.h:48
trklet::TrackPars::phi0
const T & phi0() const
Definition: TrackPars.h:30
trklet::TrackPars::TrackPars
TrackPars(T rinv, T phi0, T d0, T t, T z0)
Definition: TrackPars.h:11
trklet::TrackPars::TrackPars
TrackPars()=default