Regressor function object for JShower3EZ fit using JGandalf minimiser.
More...
#include <JShower3EZRegressor.hh>
|
| typedef JRegressorStorage< JShower3EZ, JSimplex > | storage_type |
| |
| typedef JSimplex< JShower3EZ > | minimiser_type |
| |
| typedef JRegressor< JShower3EZ, JSimplex > | regressor_type |
| |
| typedef minimiser_type::result_type | result_type |
| |
| typedef JTOOLS::JPolint1Function1D_t | JFunction1D_t |
| |
| typedef JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap > > > > | JPDFMaplist_t |
| |
| typedef JPHYSICS::JPDFTable< JFunction1D_t, JPDFMaplist_t > | JPDF_t |
| |
| typedef JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap > > > > | JNPEMaplist_t |
| |
| typedef JPHYSICS::JNPETable< double, double, JNPEMaplist_t > | JNPE_t |
| |
| typedef std::array< JNPE_t, NUMBER_OF_PDFS > | JNPEs_t |
| | NPEs.
|
| |
Regressor function object for JShower3EZ fit using JGandalf minimiser.
Definition at line 195 of file JShower3EZRegressor.hh.
◆ storage_type
◆ minimiser_type
◆ regressor_type
◆ result_type
◆ JFunction1D_t
◆ JPDFMaplist_t
◆ JPDF_t
◆ JNPEMaplist_t
◆ JNPE_t
◆ JNPEs_t
◆ JRegressor() [1/3]
Default constructor.
Definition at line 206 of file JShower3EZRegressor.hh.
206 :
210 {}
const JNPEs_t & getNPE() const
Get NPEs.
std::shared_ptr< JMEstimator > estimator
M-Estimator function.
JRegressorStorage< JShower3EZ, JSimplex > storage_type
◆ JRegressor() [2/3]
Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD which will be replaced by the PDF types listed in JRegressorStorage<JShower3EZ, JSimplex>::pdf_t.
- Parameters
-
| fileDescriptor | PDF file descriptor |
| T_ns | time range [ns] |
Definition at line 221 of file JShower3EZRegressor.hh.
221 :
225 {}
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
◆ JRegressor() [3/3]
◆ operator()() [1/2]
Fit function.
This method is used to determine the chi2 of given PMT with respect to shower hypothesis.
- Parameters
-
- Returns
- chi2
Definition at line 248 of file JShower3EZRegressor.hh.
249 {
251
254
255 D.sub(shower.getPosition());
256
257 const double z = D.getDot(shower.getDirection());
258 const double x = D.getX();
259 const double y = D.getY();
260 const double cd = z/D.getLength();
261
263
266
269
272 }
273
275
276 const bool hit = pmt.getN() != 0;
278
280 }
Data structure for direction in three dimensions.
Data structure for position in three dimensions.
Template definition of a multi-dimensional oscillation probability interpolation table.
multifunction_t::result_type result_type
double getPMTAngle(const double angle)
Constrain PMT angle to [0,pi].
double getChi2(const double P)
Get chi2 corresponding to given probability.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static double Vmax_npe
Maximal integral of PDF [npe].
JNPE_t::result_type getH0(const double R_Hz) const
Get background hypothesis value for time integrated PDF.
JNPE_t::result_type getH1(const double D, const double cd, const double theta, const double phi, const double E) const
Get signal hypothesis value for time integrated PDF.
◆ getH0()
Get background hypothesis value for time integrated PDF.
- Parameters
-
- Returns
- hypothesis value
Definition at line 288 of file JShower3EZRegressor.hh.
◆ getH1()
Get signal hypothesis value for time integrated PDF.
- Parameters
-
| D | PMT distance from shower [m] |
| cd | cosine angle between shower direction and PMT position |
| theta | PMT zenith angle [deg] |
| phi | PMT azimuth angle [deg] |
| E | shower energy [GeV] |
- Returns
- hypothesis value
Definition at line 303 of file JShower3EZRegressor.hh.
308 {
310
312
313 if (!
npe[i].empty() && D <=
npe[i].getXmax()) {
314
315 try {
316
318
319
320
321 if(y1 < 0){
322 y1 = 0;
323 }
324
325 h1 += y1;
326
327 }
329 ERROR(error << std::endl);
330 }
331 }
332 }
333
334 return h1;
335 }
static const JZero zero
Function object to assign zero value.
static const int NUMBER_OF_PDFS
◆ operator()() [2/2]
Global fit.
- Parameters
-
| value | start value |
| __begin | begin of data set |
| __end | end of data set |
- Returns
- chi2
Definition at line 94 of file JRegressor.hh.
◆ getNPE()
◆ Vmax_npe
◆ npe
◆ estimator
◆ NUMBER_OF_PDFS
◆ pdf_t
Initial value:= {
DIRECT_LIGHT_FROM_EMSHOWER,
SCATTERED_LIGHT_FROM_EMSHOWER
}
PDF types.
Definition at line 176 of file JShower3EZRegressor.hh.
◆ T_ns
◆ _npe
The documentation for this struct was generated from the following file: