1 #ifndef JSHOWERPOINTSIMPLEX_INCLUDE
2 #define JSHOWERPOINTSIMPLEX_INCLUDE
76 using JRegressor_t::operator();
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) {
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.
class to handle the second position fit of the shower reconstruction, mainly dedicated for ORCA
JRegressor< JPoint4D, JGandalf > JRegressor_t
std::vector< hit_type > buffer_type
JShowerPointSimplex(const JShowerPointSimplexParameters_t ¶meters, const JModuleRouter &router, const int debug=0)
Parameterized constructor.
const JModuleRouter & router
JTRIGGER::JHitR1 hit_type
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
JPosition3D getPosition(const Vec &pos)
Get position.
double getQuality(const double chi2, const int NDF)
Get quality of fit.
JFit getFit(const int id, const JMODEL::JString &string)
Get fit parameters of string.
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.
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JHistory & add(const int type)
Add event to history.
Template specialisation of class JModel to match hit with bright point.
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.