Implementation of nuisance based on histogram.
More...
#include <JNuisance.hh>
|
| virtual | ~JNuisanceTH1 () |
| | Virtual destructor.
|
| |
| virtual std::istream & | read (std::istream &in) override |
| | Read nuisance from input stream.
|
| |
| virtual std::ostream & | write (std::ostream &out) const override |
| | Write nuisance to output stream.
|
| |
| double | get () const override |
| | Get value.
|
| |
|
| static constexpr double | FACTOR = 1.0 |
| | Central value.
|
| |
|
| void | load () |
| | Load histogram from file.
|
| |
|
| TFile * | in = NULL |
| |
| TH1D * | h1 = NULL |
| |
Implementation of nuisance based on histogram.
Definition at line 256 of file JNuisance.hh.
◆ ~JNuisanceTH1()
| virtual JASTRONOMY::JNuisanceTH1::~JNuisanceTH1 |
( |
| ) |
|
|
inlinevirtual |
◆ read()
| virtual std::istream & JASTRONOMY::JNuisanceTH1::read |
( |
std::istream & | in | ) |
|
|
inlineoverridevirtual |
Read nuisance from input stream.
- Parameters
-
- Returns
- input stream
Implements JASTRONOMY::JNuisance.
Definition at line 276 of file JNuisance.hh.
277 {
280
282
284 }
void load()
Load histogram from file.
◆ write()
| virtual std::ostream & JASTRONOMY::JNuisanceTH1::write |
( |
std::ostream & | out | ) |
const |
|
inlineoverridevirtual |
◆ get()
| double JASTRONOMY::JNuisanceTH1::get |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ load()
| void JASTRONOMY::JNuisanceTH1::load |
( |
| ) |
|
|
inlineprotected |
Load histogram from file.
Definition at line 318 of file JNuisance.hh.
319 {
321
322 if (
in == NULL || !
in->IsOpen()) {
323 THROW(JFileOpenException,
"File: " <<
filename <<
" not opened.");
324 }
325
327
329 THROW(JValueOutOfRange,
"Histogram: " <<
histname <<
" not found.");
330 }
331 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
◆ filename
| std::string JASTRONOMY::JNuisanceTH1::filename |
◆ histname
| std::string JASTRONOMY::JNuisanceTH1::histname |
◆ in
| TFile* JASTRONOMY::JNuisanceTH1::in = NULL |
|
mutableprotected |
◆ h1
| TH1D* JASTRONOMY::JNuisanceTH1::h1 = NULL |
|
mutableprotected |
◆ FACTOR
| double JASTRONOMY::JNuisance::FACTOR = 1.0 |
|
staticconstexprinherited |
The documentation for this struct was generated from the following file: