1#ifndef JSHOWERBJORKENY_INCLUDE
2#define JSHOWERBJORKENY_INCLUDE
80 using JRegressor_t::operator();
108 JRegressor_t::debug =
debug;
109 JRegressor_t::T_ns.setRange(parameters.
TMin_ns, parameters.
TMax_ns);
111 JRegressor_t::MAXIMUM_ITERATIONS =
NMax;
138 for (JEvt::const_iterator shower = in.begin(); shower != in.end(); ++shower) {
146 for (JDataL0_t::const_iterator i = dataL0.begin(); i != dataL0.end(); ++i) {
161 module != subdetector.end(); ++
module) {
169 for (
unsigned int i = 0; i !=
dom.size(); ++i) {
179 const size_t count =
top.count(
id);
186 this->step.resize(2);
190 double f_h = 1 - 0.681 * (std::pow(shower->getE()/0.863, -0.207));
197 buffer.begin(), buffer.end());
199 double NDF =
getCount(buffer.begin(), buffer.end()) - this->step.size();
202 this->value.getDirection()),
203 correct(this->value.getEem() +
this->value.getEh())),
204 this->value.getBy());
214 out.rbegin()->setW(5, y);
215 out.rbegin()->setW(6, this->value.getEem());
216 out.rbegin()->setW(7, this->value.getEh());
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.
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::JShowerEH.
Basic data structure for time and time over threshold information of hit.
Detector subset without binary search functionality.
Router for direct addressing of module data in detector data structure.
Data structure for a composite optical module.
Data structure for fit of energy.
Data structure for set of track fit results.
Data structure for vertex fit.
Data structure for fit of straight line in positive z-direction with energy.
Auxiliary class for correction of energy determined by JShowerEnergy.cc.
Simple fit method based on Powell's algorithm, see reference: Numerical Recipes in C++,...
double getBjY() const
Get Borken-y.
Data structure for direction in three dimensions.
double getE() const
Get energy.
const JPosition3D & getPosition() const
Get position.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
3D shower with energy and Bjorken-y.
Data structure for vector in three dimensions.
Data structure for normalised vector in positive z-direction.
Template definition of a multi-dimensional oscillation probability interpolation table.
class to handle the direction fit of the shower reconstruction, mainly dedicated for ORCA
JRegressor< JShowerEH, JSimplex > JRegressor_t
const JSummaryRouter & summary
JEvt operator()(const KM3NETDAQ::JDAQEvent &event, const JFIT::JEvt &in)
Declaration of the member function that actually performs the reconstruction.
const JShowerEnergyCorrection & correct
const JModuleRouter & router
double getFinalBjY(double E_em, double E_h)
JShowerBjorkenY(const JShowerBjorkenYParameters_t ¶meters, const JModuleRouter &router, const JSummaryRouter &summary, const std::string pdfFile, const JShowerEnergyCorrection &correct, const int debug=0)
Parameterized constructor.
Router for fast addressing of summary data in KM3NETDAQ::JDAQSummaryslice data structure as a functio...
Data storage class for rate measurements of all PMTs in one module.
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.
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.
JShower3E getShower(const JFit &fit)
Get shower.
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
ile KM3NeT Data Definitions v3.6.2 https://git.km3net.de/common/km3net-dataformat
JHistory & add(const int type)
Add event to history.
Auxiliary class for handling PMT geometry, rate and response.
Template definition of a data regressor of given model.
Data structure for fit parameters.
double fit_step
simplex initial step
double TMax_ns
maximum time for local coincidences [ns]
double VMax_npe
maximum number of of photo-electrons
int NMax
maximum number of iterations
int mestimator
M-estimator (see JFIT::JMEstimator_t)
double roadWidth_m
road width [m]
double R_Hz
default rate [Hz]
double TMin_ns
minimum time for local coincidences [ns]