CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KinematicParameters.h
Go to the documentation of this file.
1 #ifndef KinematicParameters_H
2 #define KinematicParameters_H
3 
7 
17 
18 public:
19 
20  typedef ROOT::Math::SVector<double,7> AlgebraicVector7;
21 
23 
25  {}
26 
32  AlgebraicVector7 const & vector() const {return par;}
33 
39  double operator()(const int i) const {return par(i);}
40 
44  GlobalVector momentum() const;
45 
49  GlobalPoint position() const;
50 
54  double mass() const {return par(6);}
55 
59  double energy() const;
60 
61  bool isValid() const
62  {return vl;}
63 
64 private:
66  bool vl;
67 };
68 
69 
70 #endif
int i
Definition: DBlmapReader.cc:9
AlgebraicVector7 const & vector() const
The full vector (7 elements)
AlgebraicVector7 par
double operator()(const int i) const
Allows to access directly one component of the vector (index between 0 and 6)
double energy() const
ROOT::Math::SVector< double, 7 > AlgebraicVector7
GlobalPoint position() const
GlobalVector momentum() const
KinematicParameters(const AlgebraicVector7 &pr)