![]() |
MaCh3 2.2.1
Reference Guide
|
EW: As SampleHandlerBase is an abstract base class we have to do some gymnastics to get it to get it into python. More...
Public Member Functions | |
std::string | GetSampleName (int iSample) const override |
void | Reweight () override |
void | CleanMemoryBeforeFit () override |
Allow to clean not used memory before fit starts. | |
double | GetLikelihood () override |
SampleHandlerBase () | |
The main constructor. | |
![]() | |
SampleHandlerBase () | |
The main constructor. | |
virtual | ~SampleHandlerBase () |
destructor | |
virtual M3::int_t | GetNsamples () |
virtual std::string | GetTitle () const |
virtual std::string | GetSampleName (int Sample) const =0 |
virtual double | GetSampleLikelihood (const int isample) |
virtual void | CleanMemoryBeforeFit ()=0 |
Allow to clean not used memory before fit starts. | |
virtual void | SaveAdditionalInfo (TDirectory *Dir) |
Store additional info in a chan. | |
MaCh3Modes * | GetMaCh3Modes () const |
Return pointer to MaCh3 modes. | |
virtual void | Reweight ()=0 |
virtual double | GetLikelihood ()=0 |
unsigned int | GetNEvents () const |
virtual int | GetNMCSamples () |
virtual int | GetNOscChannels () |
virtual void | SetupBinning (const M3::int_t Selection, std::vector< double > &BinningX, std::vector< double > &BinningY) |
virtual TH1 * | GetData (const int Selection) |
virtual TH2Poly * | GetW2 (const int Selection) |
virtual TH1 * | GetPDF (const int Selection) |
virtual TH1 * | GetPDFMode (const int Selection, const int Mode) |
virtual std::string | GetKinVarLabel (const int sample, const int Dimension) |
double | GetTestStatLLH (double data, double mc) const |
Calculate test statistic for a single bin using Poisson. | |
double | GetTestStatLLH (const double data, const double mc, const double w2) const |
Calculate test statistic for a single bin. Calculation depends on setting of fTestStatistic. Data and mc -> 0 cut-offs are defined in M3::LOW_MC_BOUND. | |
void | SetTestStatistic (TestStatistic testStat) |
Set the test statistic to be used when calculating the binned likelihoods. | |
Additional Inherited Members | |
![]() | |
void | QuietPlease () |
CW: Redirect std::cout to silence some experiment specific libraries. | |
void | NowTalk () |
CW: Redirect std::cout to silence some experiment specific libraries. | |
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 | |
![]() | |
TestStatistic | fTestStatistic |
Test statistic tells what kind of likelihood sample is using. | |
std::streambuf * | buf |
Keep the cout buffer. | |
std::streambuf * | errbuf |
Keep the cerr buffer. | |
M3::int_t | nSamples |
Contains how many samples we've got. | |
unsigned int | nEvents |
Number of MC events are there. | |
std::unique_ptr< MaCh3Modes > | Modes |
Holds information about used Generator and MaCh3 modes. | |
EW: As SampleHandlerBase is an abstract base class we have to do some gymnastics to get it to get it into python.
Definition at line 10 of file samples.cpp.
|
inlineoverridevirtual |
Allow to clean not used memory before fit starts.
Implements SampleHandlerBase.
Definition at line 35 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 43 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 16 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 26 of file samples.cpp.
SampleHandlerBase::SampleHandlerBase | ( | ) |
The main constructor.
Definition at line 29 of file SampleHandlerBase.cpp.