![]() |
MaCh3
2.4.2
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 | 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 |
| TH1 * | Get1DVarHistByModeAndChannel (const int iSample, const std::string &ProjectionVar_Str, int kModeToFill=-1, int kChannelToFill=-1, int WeightStyle=0, TAxis *Axis=nullptr) override |
| TH2 * | Get2DVarHistByModeAndChannel (const int iSample, const std::string &ProjectionVar_StrX, const std::string &ProjectionVar_StrY, int kModeToFill=-1, int kChannelToFill=-1, int WeightStyle=0, TAxis *AxisX=nullptr, TAxis *AxisY=nullptr) override |
| TH1 * | Get1DVarHist (const int iSample, const std::string &ProjectionVar, const std::vector< KinematicCut > &EventSelectionVec={}, int WeightStyle=0, TAxis *Axis=nullptr, const std::vector< KinematicCut > &SubEventSelectionVec={}) override |
| TH2 * | Get2DVarHist (const int iSample, const std::string &ProjectionVarX, const std::string &ProjectionVarY, const std::vector< KinematicCut > &EventSelectionVec={}, int WeightStyle=0, TAxis *AxisX=nullptr, TAxis *AxisY=nullptr, 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 |
| SampleHandlerBase () | |
| The main constructor. More... | |
Public Member Functions inherited from SampleHandlerBase | |
| SampleHandlerBase () | |
| The main constructor. More... | |
| virtual | ~SampleHandlerBase () |
| 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 SampleHandlerBase | |
| 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 SampleHandlerBase | |
| 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.
Definition at line 10 of file samples.cpp.
|
inlineoverridevirtual |
Allow to clean not used memory before fit starts.
Implements SampleHandlerBase.
Definition at line 67 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 187 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 145 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 206 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 164 of file samples.cpp.
|
inlineoverridevirtual |
Get Data histogram.
Implements SampleHandlerBase.
Definition at line 108 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 238 of file samples.cpp.
|
inlineoverridevirtual |
Return Kinematic Variable name for specified sample and dimension for example "Reconstructed_Neutrino_Energy".
| iSample | Sample index |
| Dimension | Dimension index |
Implements SampleHandlerBase.
Definition at line 87 of file samples.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get MC histogram.
Implements SampleHandlerBase.
Definition at line 117 of file samples.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
DB Function to differentiate 1D or 2D binning.
Implements SampleHandlerBase.
Definition at line 229 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 35 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 56 of file samples.cpp.
|
inlineoverridevirtual |
Implements SampleHandlerBase.
Definition at line 25 of file samples.cpp.
|
inlineoverridevirtual |
Get W2 histogram.
Implements SampleHandlerBase.
Definition at line 126 of file samples.cpp.
|
inlineoverridevirtual |
Helper function to print rates for the samples with LLH.
| DataOnly | whether to print data only rates |
Implements SampleHandlerBase.
Definition at line 77 of file samples.cpp.
|
inlineoverridevirtual |
Return the binning used to draw a kinematic parameter.
Implements SampleHandlerBase.
Definition at line 98 of file samples.cpp.
|
inlineoverridevirtual |
| SampleHandlerBase::SampleHandlerBase |
The main constructor.
Definition at line 30 of file SampleHandlerBase.cpp.