Jpp test-rotations-old
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 double TTS, const int numberOfPoints=25, const double epsilon=1.0e-10)
 Parameterized constructor.
 
const JPDFs_tgetPDF () const
 Get PDFs.
 

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 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
TTSTTS [ns]
numberOfPointsnumber of points for Gauss-Hermite integration of TTS
epsilonprecision for Gauss-Hermite integration of TTS

Definition at line 76 of file JShowerBrightPointRegressor.hh.

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

Member Function Documentation

◆ getPDF()

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

Get PDFs.

Returns
PDFs

Definition at line 115 of file JShowerBrightPointRegressor.hh.

116 {
117 return _pdf;
118 }

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

◆ _pdf

PDFs.

Definition at line 127 of file JShowerBrightPointRegressor.hh.


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