Jpp in_tag_pdf_generation
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 46 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 60 of file JShowerBrightPointRegressor.hh.

61 {}

◆ 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 77 of file JShowerBrightPointRegressor.hh.

81 :
82 T_ns(T_ns)
83
84 {
85 using namespace std;
86 using namespace JPP;
87
88 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
89
90 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
91
92 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
93
94 _pdf[i].load(file_name.c_str());
95
96 _pdf[i].setExceptionHandler(supervisor);
97 }
98
99 // Add PDFs
100 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
101
102 _pdf[ i ].add(_pdf[i-1]);
103
104 JPDF_t buffer;
105
106 _pdf[i-1].swap(buffer);
107
108 if (TTS > 0.0) {
109 _pdf[i].blur(TTS, numberOfPoints, epsilon);
110 }
111 }
112 }
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 119 of file JShowerBrightPointRegressor.hh.

120 {
121 return _pdf;
122 }

Member Data Documentation

◆ NUMBER_OF_PDFS

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

Definition at line 53 of file JShowerBrightPointRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 128 of file JShowerBrightPointRegressor.hh.

◆ T_ns

Time window with respect to Cherenkov hypothesis [ns].

Definition at line 129 of file JShowerBrightPointRegressor.hh.

◆ _pdf

PDFs.

Definition at line 132 of file JShowerBrightPointRegressor.hh.


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