ra4_stats
0341147a0dc35f80f4e12c6003afb76a38e2ed6e
|
#include <process.hpp>
Public Member Functions | |
Process ()=default | |
Process (const std::string &name, const std::set< std::string > &file_names, const Cut &cut=::Cut(), bool is_data=false, bool is_signal=false, bool count_zeros=true, const SystCollection &systematics=SystCollection()) | |
Process (const std::string &name, std::initializer_list< std::string > file_names, const Cut &cut=::Cut(), bool is_data=false, bool is_signal=false, bool count_zeros=true, const SystCollection &systematics=SystCollection()) | |
const std::string & | Name () const |
Process & | Name (const std::string &name) |
const class Cut & | Cut () const |
class Cut & | Cut () |
const bool & | IsData () const |
bool & | IsData () |
const bool & | IsSignal () const |
bool & | IsSignal () |
const bool & | CountZeros () const |
bool & | CountZeros () |
const std::set< std::string > & | FileNames () const |
long | GetEntries () const |
GammaParams | GetYield (const class Cut &cut=::Cut("1")) const |
const SystCollection & | Systematics () const |
Process & | Systematics (const SystCollection &systematics) |
Process & | AddSystematic (const Systematic &systematic) |
Process & | AddSystematics (const SystCollection &systematic) |
bool | HasSystematic (const Systematic &systematic) const |
Process & | RemoveSystematic (const Systematic &systematic) |
Process & | RemoveSystematics () |
Process & | SetSystematicStrength (const std::string &name, double strength) |
bool | operator< (const Process &p) const |
bool | operator== (const Process &p) const |
Private Types | |
typedef std::set< Systematic > | SystCollection |
Private Member Functions | |
void | CleanName () |
void | AddFiles () |
Private Attributes | |
std::set< std::string > | file_names_ |
std::shared_ptr< TChain > | chain_ |
class Cut | cut_ |
std::string | name_ |
bool | is_data_ |
bool | is_signal_ |
bool | count_zeros_ |
SystCollection | systematics_ |
Definition at line 17 of file process.hpp.
|
private |
Definition at line 18 of file process.hpp.
|
default |
Process::Process | ( | const std::string & | name, |
const std::set< std::string > & | file_names, | ||
const Cut & | cut = ::Cut() , |
||
bool | is_data = false , |
||
bool | is_signal = false , |
||
bool | count_zeros = true , |
||
const SystCollection & | systematics = SystCollection() |
||
) |
Process::Process | ( | const std::string & | name, |
std::initializer_list< std::string > | file_names, | ||
const Cut & | cut = ::Cut() , |
||
bool | is_data = false , |
||
bool | is_signal = false , |
||
bool | count_zeros = true , |
||
const SystCollection & | systematics = SystCollection() |
||
) |
|
private |
Definition at line 182 of file process.cpp.
References chain_, anonymous_namespace{plot_likelihood.cxx}::file_name, and file_names_.
Process & Process::AddSystematic | ( | const Systematic & | systematic | ) |
Definition at line 119 of file process.cpp.
References HasSystematic(), and systematics_.
Referenced by AddSystematics().
Process & Process::AddSystematics | ( | const SystCollection & | systematic | ) |
Definition at line 126 of file process.cpp.
References AddSystematic().
|
private |
Definition at line 178 of file process.cpp.
References name_, and ReplaceAll().
Referenced by Name().
const bool & Process::CountZeros | ( | ) | const |
Definition at line 102 of file process.cpp.
References count_zeros_.
Referenced by YieldManager::ComputeYield(), and operator<<().
bool & Process::CountZeros | ( | ) |
Definition at line 106 of file process.cpp.
References count_zeros_.
const class Cut & Process::Cut | ( | ) | const |
Definition at line 62 of file process.cpp.
References cut_.
Referenced by YieldManager::ComputeYield(), and operator<<().
class Cut & Process::Cut | ( | ) |
Definition at line 66 of file process.cpp.
References cut_.
const set< string > & Process::FileNames | ( | ) | const |
Definition at line 70 of file process.cpp.
References file_names_.
long Process::GetEntries | ( | ) | const |
Definition at line 74 of file process.cpp.
References chain_.
Referenced by YieldManager::ComputeYield().
GammaParams Process::GetYield | ( | const class Cut & | cut = ::Cut("1") | ) | const |
Definition at line 78 of file process.cpp.
References chain_, cut_, GetCountAndUncertainty(), and GammaParams::SetYieldAndUncertainty().
Referenced by YieldManager::ComputeYield().
bool Process::HasSystematic | ( | const Systematic & | systematic | ) | const |
const bool & Process::IsData | ( | ) | const |
Definition at line 86 of file process.cpp.
References is_data_.
Referenced by YieldManager::ComputeYield(), operator<<(), and WorkspaceGenerator::PrintComparison().
bool & Process::IsData | ( | ) |
Definition at line 90 of file process.cpp.
References is_data_.
const bool & Process::IsSignal | ( | ) | const |
Definition at line 94 of file process.cpp.
References is_signal_.
Referenced by operator<<(), and WorkspaceGenerator::PrintComparison().
bool & Process::IsSignal | ( | ) |
Definition at line 98 of file process.cpp.
References is_signal_.
const string & Process::Name | ( | ) | const |
Definition at line 52 of file process.cpp.
References name_.
Referenced by WorkspaceGenerator::AddSignalPredictions(), YieldManager::ComputeYield(), operator<<(), and WorkspaceGenerator::PrintComparison().
Process & Process::Name | ( | const std::string & | name | ) |
Definition at line 56 of file process.cpp.
References CleanName(), scan_aggregate::name, and name_.
bool Process::operator< | ( | const Process & | p | ) | const |
Definition at line 168 of file process.cpp.
References count_zeros_, cut_, file_names_, and systematics_.
bool Process::operator== | ( | const Process & | p | ) | const |
Definition at line 173 of file process.cpp.
References count_zeros_, cut_, file_names_, and systematics_.
Process & Process::RemoveSystematic | ( | const Systematic & | systematic | ) |
Definition at line 137 of file process.cpp.
References anonymous_namespace{test_agnostic.cxx}::e, ERROR, Systematic::Name(), name_, and systematics_.
Process & Process::RemoveSystematics | ( | ) |
Definition at line 146 of file process.cpp.
References systematics_.
Process & Process::SetSystematicStrength | ( | const std::string & | name, |
double | strength | ||
) |
Definition at line 151 of file process.cpp.
References ERROR, scan_aggregate::name, name_, Systematic::Strength(), and systematics_.
const Process::SystCollection & Process::Systematics | ( | ) | const |
Definition at line 110 of file process.cpp.
References systematics_.
Referenced by WorkspaceGenerator::AddSignalPredictions().
Process & Process::Systematics | ( | const SystCollection & | systematics | ) |
Definition at line 114 of file process.cpp.
References systematics_.
|
mutableprivate |
Definition at line 70 of file process.hpp.
Referenced by AddFiles(), GetEntries(), and GetYield().
|
private |
Definition at line 75 of file process.hpp.
Referenced by CountZeros(), operator<(), and operator==().
|
private |
Definition at line 71 of file process.hpp.
Referenced by Cut(), GetYield(), operator<(), and operator==().
|
private |
Definition at line 69 of file process.hpp.
Referenced by AddFiles(), FileNames(), operator<(), and operator==().
|
private |
Definition at line 73 of file process.hpp.
Referenced by IsData().
|
private |
Definition at line 74 of file process.hpp.
Referenced by IsSignal().
|
private |
Definition at line 72 of file process.hpp.
Referenced by CleanName(), Name(), RemoveSystematic(), and SetSystematicStrength().
|
private |
Definition at line 76 of file process.hpp.
Referenced by AddSystematic(), HasSystematic(), operator<(), operator==(), RemoveSystematic(), RemoveSystematics(), SetSystematicStrength(), and Systematics().