laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauAbsRValue.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2014 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
36 #ifndef LAU_ABSRVALUE
37 #define LAU_ABSRVALUE
38 
39 #include <vector>
40 
41 class LauParameter;
42 
43 class LauAbsRValue {
44 
45  public:
48 
50  virtual ~LauAbsRValue() {}
51 
53  LauAbsRValue(const LauAbsRValue& /*rhs*/) {}
54 
56  LauAbsRValue& operator=(const LauAbsRValue& /*rhs*/) {return *this;}
57 
59 
62  virtual const TString& name() const =0;
63 
65 
68  virtual void name(const TString& newName) =0;
69 
71 
74  virtual Double_t value() const =0;
75 
77 
80  virtual Double_t unblindValue() const =0;
81 
83 
86  virtual Double_t genValue() const =0;
87 
89 
92  virtual Double_t initValue() const =0;
93 
95 
98  virtual Bool_t gaussConstraint() const =0;
99 
101 
104  virtual Double_t constraintMean() const =0;
105 
107 
110  virtual Double_t constraintWidth() const =0;
111 
113 
116  virtual std::vector<LauParameter*> getPars() =0;
117 
119 
122  virtual Bool_t isLValue() const =0;
123 
125 
128  virtual Bool_t fixed() const =0;
129 
131 
134  virtual Bool_t blind() const =0;
135 
136  private:
137 
138  ClassDef(LauAbsRValue,1) // Abstract base class for R parameters
139 };
140 
141 #endif
virtual Bool_t isLValue() const =0
Is the parameter also an L value or not.
LauAbsRValue & operator=(const LauAbsRValue &)
Copy assignment operator.
Definition: LauAbsRValue.hh:56
virtual Double_t unblindValue() const =0
The unblinded value of the parameter.
virtual const TString & name() const =0
Return the name of the parameter.
virtual Bool_t blind() const =0
The blinding state.
virtual Double_t constraintMean() const =0
The mean of the Gaussian constraint.
virtual Double_t constraintWidth() const =0
The width of the Gaussian constraint.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:49
virtual Bool_t fixed() const =0
Check is the parameter is fixed or floated.
virtual Bool_t gaussConstraint() const =0
Check whether a Gaussian constraints is applied.
LauAbsRValue(const LauAbsRValue &)
Copy constructor.
Definition: LauAbsRValue.hh:53
virtual Double_t value() const =0
Return the value of the parameter.
virtual ~LauAbsRValue()
Destructor.
Definition: LauAbsRValue.hh:50
virtual Double_t initValue() const =0
The initial value of the parameter.
virtual std::vector< LauParameter * > getPars()=0
Return the list of LauParameters on which the LauAbsRValue depends.
Pure abstract base class for defining a parameter containing an R value.
Definition: LauAbsRValue.hh:43
LauAbsRValue()
Constructor.
Definition: LauAbsRValue.hh:47
virtual Double_t genValue() const =0
The value generated for the parameter.