MINT2
FitFraction.h
Go to the documentation of this file.
1 #ifndef MINT_DALITZ_FITFRACTION_HH
2 #define MINT_DALITZ_FITFRACTION_HH
3 
4 #include <string>
5 #include <iostream>
6 
7 class FitFraction{
8  protected:
9  std::string _name;
11  public:
12  FitFraction();
13  FitFraction(const std::string& name
14  , double frac=0
15  , double sigmaFit=-9999.0
16  , double sigmaInteg=-9999.0);
17  FitFraction(const FitFraction& other);
18 
19  const std::string& name() const{return _name;}
20 
21  double& frac(){return _frac;}
22  const double& frac()const {return _frac;}
23 
24  double& sigmaFit(){return _sigmaFit;}
25  const double& sigmaFit() const{return _sigmaFit;}
26 
27  double& sigmaInteg(){return _sigmaInteg;}
28  double sigmaInteg() const{return _sigmaInteg;}
29 
30  void print(std::ostream& os) const;
31 
32 };
33 
34 std::ostream& operator<<(std::ostream& os, const FitFraction& ff);
35 
36 #endif
37 //
double _frac
Definition: FitFraction.h:10
double _sigmaFit
Definition: FitFraction.h:10
const double & sigmaFit() const
Definition: FitFraction.h:25
double sigmaInteg() const
Definition: FitFraction.h:28
void print(std::ostream &os) const
Definition: FitFraction.cpp:29
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
std::ostream & operator<<(std::ostream &os, const FitFraction &ff)
Definition: FitFraction.cpp:35
const double & frac() const
Definition: FitFraction.h:22
const std::string & name() const
Definition: FitFraction.h:19