Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JRegressorStorage< JShower3EZ, JAbstractMinimiser > Struct Reference

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

#include <JShower3EZRegressor.hh>

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)
 Parameterized 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 615 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, JAbstractMinimiser >::JRegressorStorage ( )
inline

Default constructor.

Definition at line 638 of file JShower3EZRegressor.hh.

639 {}

◆ JRegressorStorage() [2/2]

JFIT::JRegressorStorage< JShower3EZ, JAbstractMinimiser >::JRegressorStorage ( const std::string & fileDescriptor)
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<JShower3Z, JAbstractMinimiser>::pdf_t.

Parameters
fileDescriptorPDF file descriptor

Definition at line 650 of file JShower3EZRegressor.hh.

651 {
652 using namespace std;
653 using namespace JPP;
654
655 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
656
657 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
658
659 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
660
661 JPDF_t _pdf;
662 _pdf.load(file_name.c_str());
663
664 _pdf.setExceptionHandler(supervisor);
665
666 _npe[i] = JNPE_t(_pdf);
667
668 }
669
670 // Add PDFs
671 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
672
673 _npe[i].add(_npe[i-1]);
674
675 JNPE_t buffer;
676
677 _npe[i-1].swap(buffer);
678 }
679 }
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
JPHYSICS::JNPETable< double, double, JNPEMaplist_t > JNPE_t
static const JPDFType_t pdf_t[NUMBER_OF_PDFS]
PDF types.
void load(const char *file_name)
Load from input file.

Member Function Documentation

◆ getNPE()

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

Get NPEs.

Returns
PDFs

Definition at line 688 of file JShower3EZRegressor.hh.

689 {
690 return _npe;
691 }

Member Data Documentation

◆ NUMBER_OF_PDFS

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

Definition at line 631 of file JShower3EZRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 696 of file JShower3EZRegressor.hh.

◆ _npe

PDFs.

Definition at line 699 of file JShower3EZRegressor.hh.


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