Jpp 21.0.0-rc.1
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 62 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 76 of file JShowerBrightPointRegressor.hh.

77 {}

◆ 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 JEEP::FILENAME_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 93 of file JShowerBrightPointRegressor.hh.

97 :
98 T_ns(T_ns)
99
100 {
101 using namespace std;
102 using namespace JPP;
103
104 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
105
106 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
107
108 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
109
110 _pdf[i].load(file_name.c_str());
111
112 _pdf[i].setExceptionHandler(supervisor);
113 }
114
115 // Add PDFs
116 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
117
118 _pdf[ i ].add(_pdf[i-1]);
119
120 JPDF_t buffer;
121
122 _pdf[i-1].swap(buffer);
123
124 if (TTS > 0.0) {
125 _pdf[i].blur(TTS, numberOfPoints, epsilon);
126 }
127 }
128 }
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 135 of file JShowerBrightPointRegressor.hh.

136 {
137 return _pdf;
138 }

Member Data Documentation

◆ NUMBER_OF_PDFS

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

Definition at line 69 of file JShowerBrightPointRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 144 of file JShowerBrightPointRegressor.hh.

◆ T_ns

Time window with respect to Cherenkov hypothesis [ns].

Definition at line 145 of file JShowerBrightPointRegressor.hh.

◆ _pdf

PDFs.

Definition at line 148 of file JShowerBrightPointRegressor.hh.


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