Public Member Functions | Protected Attributes | List of all members
fnex::FitEvaluation Class Referenceabstract

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/FNEX/core/FitEvaluation.h"

Inheritance diagram for fnex::FitEvaluation:
fnex::FitEval_ChiSq fnex::FitEval_Counting fnex::FitEval_UBL

Public Member Functions

 FitEvaluation (fhicl::ParameterSet const &pset)
 
virtual ~FitEvaluation ()
 
virtual void Reconfigure (fhicl::ParameterSet const &pset)=0
 
virtual double FitValue (TH1D const &hData, TH1D const &hMC, std::vector< double > const &pDataVals=std::vector< double >(0), std::vector< double > const &pDataWeights=std::vector< double >(0))=0
 
virtual int NDOF (TH1D const &hData, TH1D const &hMC, std::vector< double > const &pDataVals=std::vector< double >(0), std::vector< double > const &pDataWeights=std::vector< double >(0))=0
 
bool IsConfigured ()
 
void SetRange (double pRangeMin, double pRangeMax)
 
void SetRangeMin (double p)
 
void SetRangeMax (double p)
 
double GetRangeMin ()
 
double GetRangeMax ()
 
void EnforceSanity ()
 

Protected Attributes

bool fIsConfigured
 
double fRangeMin
 
double fRangeMax
 

Detailed Description

Definition at line 10 of file FitEvaluation.h.

Constructor & Destructor Documentation

fnex::FitEvaluation::FitEvaluation ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 5 of file FitEvaluation.cxx.

References fRangeMax, and fRangeMin.

6  : fIsConfigured(false)
7  {
8  fRangeMin = 0.0;
9  fRangeMax = 0.0;
10  }
virtual fnex::FitEvaluation::~FitEvaluation ( )
inlinevirtual

Definition at line 16 of file FitEvaluation.h.

References FitValue(), IsConfigured(), NDOF(), Reconfigure(), SetRange(), SetRangeMax(), and SetRangeMin().

16 {};

Member Function Documentation

void fnex::FitEvaluation::EnforceSanity ( )

Definition at line 32 of file FitEvaluation.cxx.

References fRangeMax, fRangeMin, and std::swap().

Referenced by GetRangeMax(), SetRange(), SetRangeMax(), and SetRangeMin().

32  {
34  }
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
virtual double fnex::FitEvaluation::FitValue ( TH1D const &  hData,
TH1D const &  hMC,
std::vector< double > const &  pDataVals = std::vector< double >(0),
std::vector< double > const &  pDataWeights = std::vector< double >(0) 
)
pure virtual

Referenced by ~FitEvaluation().

double fnex::FitEvaluation::GetRangeMax ( )
inline

Definition at line 41 of file FitEvaluation.h.

References EnforceSanity(), and fRangeMax.

41 { return fRangeMax; }
double fnex::FitEvaluation::GetRangeMin ( )
inline

Definition at line 40 of file FitEvaluation.h.

References fRangeMin.

40 { return fRangeMin; }
bool fnex::FitEvaluation::IsConfigured ( )

Definition at line 12 of file FitEvaluation.cxx.

References fIsConfigured.

Referenced by ~FitEvaluation().

12  {
13  return fIsConfigured;
14  }
virtual int fnex::FitEvaluation::NDOF ( TH1D const &  hData,
TH1D const &  hMC,
std::vector< double > const &  pDataVals = std::vector< double >(0),
std::vector< double > const &  pDataWeights = std::vector< double >(0) 
)
pure virtual

Referenced by ~FitEvaluation().

virtual void fnex::FitEvaluation::Reconfigure ( fhicl::ParameterSet const &  pset)
pure virtual
void fnex::FitEvaluation::SetRange ( double  pRangeMin,
double  pRangeMax 
)

Definition at line 16 of file FitEvaluation.cxx.

References EnforceSanity(), fRangeMax, and fRangeMin.

Referenced by ~FitEvaluation().

16  {
17  fRangeMin = pRangeMin;
18  fRangeMax = pRangeMax;
19  this->EnforceSanity();
20  }
void fnex::FitEvaluation::SetRangeMax ( double  p)

Definition at line 27 of file FitEvaluation.cxx.

References EnforceSanity(), and fRangeMax.

Referenced by ~FitEvaluation().

27  {
28  fRangeMax = p;
29  this->EnforceSanity();
30  }
const char * p
Definition: xmltok.h:285
void fnex::FitEvaluation::SetRangeMin ( double  p)

Definition at line 22 of file FitEvaluation.cxx.

References EnforceSanity(), and fRangeMin.

Referenced by ~FitEvaluation().

22  {
23  fRangeMin = p;
24  this->EnforceSanity();
25  }
const char * p
Definition: xmltok.h:285

Member Data Documentation

bool fnex::FitEvaluation::fIsConfigured
protected
double fnex::FitEvaluation::fRangeMax
protected
double fnex::FitEvaluation::fRangeMin
protected

The documentation for this class was generated from the following files: