Class responsible for handling implementation of samples used in analysis, reweighting and returning LLH.
More...
#include <Samples/SampleHandlerBase.h>
|
void | QuietPlease () |
| CW: Redirect std::cout to silence some experiment specific libraries. More...
|
|
void | NowTalk () |
| CW: Redirect std::cout to silence some experiment specific libraries. More...
|
|
template<typename T > |
bool | MatchCondition (const std::vector< T > &allowedValues, const T &value) |
| check if event is affected by following conditions, for example pdg, or modes etc More...
|
|
Class responsible for handling implementation of samples used in analysis, reweighting and returning LLH.
Definition at line 25 of file SampleHandlerBase.h.
◆ SampleHandlerBase()
SampleHandlerBase::SampleHandlerBase |
( |
| ) |
|
The main constructor.
Definition at line 4 of file SampleHandlerBase.cpp.
M3::int_t nSamples
Contains how many samples we've got.
unsigned int nEvents
Number of MC events are there.
◆ ~SampleHandlerBase()
SampleHandlerBase::~SampleHandlerBase |
( |
| ) |
|
|
virtual |
◆ CleanMemoryBeforeFit()
virtual void SampleHandlerBase::CleanMemoryBeforeFit |
( |
| ) |
|
|
pure virtual |
◆ GetData()
virtual TH1* SampleHandlerBase::GetData |
( |
const int |
Selection | ) |
|
|
inlinevirtual |
Definition at line 67 of file SampleHandlerBase.h.
67 { (void) Selection;
throw MaCh3Exception(__FILE__ , __LINE__ ,
"Not implemented"); }
Custom exception class for MaCh3 errors.
◆ GetKinVarLabel()
virtual std::string SampleHandlerBase::GetKinVarLabel |
( |
const int |
sample, |
|
|
const int |
Dimension |
|
) |
| |
|
inlinevirtual |
◆ GetPDF()
virtual TH1* SampleHandlerBase::GetPDF |
( |
const int |
Selection | ) |
|
|
inlinevirtual |
◆ GetPDFMode()
virtual TH1* SampleHandlerBase::GetPDFMode |
( |
const int |
Selection, |
|
|
const int |
Mode |
|
) |
| |
|
inlinevirtual |
◆ GetW2()
virtual TH2Poly* SampleHandlerBase::GetW2 |
( |
const int |
Selection | ) |
|
|
inlinevirtual |
◆ MatchCondition()
template<typename T >
bool SampleHandlerBase::MatchCondition |
( |
const std::vector< T > & |
allowedValues, |
|
|
const T & |
value |
|
) |
| |
|
inlineprotected |
check if event is affected by following conditions, for example pdg, or modes etc
Definition at line 182 of file SampleHandlerBase.h.
183 if (allowedValues.empty()) {
186 return std::find(allowedValues.begin(), allowedValues.end(), value) != allowedValues.end();
◆ NowTalk()
void SampleHandlerBase::NowTalk |
( |
| ) |
|
|
protected |
CW: Redirect std::cout to silence some experiment specific libraries.
Definition at line 211 of file SampleHandlerBase.cpp.
216 std::cout.rdbuf(
buf);
std::streambuf * buf
Keep the cout buffer.
std::streambuf * errbuf
Keep the cerr buffer.
◆ QuietPlease()
void SampleHandlerBase::QuietPlease |
( |
| ) |
|
|
protected |
CW: Redirect std::cout to silence some experiment specific libraries.
Definition at line 197 of file SampleHandlerBase.cpp.
202 buf = std::cout.rdbuf();
203 errbuf = std::cerr.rdbuf();
204 std::cout.rdbuf(
nullptr );
205 std::cerr.rdbuf(
nullptr );
◆ Reweight()
virtual void SampleHandlerBase::Reweight |
( |
| ) |
|
|
pure virtual |
◆ SaveAdditionalInfo()
virtual void SampleHandlerBase::SaveAdditionalInfo |
( |
TDirectory * |
Dir | ) |
|
|
inlinevirtual |
◆ SetupBinning()
virtual void SampleHandlerBase::SetupBinning |
( |
const M3::int_t |
Selection, |
|
|
std::vector< double > & |
BinningX, |
|
|
std::vector< double > & |
BinningY |
|
) |
| |
|
inlinevirtual |
◆ buf
std::streambuf* SampleHandlerBase::buf |
|
protected |
◆ errbuf
std::streambuf* SampleHandlerBase::errbuf |
|
protected |
◆ fTestStatistic
Test statistic tells what kind of likelihood sample is using.
Definition at line 190 of file SampleHandlerBase.h.
◆ Modes
std::unique_ptr<MaCh3Modes> SampleHandlerBase::Modes |
|
protected |
◆ nEvents
unsigned int SampleHandlerBase::nEvents |
|
protected |
◆ nSamples
The documentation for this class was generated from the following files: