MINT2
Public Member Functions | Protected Attributes | List of all members
FitFraction Class Reference

#include <FitFraction.h>

Public Member Functions

 FitFraction ()
 
 FitFraction (const std::string &name, double frac=0, double sigmaFit=-9999.0, double sigmaInteg=-9999.0)
 
 FitFraction (const FitFraction &other)
 
const std::string & name () const
 
double & frac ()
 
const double & frac () const
 
double & sigmaFit ()
 
const double & sigmaFit () const
 
double & sigmaInteg ()
 
double sigmaInteg () const
 
void print (std::ostream &os) const
 

Protected Attributes

std::string _name
 
double _frac
 
double _sigmaFit
 
double _sigmaInteg
 

Detailed Description

Definition at line 7 of file FitFraction.h.

Constructor & Destructor Documentation

◆ FitFraction() [1/3]

FitFraction::FitFraction ( )

Definition at line 5 of file FitFraction.cpp.

6  : _name("FractionWithNoName")
7  , _frac(0)
8  , _sigmaFit(-9999.0)
9  , _sigmaInteg(-9999.0)
10 {}
double _frac
Definition: FitFraction.h:10
double _sigmaFit
Definition: FitFraction.h:10
double _sigmaInteg
Definition: FitFraction.h:10
std::string _name
Definition: FitFraction.h:9

◆ FitFraction() [2/3]

FitFraction::FitFraction ( const std::string &  name,
double  frac = 0,
double  sigmaFit = -9999.0,
double  sigmaInteg = -9999.0 
)

Definition at line 12 of file FitFraction.cpp.

16  : _name(name)
17  , _frac(frac)
20 {
21 }
double _frac
Definition: FitFraction.h:10
double _sigmaFit
Definition: FitFraction.h:10
double & sigmaFit()
Definition: FitFraction.h:24
double _sigmaInteg
Definition: FitFraction.h:10
double & sigmaInteg()
Definition: FitFraction.h:27
double & frac()
Definition: FitFraction.h:21
std::string _name
Definition: FitFraction.h:9
const std::string & name() const
Definition: FitFraction.h:19

◆ FitFraction() [3/3]

FitFraction::FitFraction ( const FitFraction other)

Definition at line 22 of file FitFraction.cpp.

23  : _name(other._name)
24  , _frac(other._frac)
25  , _sigmaFit(other._sigmaFit)
26  , _sigmaInteg(other._sigmaInteg)
27 {
28 }
double _frac
Definition: FitFraction.h:10
double _sigmaFit
Definition: FitFraction.h:10
double _sigmaInteg
Definition: FitFraction.h:10
std::string _name
Definition: FitFraction.h:9

Member Function Documentation

◆ frac() [1/2]

double& FitFraction::frac ( )
inline

Definition at line 21 of file FitFraction.h.

21 {return _frac;}
double _frac
Definition: FitFraction.h:10

◆ frac() [2/2]

const double& FitFraction::frac ( ) const
inline

Definition at line 22 of file FitFraction.h.

22 {return _frac;}
double _frac
Definition: FitFraction.h:10

◆ name()

const std::string& FitFraction::name ( ) const
inline

Definition at line 19 of file FitFraction.h.

19 {return _name;}
std::string _name
Definition: FitFraction.h:9

◆ print()

void FitFraction::print ( std::ostream &  os) const

Definition at line 29 of file FitFraction.cpp.

29  {
30  os << name() << " = " << frac();
31  if(sigmaFit() >= 0.0) os << " +/- " << sigmaFit() << "(fit)";
32  if(sigmaInteg() >=0.0) os << " +/- " << sigmaInteg() << "(integ)";
33 }
double & sigmaFit()
Definition: FitFraction.h:24
double & sigmaInteg()
Definition: FitFraction.h:27
double & frac()
Definition: FitFraction.h:21
const std::string & name() const
Definition: FitFraction.h:19

◆ sigmaFit() [1/2]

double& FitFraction::sigmaFit ( )
inline

Definition at line 24 of file FitFraction.h.

24 {return _sigmaFit;}
double _sigmaFit
Definition: FitFraction.h:10

◆ sigmaFit() [2/2]

const double& FitFraction::sigmaFit ( ) const
inline

Definition at line 25 of file FitFraction.h.

25 {return _sigmaFit;}
double _sigmaFit
Definition: FitFraction.h:10

◆ sigmaInteg() [1/2]

double& FitFraction::sigmaInteg ( )
inline

Definition at line 27 of file FitFraction.h.

27 {return _sigmaInteg;}
double _sigmaInteg
Definition: FitFraction.h:10

◆ sigmaInteg() [2/2]

double FitFraction::sigmaInteg ( ) const
inline

Definition at line 28 of file FitFraction.h.

28 {return _sigmaInteg;}
double _sigmaInteg
Definition: FitFraction.h:10

Member Data Documentation

◆ _frac

double FitFraction::_frac
protected

Definition at line 10 of file FitFraction.h.

◆ _name

std::string FitFraction::_name
protected

Definition at line 9 of file FitFraction.h.

◆ _sigmaFit

double FitFraction::_sigmaFit
protected

Definition at line 10 of file FitFraction.h.

◆ _sigmaInteg

double FitFraction::_sigmaInteg
protected

Definition at line 10 of file FitFraction.h.


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