4 #include "BasicTypes.hxx" 9 WeightType(Float_t w=1) {Correction= Systematic=w;}
10 WeightType(Float_t c, Float_t s){Correction=c;Systematic=s;}
25 WeightType& operator *=(
const WeightType& w){Correction*=w.Correction; Systematic*=w.Systematic;
return *
this;}
26 WeightType& operator /=(
const WeightType& w){Correction/=w.Correction; Systematic/=w.Systematic;
return *
this;}
28 WeightType& operator +=(
const WeightType& w){Correction += w.Correction; Systematic += w.Systematic;
return *
this;}
29 WeightType& operator -=(
const WeightType& w){Correction -= w.Correction; Systematic -= w.Systematic;
return *
this;}
31 WeightType& operator *=(Float_t a){Correction*=a; Systematic*=a;
return *
this;}
32 WeightType& operator /=(Float_t a){Correction/=a; Systematic/=a;
return *
this;}
35 WeightType& operator +=(Float_t a){Correction += a; Systematic += a;
return *
this;}
36 WeightType& operator -=(Float_t a){Correction -= a; Systematic -= a;
return *
this;}
39 bool operator ==(
const WeightType& w){
return (Correction==w.Correction && Systematic==w.Systematic);}
40 bool operator !=(
const WeightType& w){
return (Correction!=w.Correction || Systematic!=w.Systematic);}
42 bool operator ==(Float_t a){
return (Systematic==a);}
43 bool operator !=(Float_t a){
return (Systematic!=a);}
52 std::ostream& operator<<(std::ostream &os,
const WeightType& w);