1 #ifndef JSHOWERFIT_INCLUDE
2 #define JSHOWERFIT_INCLUDE
57 namespace JRECONSTRUCTION {}
58 namespace JPP {
using namespace JRECONSTRUCTION; }
60 namespace JRECONSTRUCTION {
79 using JRegressor_t::operator();
96 const std::string pdfFile,
136 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
144 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
147 top.insert(i->getPMTIdentifier());
158 for (JDetectorSubset_t::iterator module = subdetector.begin();
159 module != subdetector.end(); ++module) {
164 for (
unsigned int i = 0; i != dom.size(); ++i) {
170 buffer.push_back(
JPMTW0(dom.
getPMT(i), rate_Hz, top.count(
id)));
174 this->step.resize(2);
179 JEnergy(log10(sh.getE()))), buffer.begin(), buffer.end());
181 double NDF =
getCount(buffer.begin(), buffer.end()) - this->step.size();
183 JShower3E sh_fit(this->value.getPosition(), this->value.getDirection(),
184 this->value.getT(),
correct(this->value.getE()));
188 sh_fit.
add(sh.getPosition());
191 NDF, sh_fit.
getE()));
static int debug
debug level (default is off).
Template definition of a data regressor of given model.
JEvt operator()(const KM3NETDAQ::JDAQEvent &event, const JFIT::JEvt &in)
Declaration of the member function that actually performs the reconstruction.
JShowerFit(const JShowerFitParameters_t ¶meters, const JModuleRouter &router, const JSummaryRouter &summary, const std::string pdfFile, const JShowerEnergyCorrection &correct, const int debug=0)
Parameterized constructor.
Data structure for direction in three dimensions.
Data structure for a composite optical module.
Algorithms for hit clustering and sorting.
Template specialisation of L0 builder for JHitL0 data type.
Auxiliary class for handling PMT geometry, rate and response.
Data structure for vertex fit.
Auxiliary class for correction of energy determined by JShowerEnergy.cc.
Router for direct addressing of module data in detector data structure.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
double getRate() const
Get default rate.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
const JModuleRouter & router
Basic data structure for time and time over threshold information of hit.
Data structure for detector geometry and calibration.
double getQuality(const double chi2, const int N, const int NDF)
Get quality of fit.
JTime & add(const JTime &value)
Addition operator.
const JShowerEnergyCorrection & correct
Basic data structure for L0 hit.
Auxiliary class to extract a subset of optical modules from a detector.
const JSummaryRouter & summary
static const int JSHOWERFIT_ENERGY
uncorrected energy [GeV] from JShowerFit.cc
Data structure for fit of straight line in positive z-direction with energy.
double getE() const
Get energy.
Data structure for vector in three dimensions.
static double Vmax_npe
Maximal integral of PDF [npe].
int getID() const
Get identifier.
JAxis3D & rotate_back(const JRotation3D &R)
Rotate back axis.
Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the op...
Regressor function object for JShower3EZ fit using JSimplex minimiser.
const JPMT & getPMT(const int index) const
Get PMT.
void rotate(const JRotation3D &R)
Rotate module.
then usage $script[distance] fi case set_variable R
Detector subset without binary search functionality.
static const int JSHOWERCOMPLETEFIT
JFit getFit(const JHistory &history, const JTrack3D &track, const double Q, const int NDF, const double energy=0.0, const int status=0)
Get fit.
Reduced data structure for L1 hit.
const JClass_t & getReference() const
Get reference to object.
Data structure for set of track fit results.
Data structure for fit parameters.
Simple fit method based on Powell's algorithm, see reference: Numerical Recipes in C++...
JRegressor< JShower3EZ, JSimplex > JRegressor_t
int getCount(const T &hit)
Get hit count.
Data regression method for JFIT::JShower3Z.
Data structure for fit of energy.
JDirection3D getDirection(const Vec &v)
Get direction.
static int MAXIMUM_ITERATIONS
maximal number of iterations
JMEstimator * getMEstimator(const int type)
Get M-Estimator.
class to handle the direction fit of the shower reconstruction, mainly dedicated for ORCA ...
Template specialisation of class JModel to match hit with bright point.
Data structure for normalised vector in positive z-direction.
static JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
Match operator for Cherenkov light from shower in any direction.
Basic data structure for L1 hit.
JPosition3D getPosition(const Vec &v)
Get position.