CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
~TrackPars()=default
const T & phi0() const
Definition: TrackPars.h:30
TrackPars(T rinv, T phi0, T d0, T t, T z0)
Definition: TrackPars.h:11
TrackPars()=default
const T & d0() const
Definition: TrackPars.h:31
const T & t() const
Definition: TrackPars.h:32
const T & rinv() const
Definition: TrackPars.h:29
long double T
const T & z0() const
Definition: TrackPars.h:33
void init(T rinv, T phi0, T d0, T t, T z0)
Definition: TrackPars.h:21