Data structure for fit of straight line paralel to z-axis.
More...
#include <JLine1Z.hh>
|
| | JLine1Z () |
| | Default constructor.
|
| |
| | JLine1Z (const JVector3D &pos, const double t) |
| | Constructor.
|
| |
| void | move (const double step, const double velocity) |
| | Move vertex along this line with given velocity.
|
| |
| void | setZ (const double z, const double velocity) |
| | Set z-position of vertex.
|
| |
| double | getDistanceSquared (const JVector3D &pos) const |
| | Get distance squared.
|
| |
| double | getDistance (const JVector3D &pos) const |
| | Get distance.
|
| |
| double | getT (const JVector3D &pos) const |
| | Get arrival time of Cherenkov light at given position.
|
| |
| double | getZ (const JPosition3D &pos) const |
| | Get point of emission of Cherenkov light along muon path.
|
| |
| JVersor3D | getDirection (const JVector3D &pos) const |
| | Get photon direction of Cherenkov light on PMT.
|
| |
| double | getDot (const JAxis3D &axis) const |
| | Get cosine angle of impact of Cherenkov light on PMT.
|
| |
Data structure for fit of straight line paralel to z-axis.
Definition at line 27 of file JLine1Z.hh.
◆ parameter_type
◆ JLine1Z() [1/2]
| JFIT::JLine1Z::JLine1Z |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 39 of file JLine1Z.hh.
39 :
40 JVertex3D()
41 {}
◆ JLine1Z() [2/2]
| JFIT::JLine1Z::JLine1Z |
( |
const JVector3D & | pos, |
|
|
const double | t ) |
|
inline |
Constructor.
- Parameters
-
| pos | position |
| t | time at position |
Definition at line 50 of file JLine1Z.hh.
51 :
52 JVertex3D(pos, t)
53 {}
◆ move()
| void JFIT::JLine1Z::move |
( |
const double | step, |
|
|
const double | velocity ) |
|
inline |
Move vertex along this line with given velocity.
- Parameters
-
| step | step |
| velocity | velocity |
Definition at line 62 of file JLine1Z.hh.
63 {
64 __z += step;
65 __t += step / velocity;
66 }
◆ setZ()
| void JFIT::JLine1Z::setZ |
( |
const double | z, |
|
|
const double | velocity ) |
|
inline |
Set z-position of vertex.
- Parameters
-
| z | z-position |
| velocity | velocity |
Definition at line 75 of file JLine1Z.hh.
76 {
78 }
double getZ(const JPosition3D &pos) const
Get point of emission of Cherenkov light along muon path.
void move(const double step, const double velocity)
Move vertex along this line with given velocity.
◆ getDistanceSquared()
| double JFIT::JLine1Z::getDistanceSquared |
( |
const JVector3D & | pos | ) |
const |
|
inline |
Get distance squared.
- Parameters
-
- Returns
- square of distance
Definition at line 87 of file JLine1Z.hh.
88 {
89 const double dx = pos.getX() - this->getX();
90 const double dy = pos.getY() - this->getY();
91
92 return dx*dx + dy*dy;
93 }
◆ getDistance()
| double JFIT::JLine1Z::getDistance |
( |
const JVector3D & | pos | ) |
const |
|
inline |
Get distance.
- Parameters
-
- Returns
- distance
Definition at line 102 of file JLine1Z.hh.
103 {
105 }
double getDistanceSquared(const JVector3D &pos) const
Get distance squared.
◆ getT()
| double JFIT::JLine1Z::getT |
( |
const JVector3D & | pos | ) |
const |
|
inline |
Get arrival time of Cherenkov light at given position.
- Parameters
-
- Returns
- time [ns]
Definition at line 114 of file JLine1Z.hh.
115 {
117
118 const double dx = pos.getX() - this->getX();
119 const double dy = pos.getY() - this->getY();
120 const double dz = pos.getZ() - this->
getZ();
121
122 const double R = sqrt(dx*dx + dy*dy);
123
124 return this->
getT() + (dz + R * getKappaC()) * getInverseSpeedOfLight();
125 }
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
◆ getZ()
| double JFIT::JLine1Z::getZ |
( |
const JPosition3D & | pos | ) |
const |
|
inline |
Get point of emission of Cherenkov light along muon path.
- Parameters
-
- Returns
- position along muon path
Definition at line 134 of file JLine1Z.hh.
135 {
137
138 return pos.getZ() - this->
getDistance(pos) / getTanThetaC();
139 }
double getDistance(const JVector3D &pos) const
Get distance.
◆ getDirection()
| JVersor3D JFIT::JLine1Z::getDirection |
( |
const JVector3D & | pos | ) |
const |
|
inline |
Get photon direction of Cherenkov light on PMT.
- Parameters
-
- Returns
- direction
Definition at line 148 of file JLine1Z.hh.
149 {
151
152 double dx = pos.getX() - this->getX();
153 double dy = pos.getY() - this->getY();
154
155 const double R = sqrt(dx*dx + dy*dy);
156
157 dx *= getSinThetaC() / R;
158 dy *= getSinThetaC() / R;
159
160 const double dz = getCosThetaC();
161
162 return JVersor3D(dx,dy,dz);
163 }
◆ getDot()
| double JFIT::JLine1Z::getDot |
( |
const JAxis3D & | axis | ) |
const |
|
inline |
Get cosine angle of impact of Cherenkov light on PMT.
- Parameters
-
- Returns
- cosine angle of impact
Definition at line 172 of file JLine1Z.hh.
173 {
174 return getDirection(axis.getPosition()).getDot(axis.getDirection());
175 }
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
◆ pX()
Definition at line 180 of file JLine1Z.hh.
180{ return &JLine1Z::__x; }
◆ pY()
Definition at line 181 of file JLine1Z.hh.
181{ return &JLine1Z::__y; }
◆ pT()
Definition at line 182 of file JLine1Z.hh.
182{ return &JLine1Z::__t; }
The documentation for this class was generated from the following file: