Jpp 21.0.0-rc.1
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::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)
 Parameterized 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 636 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 659 of file JShower3EZRegressor.hh.

660 {}

◆ JRegressorStorage() [2/2]

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

Parameterized 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, JAbstractMinimiser>::pdf_t.

Parameters
fileDescriptorPDF file descriptor
T_nstime range [ns]

Definition at line 673 of file JShower3EZRegressor.hh.

673 :
674 T_ns(T_ns)
675 {
676 using namespace std;
677 using namespace JPP;
678
679 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
680
681 for (int i = 0; i != NUMBER_OF_PDFS; ++i) {
682
683 const string file_name = getFilename(fileDescriptor, pdf_t[i]);
684
685 JPDF_t _pdf;
686 _pdf.load(file_name.c_str());
687
688 _pdf.setExceptionHandler(supervisor);
689
690 _npe[i] = JNPE_t(_pdf, T_ns);
691
692 }
693
694 // Add PDFs
695 for (int i = 1; i < NUMBER_OF_PDFS; i += 2) {
696
697 _npe[i].add(_npe[i-1]);
698
699 JNPE_t buffer;
700
701 _npe[i-1].swap(buffer);
702 }
703 }
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
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
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 712 of file JShower3EZRegressor.hh.

713 {
714 return _npe;
715 }

Member Data Documentation

◆ NUMBER_OF_PDFS

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

Definition at line 652 of file JShower3EZRegressor.hh.

◆ pdf_t

PDF types.

Definition at line 720 of file JShower3EZRegressor.hh.

◆ T_ns

Time window with respect to Cherenkov hypothesis [ns].

Definition at line 721 of file JShower3EZRegressor.hh.

◆ _npe

PDFs.

Definition at line 724 of file JShower3EZRegressor.hh.


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