Jpp test-rotations-old
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::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap > > > > JPDFMaplist_t
 
typedef JPHYSICS::JPDFTable< JFunction1D_t, JPDFMaplist_tJPDF_t
 
typedef JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JMapList< JTOOLS::JPolint0FunctionalGridMap > > > > 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)
 Constructor.
 
const JNPEs_tgetNPE () const
 Get NPEs.
 

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 95 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 118 of file JShower3EZRegressor.hh.

119 {}

◆ JRegressorStorage() [2/2]

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

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

Parameters
fileDescriptorPDF file descriptor

Definition at line 130 of file JShower3EZRegressor.hh.

131 {
132 using namespace std;
133 using namespace JPP;
134
135 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
136
137 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
138
139 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
140
141 JPDF_t _pdf;
142 _pdf.load(file_name.c_str());
143
144 _pdf.setExceptionHandler(supervisor);
145
146 _npe[ i ] = JNPE_t(_pdf);
147 }
148 // Add NPEs
149 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
150
151 _npe[ i ].add(_npe[i-1]);
152
153 JNPE_t buffer;
154
155 _npe[i-1].swap(buffer);
156 }
157 }
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
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 166 of file JShower3EZRegressor.hh.

167 {
168 return _npe;
169 }

Member Data Documentation

◆ NUMBER_OF_PDFS

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

Definition at line 111 of file JShower3EZRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 174 of file JShower3EZRegressor.hh.

◆ _npe

PDFs.

Definition at line 177 of file JShower3EZRegressor.hh.


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