1#ifndef JSHOWERPOINTSIMPLEX_INCLUDE
2#define JSHOWERPOINTSIMPLEX_INCLUDE
76 using JRegressor_t::operator();
98 JRegressor_t::debug =
debug;
99 JRegressor_t::MAXIMUM_ITERATIONS =
NMax;
100 JRegressor_t::EPSILON = 1e-4;
103 this->parameters.resize(4);
132 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
140 data.reserve(dataL0.size() + dataL1.size());
141 for (buffer_type::const_iterator i = dataL1.begin(); i != dataL1.end(); ++i) {
148 buffer_type::iterator __end = data.end();
150 for (buffer_type::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
151 if (find_if(data.begin(), __end, make_predicate(&
hit_type::getModuleID, i->getModuleID())) == __end) {
158 const int NDF =
getCount(data.begin(), data.end()) - this->parameters.size();
162 double chi2 = (*this)(vx, data.begin(), data.end());
164 JShower3E sh_fit(this->value.getPosition(),
Algorithms for hit clustering and sorting.
Auxiliary class to extract a subset of optical modules from a detector.
Data structure for detector geometry and calibration.
Reduced data structure for L1 hit.
Match operator for Cherenkov light from shower in any direction.
Direct access to module in detector data structure.
Auxiliary class to define a range between two values.
Basic data structure for time and time over threshold information of hit.
Router for direct addressing of module data in detector data structure.
Data structure for set of track fit results.
Fit method based on the Levenberg-Marquardt method.
Data structure for vertex fit.
static parameter_type pT()
static parameter_type pZ()
static parameter_type pX()
static parameter_type pY()
Data structure for direction in three dimensions.
double getE() const
Get energy.
class to handle the second position fit of the shower reconstruction, mainly dedicated for ORCA
std::vector< hit_type > buffer_type
JRegressor< JPoint4D, JGandalf > JRegressor_t
JTRIGGER::JHitR1 hit_type
JShowerPointSimplex(const JShowerPointSimplexParameters_t ¶meters, const JModuleRouter &router, const int debug=0)
Parameterized constructor.
const JModuleRouter & router
JEvt operator()(const KM3NETDAQ::JDAQEvent &event, const JFIT::JEvt &in)
Declaration of the member function that actually performs the reconstruction.
Reduced data structure for L1 hit.
int getModuleID() const
Get module identifier.
static const int JSHOWERPOINTSIMPLEX
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [s]).
JMEstimator * getMEstimator(const int type)
Get M-Estimator.
size_t getCount(const array_type< T > &buffer, const JCompare_t &compare)
Count number of unique values.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
double getQuality(const double chi2, const int N, const int NDF)
Get quality of fit.
JPosition3D getPosition(const JFit &fit)
Get position.
JFit getFit(const JHistory &history, const JTrack3D &track, const double Q, const int NDF, const double energy=0.0, const int status=SINGLE_STAGE)
Get fit.
JHistory & add(const int type)
Add event to history.
Auxiliary class to match data points with given model.
Template definition of a data regressor of given model.
double TMin_ns
minimum time for local coincidences [ns]
double TMaxLocal_ns
time window for local coincidences [ns]
double TMax_ns
maximum time for local coincidences [ns]
double ctMin
minimal cosine space angle between PMT axes
double sigma_ns
time resolution [ns]
int mestimator
m-estimator
int NMax
maximum number of iterations
double DMax_m
maximal distance to optical module [m]
Data structure for L2 parameters.