1 #ifndef JSHOWERDIRECTIONPREFIT_INCLUDE
2 #define JSHOWERDIRECTIONPREFIT_INCLUDE
72 public JRegressor<JShower3EZ, JAbstractMinimiser>
76 using JRegressor_t::operator();
94 const std::string pdfFile,
105 JRegressor_t::T_ns.setRange(parameters.
TMin_ns, parameters.
TMax_ns);
114 for (
int i = 0; i !=
En; ++i) {
142 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
149 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
151 top.insert(i->getPMTIdentifier());
158 for (JDetectorSubset_t::const_iterator module = subdetector.begin(); module != subdetector.end(); ++module) {
163 for (
size_t i = 0; i != dom.size(); ++i) {
173 const size_t count = top.count(
id);
182 for (JOmega3D_t::const_iterator dir =
omega.begin(); dir !=
omega.end(); ++dir) {
188 JNPE_t::result_type H1 = (*this).getH1(sh, pmt);
189 JNPE_t::result_type H0 = (*this).getH0(pmt.
getR());
190 const bool hit = pmt.
getN() != 0;
191 for(
size_t j=0;
j!=chi2v.size();++
j){
196 auto minChi2 = std::min_element(chi2v.begin(), chi2v.end());
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.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Basic data structure for L0 hit.
Basic data structure for L1 hit.
Reduced data structure for L1 hit.
Match operator for Cherenkov light from shower in any direction.
Data regression method for JFIT::JShower3EZ.
Basic data structure for time and time over threshold information of hit.
Properties of KM3NeT PMT and deep-sea water.
Detector subset without binary search functionality.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
const JPMT & getPMT(const int index) const
Get PMT.
Data structure for fit of energy.
Data structure for set of track fit results.
Data structure for fit of straight line in positive z-direction with energy.
JAxis3D & rotate(const JRotation3D &R)
Rotate axis.
Data structure for direction in three dimensions.
Direction set covering (part of) solid angle.
const JPosition3D & getPosition() const
Get position.
double getE() const
Get energy.
Data structure for vector in three dimensions.
Data structure for normalised vector in positive z-direction.
const JClass_t & getReference() const
Get reference to object.
class to handle the direction fit of the shower reconstruction, mainly dedicated for ORCA
const JSummaryRouter & summary
JEvt operator()(const KM3NETDAQ::JDAQEvent &event, const JFIT::JEvt &in)
Declaration of the member function that actually performs the reconstruction.
JShowerDirectionPrefit(const JShowerDirectionPrefitParameters_t ¶meters, const JModuleRouter &router, const JSummaryRouter &summary, const std::string pdfFile, const int debug=0)
Parameterized constructor.
const JModuleRouter & router
JRegressor< JShower3EZ, JAbstractMinimiser > JRegressor_t
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
const JDAQSummaryFrame & getSummaryFrame() const
Get default summary frame.
double getRate() const
Get default rate.
Template specialisation of L0 builder for JHitL0 data type.
Data storage class for rate measurements of all PMTs in one module.
static const int JSHOWERDIRECTIONPREFIT
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.
double getChi2(const double P)
Get chi2 corresponding to given probability.
Auxiliary classes and methods for mathematical operations.
T pow(const T &x, const double y)
Power .
static const double PI
Mathematical constants.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool is_valid(const json &js)
Check validity of JSon data.
bool getDAQStatus(const JDAQFrameStatus &frame, const JStatus &status)
Test status of DAQ.
bool getPMTStatus(const JStatus &status)
Test status of PMT.
static const int PMT_DISABLE
KM3NeT Data Definitions v3.4.0-8-ge14cb17 https://git.km3net.de/common/km3net-dataformat.
JHistory & add(const int type)
Add event to history.
Template specialisation of class JModel to match hit with bright point.
Auxiliary class for handling PMT geometry, rate and response.
int getN() const
Get number of hits.
double getR() const
Get rate.
Regressor function object for JShower3EZ fit using Abstract minimiser, that just computes the chi2 wi...
Template definition of a data regressor of given model.
Data structure for fit parameters.
double scanAngle_deg
scanning angle step in [deg]
double Emin_GeV
minimum energy to scan
double TMin_ns
minimum time for local coincidences [ns]
double TMax_ns
maximum time for local coincidences [ns]
double Emax_GeV
maximum energy to scan
int En
number of points to scan in energy range
double VMax_npe
maximum number of of photo-electrons
double DMax_m
maximal distance to optical module [m]