laura is hosted by Hepforge, IPPP Durham
Laura++  v3r4
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauBlind.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2015 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 
37 #ifndef LAU_BLIND
38 #define LAU_BLIND
39 
40 #include "TString.h"
41 
42 class LauBlind {
43 
44  public:
46 
50  LauBlind(const TString& blindingStr, const Double_t width);
51 
53  LauBlind(const LauBlind& rhs);
54 
56  virtual ~LauBlind();
57 
59 
63  inline Double_t blind(const Double_t val) const { return val+offset_; }
64 
66 
70  inline Double_t unblind(const Double_t val) const { return val-offset_; }
71 
73 
76  inline const TString& blindingString() const { return blindingString_; }
77 
79 
82  inline Double_t blindingWidth() const { return blindingWidth_; }
83 
84  private:
86  LauBlind& operator=(const LauBlind& rhs);
87 
89  void calcOffset();
90 
92  const TString blindingString_;
93 
95  const Double_t blindingWidth_;
96 
98  Double_t offset_;
99 
100  public:
102 
105  LauBlind();
106 
107 
108  ClassDef(LauBlind, 1)
109 };
110 
111 #endif
LauBlind()
Default constructor.
Definition: LauBlind.cc:37
const Double_t blindingWidth_
The Gaussian width.
Definition: LauBlind.hh:95
void calcOffset()
Calculate the offset.
Definition: LauBlind.cc:63
const TString blindingString_
The blinding string.
Definition: LauBlind.hh:92
LauBlind & operator=(const LauBlind &rhs)
Copy assignment operator (not implemented)
const TString & blindingString() const
Obtain the blinding string.
Definition: LauBlind.hh:76
virtual ~LauBlind()
Destructor.
Definition: LauBlind.cc:59
Double_t unblind(const Double_t val) const
Obtain the unblinded value.
Definition: LauBlind.hh:70
Double_t offset_
The offset used to blind the value.
Definition: LauBlind.hh:98
Double_t blind(const Double_t val) const
Obtain the blinded value.
Definition: LauBlind.hh:63
Double_t blindingWidth() const
Obtain the Gaussian width.
Definition: LauBlind.hh:82
Class for blinding and unblinding a number based on a blinding string.
Definition: LauBlind.hh:42