![]() |
MaCh3
2.5.0
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...
#include <python/samples.h>
Public Member Functions | |
| std::string | GetName () const override |
| std::string | GetSampleTitle (const int iSample) const override |
| int | GetNOscChannels (const int iSample) const override |
| void | Reweight () override |
| double | GetSampleLikelihood (const int iSample) const override |
| void | CleanMemoryBeforeFit () override |
| Allow to clean not used memory before fit starts. More... | |
| void | PrintRates (const bool DataOnly=false) override |
| Helper function to print rates for the samples with LLH. More... | |
| std::string | GetKinVarName (const int iSample, const int Dimension) const override |
| Return Kinematic Variable name for specified sample and dimension for example "Reconstructed_Neutrino_Energy". More... | |
| std::vector< double > | ReturnKinematicParameterBinning (const int Sample, const std::string &KinematicParameter) const override |
| Return the binning used to draw a kinematic parameter. More... | |
| TH1 * | GetDataHist (const int Sample) override |
| Get Data histogram. More... | |
| TH1 * | GetMCHist (const int Sample) override |
| Get MC histogram. More... | |
| TH1 * | GetW2Hist (const int Sample) override |
| Get W2 histogram. More... | |
| double | GetLikelihood () const override |
| std::unique_ptr< TH1 > | Get1DVarHistByModeAndChannel (const int iSample, const std::string &ProjectionVar_Str, const int kModeToFill=-1, const int kChannelToFill=-1, const int WeightStyle=0) override |
| std::unique_ptr< TH2 > | Get2DVarHistByModeAndChannel (const int iSample, const std::string &ProjectionVar_StrX, const std::string &ProjectionVar_StrY, const int kModeToFill=-1, const int kChannelToFill=-1, const int WeightStyle=0) override |
| std::unique_ptr< TH1 > | Get1DVarHist (const int iSample, const std::string &ProjectionVar, const std::vector< KinematicCut > &EventSelectionVec={}, const int WeightStyle=0, const std::vector< KinematicCut > &SubEventSelectionVec={}) override |
| std::unique_ptr< TH2 > | Get2DVarHist (const int iSample, const std::string &ProjectionVarX, const std::string &ProjectionVarY, const std::vector< KinematicCut > &EventSelectionVec={}, const int WeightStyle=0, const std::vector< KinematicCut > &SubEventSelectionVec={}) override |
| int | GetNDim (const int Sample) const override |
| DB Function to differentiate 1D or 2D binning. More... | |
| std::string | GetFlavourName (const int iSample, const int iChannel) const override |
| SampleHandlerInterface () | |
| The main constructor. More... | |
Public Member Functions inherited from SampleHandlerInterface | |
| SampleHandlerInterface () | |
| The main constructor. More... | |
| virtual | ~SampleHandlerInterface () |
| destructor More... | |
| virtual M3::int_t | GetNSamples () |
| virtual void | SaveAdditionalInfo (TDirectory *Dir) |
| Store additional info in a chan. More... | |
| MaCh3Modes * | GetMaCh3Modes () const |
| Return pointer to MaCh3 modes. More... | |
| unsigned int | GetNEvents () const |
| double | GetPoissonLLH (const double data, const double mc) const |
| Calculate test statistic for a single bin using Poisson. More... | |
| 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. More... | |
| void | SetTestStatistic (TestStatistic testStat) |
| Set the test statistic to be used when calculating the binned likelihoods. More... | |
| TestStatistic | GetTestStatistic () const |
| Get the test statistic used when calculating the binned likelihoods. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SampleHandlerInterface | |
| 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... | |
Protected Attributes inherited from SampleHandlerInterface | |
| TestStatistic | fTestStatistic |
| Test statistic tells what kind of likelihood sample is using. More... | |
| std::streambuf * | buf |
| Keep the cout buffer. More... | |
| std::streambuf * | errbuf |
| Keep the cerr buffer. More... | |
| M3::int_t | nSamples |
| Contains how many samples we've got. More... | |
| unsigned int | nEvents |
| Number of MC events are there. More... | |
| std::unique_ptr< MaCh3Modes > | Modes |
| Holds information about used Generator and MaCh3 modes. More... | |
EW: As SampleHandlerBase is an abstract base class we have to do some gymnastics to get it to get it into python.
|
inlineoverridevirtual |
Allow to clean not used memory before fit starts.
Implements SampleHandlerInterface.
Definition at line 157 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
|
inlineoverridevirtual |
Get Data histogram.
Implements SampleHandlerInterface.
Definition at line 198 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
Definition at line 300 of file samples.h.
|
inlineoverridevirtual |
Return Kinematic Variable name for specified sample and dimension for example "Reconstructed_Neutrino_Energy".
| iSample | Sample index |
| Dimension | Dimension index |
Implements SampleHandlerInterface.
Definition at line 177 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
Definition at line 225 of file samples.h.
|
inlineoverridevirtual |
Get MC histogram.
Implements SampleHandlerInterface.
Definition at line 207 of file samples.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
DB Function to differentiate 1D or 2D binning.
Implements SampleHandlerInterface.
Definition at line 291 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
Definition at line 125 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
Definition at line 146 of file samples.h.
|
inlineoverridevirtual |
Implements SampleHandlerInterface.
Definition at line 115 of file samples.h.
|
inlineoverridevirtual |
Get W2 histogram.
Implements SampleHandlerInterface.
Definition at line 216 of file samples.h.
|
inlineoverridevirtual |
Helper function to print rates for the samples with LLH.
| DataOnly | whether to print data only rates |
Implements SampleHandlerInterface.
Definition at line 167 of file samples.h.
|
inlineoverridevirtual |
Return the binning used to draw a kinematic parameter.
Implements SampleHandlerInterface.
Definition at line 188 of file samples.h.
|
inlineoverridevirtual |
| SampleHandlerInterface::SampleHandlerInterface |
The main constructor.
Definition at line 33 of file SampleHandlerInterface.cpp.