ra4_stats
0341147a0dc35f80f4e12c6003afb76a38e2ed6e
|
#include <yield_manager.hpp>
Public Member Functions | |
YieldManager (double lumi=4.) | |
GammaParams | GetYield (const YieldKey &key) const |
GammaParams | GetYield (const Bin &bin, const Process &process, const Cut &cut) const |
const double & | Luminosity () const |
double & | Luminosity () |
Private Member Functions | |
bool | HaveYield (const YieldKey &key) const |
void | ComputeYield (const YieldKey &key) const |
Private Attributes | |
double | local_lumi_ |
bool | verbose_ |
Static Private Attributes | |
static std::map< YieldKey, GammaParams > | yields_ = map<YieldKey, GammaParams>() |
static const double | store_lumi_ = 4. |
Definition at line 12 of file yield_manager.hpp.
|
explicit |
Definition at line 17 of file yield_manager.cpp.
|
private |
Definition at line 49 of file yield_manager.cpp.
References Contains(), Process::CountZeros(), Bin::Cut(), Process::Cut(), GetBin(), GetCut(), Cut::GetCut(), Process::GetEntries(), GetProcess(), GetYield(), Process::GetYield(), HaveYield(), Process::IsData(), local_lumi_, Bin::Name(), Process::Name(), ReplaceAll(), GammaParams::SetNEffectiveAndWeight(), GammaParams::SetYieldAndUncertainty(), store_lumi_, GammaParams::Uncertainty(), verbose_, GammaParams::Weight(), GammaParams::Yield(), and yields_.
Referenced by GetYield().
GammaParams YieldManager::GetYield | ( | const YieldKey & | key | ) | const |
Definition at line 22 of file yield_manager.cpp.
References ComputeYield(), GetProcess(), HaveYield(), local_lumi_, store_lumi_, and yields_.
Referenced by BlockYields::BlockYields(), ComputeYield(), GetYield(), and WorkspaceGenerator::GetYield().
GammaParams YieldManager::GetYield | ( | const Bin & | bin, |
const Process & | process, | ||
const Cut & | cut | ||
) | const |
Definition at line 31 of file yield_manager.cpp.
References GetYield().
|
private |
Definition at line 45 of file yield_manager.cpp.
References yields_.
Referenced by ComputeYield(), and GetYield().
const double & YieldManager::Luminosity | ( | ) | const |
Definition at line 37 of file yield_manager.cpp.
References local_lumi_.
Referenced by WorkspaceGenerator::GetYield().
double & YieldManager::Luminosity | ( | ) |
Definition at line 41 of file yield_manager.cpp.
References local_lumi_.
|
private |
Definition at line 27 of file yield_manager.hpp.
Referenced by ComputeYield(), GetYield(), and Luminosity().
|
staticprivate |
Definition at line 26 of file yield_manager.hpp.
Referenced by ComputeYield(), and GetYield().
|
private |
Definition at line 28 of file yield_manager.hpp.
Referenced by ComputeYield().
|
staticprivate |
Definition at line 25 of file yield_manager.hpp.
Referenced by ComputeYield(), GetYield(), and HaveYield().