Data structure for track fit results.
More...
#include <JEvt.hh>
|
| JFit () |
| Default constructor. More...
|
|
| JFit (const JHistory &history, const double x, const double y, const double z, const double dx, const double dy, const double dz, const double t, const double Q, const int NDF, const double E=0.0, const int status=-1) |
| Constructor. More...
|
|
| JFit (const JHistory &history, const double x, const double y, const double z, const int status=-1) |
| Constructor for storing position only. More...
|
|
JFit & | add (const int type) |
| Add event to history. More...
|
|
double | getX () const |
| Get X-position. More...
|
|
double | getY () const |
| Get Y-position. More...
|
|
double | getZ () const |
| Get Z-position. More...
|
|
double | getDX () const |
| Get X-slope. More...
|
|
double | getDY () const |
| Get Y-slope. More...
|
|
double | getDZ () const |
| Get Z-slope. More...
|
|
double | getT () const |
| Get time. More...
|
|
double | getQ () const |
| Get quality. More...
|
|
int | getNDF () const |
| Get number of degrees of freedom. More...
|
|
double | getE () const |
| Get energy. More...
|
|
int | getStatus () const |
| Get status of the fit; negative values should refer to a bad fit. More...
|
|
void | move (const double step, const double velocity) |
| Move vertex along this track with given velocity. More...
|
|
void | setE (const double E) |
| Set energy. More...
|
|
const std::vector< double > & | getW () const |
| Get values. More...
|
|
void | setW (const std::vector< double > &W) |
| Set values. More...
|
|
int | getN () const |
| Get number of values. More...
|
|
bool | hasW (const int i) const |
| Check availability of value. More...
|
|
double | getW (const int i) const |
| Get value. More...
|
|
double | getW (const int i, const double value) const |
| Get value. More...
|
|
void | setW (const int i, const double value) |
| Set value. More...
|
|
| ClassDef (JFit, 5) |
|
const JHistory & | getHistory () const |
| Get history. More...
|
|
JHistory & | getHistory () |
| Get history. More...
|
|
| ClassDef (JHistory, 1) |
|
Data structure for track fit results.
Definition at line 31 of file JEvt.hh.
◆ JFit() [1/3]
Default constructor.
Parameters are initialized with non physical values
Definition at line 40 of file JEvt.hh.
41 __x( -std::numeric_limits<double>::max() ),
42 __y( -std::numeric_limits<double>::max() ),
43 __z( -std::numeric_limits<double>::max() ),
47 __t( -std::numeric_limits<double>::max() ),
48 __Q( -std::numeric_limits<double>::max() ),
◆ JFit() [2/3]
JFIT::JFit::JFit |
( |
const JHistory & |
history, |
|
|
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z, |
|
|
const double |
dx, |
|
|
const double |
dy, |
|
|
const double |
dz, |
|
|
const double |
t, |
|
|
const double |
Q, |
|
|
const int |
NDF, |
|
|
const double |
E = 0.0 , |
|
|
const int |
status = -1 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
history | history |
x | X-position |
y | Y-position |
z | Z-position |
dx | X-slope |
dy | Y-slope |
dz | Z-slope |
t | time |
Q | quality |
NDF | number of degrees of freedom |
E | energy |
status | status |
Definition at line 71 of file JEvt.hh.
◆ JFit() [3/3]
JFIT::JFit::JFit |
( |
const JHistory & |
history, |
|
|
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z, |
|
|
const int |
status = -1 |
|
) |
| |
|
inline |
Constructor for storing position only.
Note that the type of fit can be obtained via the history information.
- Parameters
-
history | history |
x | X-position |
y | Y-position |
z | Z-position |
status | status |
Definition at line 109 of file JEvt.hh.
◆ add()
JFit& JFIT::JFit::add |
( |
const int |
type | ) |
|
|
inline |
Add event to history.
- Parameters
-
- Returns
- this fit
Definition at line 136 of file JEvt.hh.
◆ getX()
double JFIT::JFit::getX |
( |
| ) |
const |
|
inline |
Get X-position.
Definition at line 144 of file JEvt.hh.
◆ getY()
double JFIT::JFit::getY |
( |
| ) |
const |
|
inline |
Get Y-position.
Definition at line 145 of file JEvt.hh.
◆ getZ()
double JFIT::JFit::getZ |
( |
| ) |
const |
|
inline |
Get Z-position.
Definition at line 146 of file JEvt.hh.
◆ getDX()
double JFIT::JFit::getDX |
( |
| ) |
const |
|
inline |
Get X-slope.
Definition at line 147 of file JEvt.hh.
◆ getDY()
double JFIT::JFit::getDY |
( |
| ) |
const |
|
inline |
Get Y-slope.
Definition at line 148 of file JEvt.hh.
◆ getDZ()
double JFIT::JFit::getDZ |
( |
| ) |
const |
|
inline |
Get Z-slope.
Definition at line 149 of file JEvt.hh.
◆ getT()
double JFIT::JFit::getT |
( |
| ) |
const |
|
inline |
◆ getQ()
double JFIT::JFit::getQ |
( |
| ) |
const |
|
inline |
Get quality.
Definition at line 151 of file JEvt.hh.
◆ getNDF()
int JFIT::JFit::getNDF |
( |
| ) |
const |
|
inline |
Get number of degrees of freedom.
Definition at line 152 of file JEvt.hh.
◆ getE()
double JFIT::JFit::getE |
( |
| ) |
const |
|
inline |
Get energy.
Definition at line 153 of file JEvt.hh.
◆ getStatus()
int JFIT::JFit::getStatus |
( |
| ) |
const |
|
inline |
Get status of the fit; negative values should refer to a bad fit.
Definition at line 154 of file JEvt.hh.
◆ move()
void JFIT::JFit::move |
( |
const double |
step, |
|
|
const double |
velocity |
|
) |
| |
|
inline |
Move vertex along this track with given velocity.
- Parameters
-
step | step |
velocity | velocity |
Definition at line 163 of file JEvt.hh.
168 __t += step / velocity;
◆ setE()
void JFIT::JFit::setE |
( |
const double |
E | ) |
|
|
inline |
Set energy.
- Parameters
-
Definition at line 177 of file JEvt.hh.
◆ getW() [1/3]
Get values.
- Returns
- values
Definition at line 188 of file JEvt.hh.
◆ setW() [1/2]
void JFIT::JFit::setW |
( |
const std::vector< double > & |
W | ) |
|
|
inline |
Set values.
- Parameters
-
Definition at line 199 of file JEvt.hh.
◆ getN()
int JFIT::JFit::getN |
( |
| ) |
const |
|
inline |
Get number of values.
- Returns
- number of values
Definition at line 210 of file JEvt.hh.
◆ hasW()
bool JFIT::JFit::hasW |
( |
const int |
i | ) |
const |
|
inline |
Check availability of value.
- Parameters
-
- Returns
- true if available; else false
Definition at line 222 of file JEvt.hh.
224 return (i >= 0 && i < (
int)
W.size());
◆ getW() [2/3]
double JFIT::JFit::getW |
( |
const int |
i | ) |
const |
|
inline |
Get value.
- Parameters
-
- Returns
- value
Definition at line 234 of file JEvt.hh.
◆ getW() [3/3]
double JFIT::JFit::getW |
( |
const int |
i, |
|
|
const double |
value |
|
) |
| const |
|
inline |
Get value.
- Parameters
-
i | index |
value | default value |
- Returns
- value
Definition at line 247 of file JEvt.hh.
◆ setW() [2/2]
void JFIT::JFit::setW |
( |
const int |
i, |
|
|
const double |
value |
|
) |
| |
|
inline |
Set value.
- Parameters
-
Definition at line 262 of file JEvt.hh.
264 if (i >= (
int)
W.size()) {
265 W.resize(i + 1, 0.0);
◆ ClassDef() [1/2]
JFIT::JFit::ClassDef |
( |
JFit |
, |
|
|
5 |
|
|
) |
| |
◆ getHistory() [1/2]
const JHistory& JFIT::JHistory::getHistory |
( |
| ) |
const |
|
inlineinherited |
Get history.
- Returns
- histtory
Definition at line 225 of file JHistory.hh.
227 return static_cast<const JHistory&>(*
this);
◆ getHistory() [2/2]
JHistory& JFIT::JHistory::getHistory |
( |
| ) |
|
|
inlineinherited |
Get history.
- Returns
- histtory
Definition at line 236 of file JHistory.hh.
238 return static_cast<JHistory&>(*
this);
◆ ClassDef() [2/2]
JFIT::JHistory::ClassDef |
( |
JHistory |
, |
|
|
1 |
|
|
) |
| |
|
inherited |
◆ __x
◆ __y
◆ __z
◆ __dx
◆ __dy
◆ __dz
◆ __t
◆ __Q
◆ __NDF
◆ __E
◆ __status
The documentation for this class was generated from the following file:
JHistory & add(const int type)
Add event to history.
const JHistory & getHistory() const
Get history.