1 #ifndef JSHOWERDIRECTIONPREFIT_INCLUDE
2 #define JSHOWERDIRECTIONPREFIT_INCLUDE
54 namespace JRECONSTRUCTION {}
55 namespace JPP {
using namespace JRECONSTRUCTION; }
57 namespace JRECONSTRUCTION {
71 public JRegressor<JShower3EZ, JAbstractMinimiser>
75 using JRegressor_t::operator();
93 const std::string pdfFile,
113 for (
int i = 0;
i !=
En; ++
i) {
141 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
148 for (JDataL0_t::const_iterator
i = dataL0.begin();
i != dataL0.end(); ++
i) {
150 top.insert(
i->getPMTIdentifier());
157 for (JDetectorSubset_t::const_iterator module = subdetector.begin(); module != subdetector.end(); ++module) {
162 for (
size_t i = 0;
i != dom.size(); ++
i) {
166 frame[
i].is_valid() &&
172 const size_t count = top.count(
id);
181 for (JOmega3D_t::const_iterator dir =
omega.begin(); dir !=
omega.end(); ++dir) {
187 JNPE_t::result_type H1 = (*this).getH1(sh, pmt);
188 JNPE_t::result_type H0 = (*this).getH0(pmt.
getR());
189 const bool hit = pmt.
getN() != 0;
190 for(
size_t j=0;
j!=chi2v.size();++
j){
195 auto minChi2 = std::min_element(chi2v.begin(), chi2v.end());
static int debug
debug level (default is off).
double DMax_m
maximal distance to optical module [m]
Template definition of a data regressor of given model.
double TMax_ns
maximum time for local coincidences [ns]
double scanAngle_deg
scanning angle step in [deg]
JEvt operator()(const KM3NETDAQ::JDAQEvent &event, const JFIT::JEvt &in)
Declaration of the member function that actually performs the reconstruction.
JRegressor< JShower3EZ, JAbstractMinimiser > JRegressor_t
double getR() const
Get rate.
Data structure for direction in three dimensions.
class to handle the direction fit of the shower reconstruction, mainly dedicated for ORCA ...
Data structure for a composite optical module.
double Emin_GeV
minimum energy to scan
double getQuality(const double chi2, const int NDF)
Get quality of fit.
Algorithms for hit clustering and sorting.
Regressor function object for JShower3EZ fit using Abstract minimiser, that just computes the chi2 wi...
Template specialisation of L0 builder for JHitL0 data type.
int En
number of points to scan in energy range
Auxiliary class for handling PMT geometry, rate and response.
const JSummaryRouter & summary
Router for direct addressing of module data in detector data structure.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Data structure for fit parameters.
double getRate() const
Get default rate.
then usage $script< input file >[option] nPossible options count
*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
Direction set covering (part of) solid angle.
double Emax_GeV
maximum energy to scan
const JDAQSummaryFrame & getSummaryFrame() const
Get default summary frame.
Basic data structure for time and time over threshold information of hit.
Data structure for detector geometry and calibration.
static JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
Basic data structure for L0 hit.
Auxiliary class to extract a subset of optical modules from a detector.
Properties of KM3NeT PMT and deep-sea water.
Data structure for fit of straight line in positive z-direction with energy.
JAxis3D & rotate(const JRotation3D &R)
Rotate axis.
Data structure for vector in three dimensions.
Data storage class for rate measurements of all PMTs in one module.
static const int JSHOWERDIRECTIONPREFIT
static const int PMT_DISABLE
KM3NeT Data Definitions v3.3.0-2-g5cc95cf https://git.km3net.de/common/km3net-dataformat.
JShowerDirectionPrefit(const JShowerDirectionPrefitParameters_t ¶meters, const JModuleRouter &router, const JSummaryRouter &summary, const std::string pdfFile, const int debug=0)
Parameterized constructor.
JPosition3D getPosition(const Vec &pos)
Get position.
T pow(const T &x, const double y)
Power .
static const double PI
Mathematical constants.
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
const JPMT & getPMT(const int index) const
Get PMT.
Detector subset without binary search functionality.
static double Vmax_npe
Maximal integral of PDF [npe].
Reduced data structure for L1 hit.
then JCookie sh JDataQuality D $DETECTOR_ID R
bool getPMTStatus(const JStatus &status)
Test status of PMT.
const JClass_t & getReference() const
Get reference to object.
Data structure for set of track fit results.
JFit getFit(const int id, const JMODEL::JString &string)
Get fit parameters of string.
int getN() const
Get number of hits.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
double VMax_npe
maximum number of of photo-electrons
Data regression method for JFIT::JShower3EZ.
const JModuleRouter & router
Data structure for fit of energy.
bool getDAQStatus(const JDAQFrameStatus &frame, const JStatus &status)
Test status of DAQ.
Template specialisation of class JModel to match hit with bright point.
double getChi2(const double P)
Get chi2 corresponding to given probability.
Data structure for normalised vector in positive z-direction.
double TMin_ns
minimum time for local coincidences [ns]
Match operator for Cherenkov light from shower in any direction.
Basic data structure for L1 hit.