Go to the documentation of this file.
24 namespace JPP {
using namespace JFIT; }
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() ),
82 const int status = -1) :
112 const int status = -1):
162 void move(
const double step,
const double velocity)
167 __t += step / velocity;
223 return (i >= 0 && i < (
int)
W.size());
246 double getW(
const int i,
const double value)
const
261 void setW(
const int i,
const double value)
263 if (i >= (
int)
W.size()) {
264 W.resize(i + 1, 0.0);
309 template<
class JPredicate_t>
312 this->erase(std::partition(this->begin(), this->end(), select), this->end());
327 out <<
"Event: " << endl;
329 for (JEvt::const_iterator fit = event.begin(); fit !=
event.end(); ++fit) {
double getZ() const
Get Z-position.
double getDX() const
Get X-slope.
void setW(const std::vector< double > &W)
Set values.
double getW(const int i, const double value) const
Get value.
Auxiliary class for a type holder.
Auxiliary classes and methods for linear and iterative data regression.
bool hasW(const int i) const
Check availability of value.
int getN() const
Get number of values.
double getE() const
Get energy.
double getDZ() const
Get Z-slope.
double getW(const int i) const
Get value.
Data structure for set of track fit results.
const std::vector< double > & getW() const
Get values.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double getQ() const
Get quality.
void setE(const double E)
Set energy.
int getNDF() const
Get number of degrees of freedom.
void setW(const int i, const double value)
Set value.
JEvt()
Default constructor.
friend std::ostream & operator<<(std::ostream &out, const JEvt &event)
Write event to output.
int getStatus() const
Get status of the fit; negative values should refer to a bad fit.
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.
void partition(JPredicate_t select)
Select fits.
void move(const double step, const double velocity)
Move vertex along this track with given velocity.
double getX() const
Get X-position.
JFit(const JHistory &history, const double x, const double y, const double z, const int status=-1)
Constructor for storing position only.
JFit()
Default constructor.
double getDY() const
Get Y-slope.
Container for historical events.
std::ostream & operator<<(std::ostream &out, const JFIT::JFit &fit)
Write fit results to output.
JFit & add(const JFitApplication_t &type)
Add event to history.
double getT() const
Get time.
double getY() const
Get Y-position.
Data structure for track fit results.
const JHistory & getHistory() const
Get history.
JROOT::JTreeParameters getTreeParameters(JLANG::JType< JFIT::JEvt >)
Get TTree parameters for given data type.
Data structure for TTree parameters.
JHistory & add(const JFitApplication_t &type)
Add event to history.