laura is hosted by Hepforge, IPPP Durham
Laura++  v3r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauBlind.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2006 - 2015.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
23 #ifndef LAU_BLIND
24 #define LAU_BLIND
25 
26 #include "TString.h"
27 
28 class LauBlind {
29 
30  public:
32 
36  LauBlind(const TString& blindingStr, const Double_t width);
37 
39  LauBlind(const LauBlind& rhs);
40 
42  virtual ~LauBlind();
43 
45 
49  inline Double_t blind(const Double_t val) const { return val+offset_; }
50 
52 
56  inline Double_t unblind(const Double_t val) const { return val-offset_; }
57 
59 
62  inline const TString& blindingString() const { return blindingString_; }
63 
65 
68  inline Double_t blindingWidth() const { return blindingWidth_; }
69 
70  private:
72  LauBlind& operator=(const LauBlind& rhs);
73 
75  void calcOffset();
76 
78  const TString blindingString_;
79 
81  const Double_t blindingWidth_;
82 
84  Double_t offset_;
85 
86  public:
88 
91  LauBlind();
92 
93 
94  ClassDef(LauBlind, 1)
95 };
96 
97 #endif
LauBlind()
Default constructor.
Definition: LauBlind.cc:23
const Double_t blindingWidth_
The Gaussian width.
Definition: LauBlind.hh:81
void calcOffset()
Calculate the offset.
Definition: LauBlind.cc:49
const TString blindingString_
The blinding string.
Definition: LauBlind.hh:78
LauBlind & operator=(const LauBlind &rhs)
Copy assignment operator (not implemented)
const TString & blindingString() const
Obtain the blinding string.
Definition: LauBlind.hh:62
virtual ~LauBlind()
Destructor.
Definition: LauBlind.cc:45
Double_t unblind(const Double_t val) const
Obtain the unblinded value.
Definition: LauBlind.hh:56
Double_t offset_
The offset used to blind the value.
Definition: LauBlind.hh:84
Double_t blind(const Double_t val) const
Obtain the blinded value.
Definition: LauBlind.hh:49
Double_t blindingWidth() const
Obtain the Gaussian width.
Definition: LauBlind.hh:68
Class for blinding and unblinding a number based on a blinding string.
Definition: LauBlind.hh:28