Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JPoint4E.hh
Go to the documentation of this file.
1#ifndef __JPOINT4E__
2#define __JPOINT4E__
3
4#include "JFit/JPoint4D.hh"
5
6
7/**
8 * \author vcarretero
9 */
10
11namespace JFIT {}
12namespace JPP { using namespace JFIT; }
13
14namespace JFIT {
15
16 using JFIT::JPoint4D;
17
18
19 /**
20 * Data structure for vertex fit.
21 */
22 class JPoint4E :
23 public JPoint4D
24 {
25 public:
26 /**
27 * Default constructor.
28 */
30 JPoint4D(),
31 __E(0.0)
32 {}
33
34
35 /**
36 * Constructor
37 *
38 * \param vertex vertex position and time
39 * \param E issotropic energy
40 */
41 JPoint4E(const JPoint4D& vertex,
42 const double E) :
43 JPoint4D(vertex),
44 __E(E)
45 {}
46
47 /**
48 * Get energy.
49 *
50 * \return energy
51 */
52 inline double getE() const
53 {
54 return __E;
55 }
56
57 /**
58 * Set energy.
59 *
60 * \param E energy
61 */
62 inline void setE(const double E)
63 {
64 __E = E;
65 }
66
67 typedef double JPoint4E::*parameter_type;
68
69 static parameter_type pX() { return &JPoint4E::__x; }
70 static parameter_type pY() { return &JPoint4E::__y; }
71 static parameter_type pZ() { return &JPoint4E::__z; }
72 static parameter_type pT() { return &JPoint4E::__t; }
73 static parameter_type pE() { return &JPoint4E::__E; }
74 protected:
75 double __E;
76 };
77}
78#endif
Data structure for vertex fit.
Definition JPoint4D.hh:24
Data structure for vertex fit.
Definition JPoint4E.hh:24
static parameter_type pZ()
Definition JPoint4E.hh:71
JPoint4E()
Default constructor.
Definition JPoint4E.hh:29
static parameter_type pX()
Definition JPoint4E.hh:69
double JPoint4E::* parameter_type
Definition JPoint4E.hh:67
static parameter_type pY()
Definition JPoint4E.hh:70
static parameter_type pE()
Definition JPoint4E.hh:73
double getE() const
Get energy.
Definition JPoint4E.hh:52
JPoint4E(const JPoint4D &vertex, const double E)
Constructor.
Definition JPoint4E.hh:41
void setE(const double E)
Set energy.
Definition JPoint4E.hh:62
static parameter_type pT()
Definition JPoint4E.hh:72
Auxiliary classes and methods for linear and iterative data regression.
Definition JEnergy.hh:15
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).