Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JRegressorStorage< JShower3EZ, JSimplex > Struct Reference

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

#include <JShower3EZRegressor.hh>

Inheritance diagram for JFIT::JRegressorStorage< JShower3EZ, JSimplex >:
JFIT::JRegressor< JShower3EZ, JSimplex >

Public Types

typedef JTOOLS::JPolint1Function1D_t JFunction1D_t
 
typedef JTOOLS::JMAPLIST< JTOOLS::JPolint0FunctionalMap, JTOOLS::JPolint0FunctionalMap, JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JPolint0FunctionalGridMap >::maplist JPDFMaplist_t
 
typedef JPHYSICS::JPDFTable< JFunction1D_t, JPDFMaplist_tJPDF_t
 
typedef JTOOLS::JMAPLIST< JTOOLS::JPolint0FunctionalMap, JTOOLS::JPolint0FunctionalMap, JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JPolint0FunctionalGridMap >::maplist JNPEMaplist_t
 
typedef JPHYSICS::JNPETable< double, double, JNPEMaplist_tJNPE_t
 
typedef std::array< JNPE_t, NUMBER_OF_PDFSJNPEs_t
 NPEs.
 

Public Member Functions

 JRegressorStorage ()
 Default constructor.
 
 JRegressorStorage (const std::string &fileDescriptor, const JTimeRange &T_ns)
 Constructor.
 
const JNPEs_tgetNPE () const
 Get NPEs.
 

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

JNPEs_t _npe
 PDFs.
 

Detailed Description

Template specialisation for storage of PDF tables.

Definition at line 97 of file JShower3EZRegressor.hh.

Member Typedef Documentation

◆ JFunction1D_t

◆ JPDFMaplist_t

◆ JPDF_t

◆ JNPEMaplist_t

◆ JNPE_t

◆ JNPEs_t

Constructor & Destructor Documentation

◆ JRegressorStorage() [1/2]

JFIT::JRegressorStorage< JShower3EZ, JSimplex >::JRegressorStorage ( )
inline

Default constructor.

Definition at line 120 of file JShower3EZRegressor.hh.

121 {}

◆ JRegressorStorage() [2/2]

JFIT::JRegressorStorage< JShower3EZ, JSimplex >::JRegressorStorage ( const std::string & fileDescriptor,
const JTimeRange & T_ns )
inline

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<JShower3Z, JSimplex>::pdf_t.

Parameters
T_nstime range [ns]
fileDescriptorPDF file descriptor

Definition at line 133 of file JShower3EZRegressor.hh.

133 :
134 T_ns(T_ns)
135 {
136 using namespace std;
137 using namespace JPP;
138
139 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
140
141 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
142
143 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
144
145 JPDF_t _pdf;
146 _pdf.load(file_name.c_str());
147
148 _pdf.setExceptionHandler(supervisor);
149
150 _npe[ i ] = JNPE_t(_pdf, T_ns);
151 }
152 // Add NPEs
153 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
154
155 _npe[ i ].add(_npe[i-1]);
156
157 JNPE_t buffer;
158
159 _npe[i-1].swap(buffer);
160 }
161 }
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).
JPHYSICS::JPDFTable< JFunction1D_t, JPDFMaplist_t > JPDF_t
static const JPDFType_t pdf_t[NUMBER_OF_PDFS]
PDF types.
JPHYSICS::JNPETable< double, double, JNPEMaplist_t > JNPE_t
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
void load(const char *file_name)
Load from input file.

Member Function Documentation

◆ getNPE()

const JNPEs_t & JFIT::JRegressorStorage< JShower3EZ, JSimplex >::getNPE ( ) const
inline

Get NPEs.

Returns
PDFs

Definition at line 170 of file JShower3EZRegressor.hh.

171 {
172 return _npe;
173 }

Member Data Documentation

◆ NUMBER_OF_PDFS

const int JFIT::JRegressorStorage< JShower3EZ, JSimplex >::NUMBER_OF_PDFS = 2
static

Definition at line 113 of file JShower3EZRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 178 of file JShower3EZRegressor.hh.

◆ T_ns

Time window with respect to Cherenkov hypothesis [ns].

Definition at line 179 of file JShower3EZRegressor.hh.

◆ _npe

PDFs.

Definition at line 182 of file JShower3EZRegressor.hh.


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