BCMTFSystematic.h
1 #ifndef __BCMTFSYSTEMATIC__H
2 #define __BCMTFSYSTEMATIC__H
3 
14 /*
15  * Copyright (C) 2007-2018, the BAT core developer team
16  * All rights reserved.
17  *
18  * For the licensing terms see doc/COPYING.
19  * For documentation see http://mpp.mpg.de/bat
20  */
21 
22 // ---------------------------------------------------------
23 
24 #include "../../BAT/BCAux.h"
25 
26 #include <string>
27 
28 // ---------------------------------------------------------
30 {
31 public:
32 
39  BCMTFSystematic(const std::string& name);
40 
44 
51  const std::string& GetName() const
52  { return fName; };
53 
56  const std::string& GetSafeName() const
57  { return fSafeName; };
58 
62  { return fFlagSystematicActive; };
63 
71  void SetFlagSystematicActive(bool flag)
72  { fFlagSystematicActive = flag; };
73 
75  void SetName(const std::string& name)
76  { fName = name; fSafeName = BCAux::SafeName(fName); }
77 
80 private:
81 
84  std::string fName;
85 
88  std::string fSafeName;
89 
92  bool fFlagSystematicActive;
93 
94 };
95 // ---------------------------------------------------------
96 
97 #endif
const std::string & GetSafeName() const
const std::string & GetName() const
std::string SafeName(const std::string &name)
Convert a name into a safe name for use in ROOT object naming.
Definition: BCAux.cxx:111
void SetFlagSystematicActive(bool flag)
Set a flag defining if this uncertainty is active or not.
~BCMTFSystematic()
The default destructor.
bool GetFlagSystematicActive() const
BCMTFSystematic(const std::string &name)
The default constructor.
void SetName(const std::string &name)
Set name.
A class desribing a systematic uncertainty.