laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauAsymmCalc.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2004 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 
33 #ifndef LAU_ASYMM_CALC
34 #define LAU_ASYMM_CALC
35 
36 #include "Rtypes.h"
37 
38 
39 class LauAsymmCalc {
40 
41  public:
43 
47  LauAsymmCalc(Double_t negValue, Double_t posValue);
48 
50  virtual ~LauAsymmCalc();
51 
53  LauAsymmCalc(const LauAsymmCalc& rhs);
54 
56  LauAsymmCalc& operator=(const LauAsymmCalc& rhs);
57 
59 
62  Double_t getAsymmetry() {return asymm_;}
63 
64  protected:
66 
69  Double_t calcAsymmetry();
70 
71  private:
73  Double_t negValue_;
74 
76  Double_t posValue_;
77 
79  Double_t asymm_;
80 
81  ClassDef(LauAsymmCalc,0) // Calculate asymmetry between two variables
82 };
83 
84 #endif
Double_t asymm_
The asymmetry.
Definition: LauAsymmCalc.hh:79
LauAsymmCalc & operator=(const LauAsymmCalc &rhs)
Copy assignment operator.
Definition: LauAsymmCalc.cc:51
Class for calculating the asymmetry between two variables.
Definition: LauAsymmCalc.hh:39
Double_t negValue_
The negative value.
Definition: LauAsymmCalc.hh:73
Double_t posValue_
The positive value.
Definition: LauAsymmCalc.hh:76
LauAsymmCalc(Double_t negValue, Double_t posValue)
Constructor.
Definition: LauAsymmCalc.cc:36
virtual ~LauAsymmCalc()
Destructor.
Definition: LauAsymmCalc.cc:61
Double_t calcAsymmetry()
Calculate the asymmetry.
Definition: LauAsymmCalc.cc:65
Double_t getAsymmetry()
Retrieve the asymmetry.
Definition: LauAsymmCalc.hh:62