Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JRegressorStorage< JPoint4E, JGandalf > Struct Reference

Template specialisation for storage of PDF tables. More...

#include <JShowerBrightPointRegressor.hh>

Public Types

typedef JTOOLS::JSplineFunction1S_t JFunction1D_t
 
typedef JTOOLS::JMAPLIST< JTOOLS::JPolint2FunctionalMap, JTOOLS::JPolint1FunctionalGridMap >::maplist JPDFMapList_t
 
typedef JPHYSICS::JPDFTable< JFunction1D_t, JPDFMapList_tJPDF_t
 
typedef std::array< JPDF_t, NUMBER_OF_PDFSJPDFs_t
 PDFs.
 

Public Member Functions

 JRegressorStorage ()
 Default constructor.
 
 JRegressorStorage (const std::string &fileDescriptor, const JTimeRange &T_ns, const double TTS, const int numberOfPoints=25, const double epsilon=1.0e-10)
 Parameterized constructor.
 
const JPDFs_tgetPDF () const
 Get PDFs.
 

Public Attributes

JTimeRange T_ns
 Time window with respect to Cherenkov hypothesis [ns].
 

Static Public Attributes

static const int NUMBER_OF_PDFS = 2
 
static const JPDFType_t pdf_t [NUMBER_OF_PDFS]
 PDF types.
 

Private Attributes

JPDFs_t _pdf
 PDFs.
 

Detailed Description

Template specialisation for storage of PDF tables.

Definition at line 59 of file JShowerBrightPointRegressor.hh.

Member Typedef Documentation

◆ JFunction1D_t

◆ JPDFMapList_t

◆ JPDF_t

◆ JPDFs_t

Constructor & Destructor Documentation

◆ JRegressorStorage() [1/2]

JFIT::JRegressorStorage< JPoint4E, JGandalf >::JRegressorStorage ( )
inline

Default constructor.

Definition at line 73 of file JShowerBrightPointRegressor.hh.

74 {}

◆ JRegressorStorage() [2/2]

JFIT::JRegressorStorage< JPoint4E, JGandalf >::JRegressorStorage ( const std::string & fileDescriptor,
const JTimeRange & T_ns,
const double TTS,
const int numberOfPoints = 25,
const double epsilon = 1.0e-10 )
inline

Parameterized constructor.

The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD which will be replaced by the corresponding PDF types listed in JRegressorStorage<JPoint4E, JGandalf>::pdf_t.

The TTS corresponds to the additional time smearing applied to the PDFs.

Parameters
fileDescriptorPDF file descriptor
T_nstime range [ns]
TTSTTS [ns]
numberOfPointsnumber of points for Gauss-Hermite integration of TTS
epsilonprecision for Gauss-Hermite integration of TTS

Definition at line 90 of file JShowerBrightPointRegressor.hh.

94 :
95 T_ns(T_ns)
96
97 {
98 using namespace std;
99 using namespace JPP;
100
101 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
102
103 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
104
105 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
106
107 _pdf[i].load(file_name.c_str());
108
109 _pdf[i].setExceptionHandler(supervisor);
110 }
111
112 // Add PDFs
113 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
114
115 _pdf[ i ].add(_pdf[i-1]);
116
117 JPDF_t buffer;
118
119 _pdf[i-1].swap(buffer);
120
121 if (TTS > 0.0) {
122 _pdf[i].blur(TTS, numberOfPoints, epsilon);
123 }
124 }
125 }
int numberOfPoints
Definition JResultPDF.cc:22
static const JZero zero
Function object to assign zero value.
Definition JZero.hh:105
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const JPDFType_t pdf_t[NUMBER_OF_PDFS]
PDF types.
JPHYSICS::JPDFTable< JFunction1D_t, JPDFMapList_t > JPDF_t
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].

Member Function Documentation

◆ getPDF()

const JPDFs_t & JFIT::JRegressorStorage< JPoint4E, JGandalf >::getPDF ( ) const
inline

Get PDFs.

Returns
PDFs

Definition at line 132 of file JShowerBrightPointRegressor.hh.

133 {
134 return _pdf;
135 }

Member Data Documentation

◆ NUMBER_OF_PDFS

const int JFIT::JRegressorStorage< JPoint4E, JGandalf >::NUMBER_OF_PDFS = 2
static

Definition at line 66 of file JShowerBrightPointRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 141 of file JShowerBrightPointRegressor.hh.

◆ T_ns

Time window with respect to Cherenkov hypothesis [ns].

Definition at line 142 of file JShowerBrightPointRegressor.hh.

◆ _pdf

PDFs.

Definition at line 145 of file JShowerBrightPointRegressor.hh.


The documentation for this struct was generated from the following file: