Jpp
18.1.0
the software that should make you happy
|
Data structure for track fit results with history and optional associated values. More...
#include <JEvt.hh>
Public Member Functions | |
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=JRECONSTRUCTION::SINGLE_STAGE) | |
Constructor. More... | |
JFit (const JHistory &history, const double x, const double y, const double z, const int status=JRECONSTRUCTION::SINGLE_STAGE) | |
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 | setStatus (const int status) |
Set status of the 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... | |
size_t | getDimensionOfErrorMatrix () const |
Get dimension of error matrix. More... | |
const std::vector< double > & | getV () const |
Get error matrix. More... | |
double | getV (const size_t row, const size_t col) const |
Get element of error matrix. More... | |
template<class T > | |
void | setV (const size_t size, const T &data) |
Set error matrix. More... | |
const std::vector< double > & | getW () const |
Get associated values. More... | |
void | setW (const std::vector< double > &W) |
Set associated values. More... | |
int | getN () const |
Get number of associated values. More... | |
bool | hasW (const int i) const |
Check availability of value. More... | |
double | getW (const int i) const |
Get associated value. More... | |
double | getW (const int i, const double value) const |
Get associated value. More... | |
void | setW (const int i, const double value) |
Set associated value. More... | |
ClassDef (JFit, 7) | |
const JHistory & | getHistory () const |
Get history. More... | |
JHistory & | getHistory () |
Get history. More... | |
bool | has (const int type) const |
Has event in history. More... | |
bool | getStatus (const std::vector< int > &types) const |
Get status. More... | |
bool | hasParentUUID () const |
Has parent UUID. More... | |
const JUUID & | getUUID () const |
Get UUID. More... | |
const JUUID & | getParentUUID () const |
Get parent UUID. More... | |
ClassDef (JHistory, 2) | |
Protected Attributes | |
double | __x |
double | __y |
double | __z |
double | __dx |
double | __dy |
double | __dz |
double | __t |
double | __Q |
int | __NDF |
std::vector< double > | V |
std::vector< double > | W |
double | __E |
int | __status |
Data structure for track fit results with history and optional associated values.
Definition at line 35 of file JReconstruction/JEvt.hh.
|
inline |
Default constructor.
Parameters are initialized with non physical values.
Definition at line 45 of file JReconstruction/JEvt.hh.
|
inline |
Constructor.
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 76 of file JReconstruction/JEvt.hh.
|
inline |
Constructor for storing position only.
Note that the type of fit can be obtained via the history information.
history | history |
x | X-position |
y | Y-position |
z | Z-position |
status | status |
Definition at line 115 of file JReconstruction/JEvt.hh.
|
inline |
Add event to history.
type | application type |
Definition at line 142 of file JReconstruction/JEvt.hh.
|
inline |
Get X-position.
Definition at line 150 of file JReconstruction/JEvt.hh.
|
inline |
Get Y-position.
Definition at line 151 of file JReconstruction/JEvt.hh.
|
inline |
Get Z-position.
Definition at line 152 of file JReconstruction/JEvt.hh.
|
inline |
Get X-slope.
Definition at line 153 of file JReconstruction/JEvt.hh.
|
inline |
Get Y-slope.
Definition at line 154 of file JReconstruction/JEvt.hh.
|
inline |
Get Z-slope.
Definition at line 155 of file JReconstruction/JEvt.hh.
|
inline |
Get time.
Definition at line 156 of file JReconstruction/JEvt.hh.
|
inline |
Get quality.
Definition at line 157 of file JReconstruction/JEvt.hh.
|
inline |
Get number of degrees of freedom.
Definition at line 158 of file JReconstruction/JEvt.hh.
|
inline |
Get energy.
Definition at line 159 of file JReconstruction/JEvt.hh.
|
inline |
Get status of the fit; negative values should refer to a bad fit.
Definition at line 160 of file JReconstruction/JEvt.hh.
|
inline |
Set status of the fit.
status | status |
Definition at line 168 of file JReconstruction/JEvt.hh.
|
inline |
Move vertex along this track with given velocity.
step | step |
velocity | velocity |
Definition at line 180 of file JReconstruction/JEvt.hh.
|
inline |
Set energy.
E | energy |
Definition at line 194 of file JReconstruction/JEvt.hh.
|
inline |
Get dimension of error matrix.
Definition at line 205 of file JReconstruction/JEvt.hh.
|
inline |
Get error matrix.
Note that only the lower-half of the matrix is returned.
Definition at line 218 of file JReconstruction/JEvt.hh.
|
inline |
Get element of error matrix.
row | row (0 <= row < dimension ) |
col | col (0 <= col < dimension ) |
Definition at line 231 of file JReconstruction/JEvt.hh.
|
inline |
Set error matrix.
The given size corresponds to the dimension of a 2D-array of which the elements should be accessible via the usual array operators.
Note that only the lower-half of the given matrix is stored.
size | size |
data | matrix |
Definition at line 253 of file JReconstruction/JEvt.hh.
|
inline |
|
inline |
|
inline |
Get number of associated values.
Definition at line 292 of file JReconstruction/JEvt.hh.
|
inline |
Check availability of value.
i | index |
Definition at line 304 of file JReconstruction/JEvt.hh.
|
inline |
Get associated value.
i | index |
Definition at line 316 of file JReconstruction/JEvt.hh.
|
inline |
Get associated value.
i | index |
value | default value |
Definition at line 329 of file JReconstruction/JEvt.hh.
|
inline |
Set associated value.
i | index |
value | value |
Definition at line 344 of file JReconstruction/JEvt.hh.
JFIT::JFit::ClassDef | ( | JFit | , |
7 | |||
) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Has event in history.
type | application type |
Definition at line 252 of file JHistory.hh.
|
inlineinherited |
Get status.
types | application types |
Definition at line 270 of file JHistory.hh.
|
inlineinherited |
Has parent UUID.
Definition at line 306 of file JHistory.hh.
|
inlineinherited |
Get UUID.
Definition at line 315 of file JHistory.hh.
|
inlineinherited |
Get parent UUID.
Definition at line 324 of file JHistory.hh.
|
inherited |
|
protected |
Definition at line 357 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 358 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 359 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 360 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 361 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 362 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 363 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 364 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 365 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 366 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 367 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 368 of file JReconstruction/JEvt.hh.
|
protected |
Definition at line 369 of file JReconstruction/JEvt.hh.