![]() |
MaCh3
2.8.0
Reference Guide
|
Base class for producing binned splines in MaCh3. More...
#include <Splines/BinnedSplineMakerBase.h>
Public Member Functions | |
| BinnedSplineMakerBase (const std::string &Config) | |
| Constructor. More... | |
| virtual | ~BinnedSplineMakerBase () |
| Destructor. More... | |
| void | MakeVariations () |
| The main function generating spline responses. More... | |
Protected Member Functions | |
| int | ReturnKinematicParameterFromString (const std::string &KinematicStr) const |
| ETA function to generically convert a string from param handler to a kinematic type. More... | |
| std::string | ReturnStringFromKinematicParameter (const int KinematicVariable) const |
| ETA function to generically convert a kinematic type from param handler to a string. More... | |
| std::string | GetSplineSuffix (const int spline_mode) const |
| int | GetSplineModeFromGenerator (const int generatorMode) const |
| void | Initialise () |
| The main initialiser, has to be called from inherited class :(. More... | |
| virtual void | LoadVariables ()=0 |
| Hook allowing to load experiment spagyric variables trees etc. More... | |
| virtual void | LoadKnots ()=0 |
| Hook allowing to load knots etc from experiment specific. More... | |
| virtual std::vector< double > | GetETrueBinning ()=0 |
| Way to get binning outside of config. More... | |
| virtual Long64_t | GetEntries ()=0 |
| simple getter for number of entries More... | |
| virtual void | GetEntry (Long64_t jentry)=0 |
| Hook allowing to load info for a given entry. More... | |
| virtual double | GetWeight (Long64_t jentry, size_t iSyst, int iKnot)=0 |
| Calculate weight for a given event using knot. More... | |
| virtual double | GetWeight (Long64_t jentry, size_t iSyst, double Value)=0 |
| Calculate weight for a given event using value. More... | |
| double | ReturnKinematicParameter (const std::string &KinematicParameter, Long64_t iEvent) const |
| Return the value of an associated kinematic parameter for an event. More... | |
| virtual double | ReturnKinematicParameter (const int binTypes, const Long64_t jentry) const =0 |
| Return the value of an associated kinematic parameter for an event. More... | |
Protected Attributes | |
| std::unique_ptr< Manager > | Setting |
| pointer to config More... | |
| std::vector< SystematicsStruct > | systematicProperties |
| const std::unordered_map< std::string, int > * | KinematicParameters |
| Mapping between string and kinematic enum. More... | |
| const std::unordered_map< int, std::string > * | ReversedKinematicParameters |
| Mapping between kinematic enum and string. More... | |
Private Member Functions | |
| void | SetupBinning () |
| Set binning and histograms for each spline. More... | |
| void | WriteSplines () |
| void | LoadSystematics () |
| void | AddSystematics () |
| void | FillSystematicProperties () |
| void | FillGraphs () |
| Fit a TGraph to each bin. More... | |
| void | FillSplines () |
| Fit a spline to each TGraph. More... | |
Private Attributes | |
| std::unique_ptr< MaCh3Modes > | Modes |
| pointer to MaCh3 modes More... | |
| std::vector< std::vector< std::unique_ptr< TH3F > > > | VariationHistogram |
| Histograms containing systematic variations at each knot. More... | |
| std::vector< std::string > | VariationHistogramName |
| Names corresponding to the variation histograms. More... | |
| std::vector< std::vector< std::vector< std::vector< std::unique_ptr< TSpline3 > > > > > | splines |
| Cubic spline interpolators for each bin and systematic mode. More... | |
| std::vector< std::vector< std::vector< std::vector< std::unique_ptr< TGraph > > > > > | graphs |
| Graphs storing systematic variation ratios at each knot for each bin. More... | |
| std::vector< int > | BinningTypes |
| Enum for binning type to be used. More... | |
| std::map< std::string, int > | fSuffixToSplineMode |
| Suffix -> spline mode index. More... | |
| std::map< int, int > | fModeToSplineMode |
| MaCh3 mode index -> spline mode index. More... | |
| bool | UseKnotForWeight |
| Whether we use knot for weight calcuation or actual value. More... | |
Base class for producing binned splines in MaCh3.
Definition at line 34 of file BinnedSplineMakerBase.h.
| BinnedSplineMakerBase::BinnedSplineMakerBase | ( | const std::string & | Config | ) |
Constructor.
Definition at line 5 of file BinnedSplineMakerBase.cpp.
|
virtual |
Destructor.
Definition at line 206 of file BinnedSplineMakerBase.cpp.
|
private |
Definition at line 172 of file BinnedSplineMakerBase.cpp.
|
private |
Fit a TGraph to each bin.
Definition at line 211 of file BinnedSplineMakerBase.cpp.
|
private |
Fit a spline to each TGraph.
Definition at line 336 of file BinnedSplineMakerBase.cpp.
|
private |
Definition at line 287 of file BinnedSplineMakerBase.cpp.
|
protectedpure virtual |
simple getter for number of entries
|
protectedpure virtual |
Hook allowing to load info for a given entry.
|
protectedpure virtual |
Way to get binning outside of config.
|
protected |
Definition at line 273 of file BinnedSplineMakerBase.cpp.
|
protected |
Definition at line 416 of file BinnedSplineMakerBase.cpp.
|
protectedpure virtual |
Calculate weight for a given event using value.
|
protectedpure virtual |
Calculate weight for a given event using knot.
|
protected |
The main initialiser, has to be called from inherited class :(.
Definition at line 120 of file BinnedSplineMakerBase.cpp.
|
protectedpure virtual |
Hook allowing to load knots etc from experiment specific.
|
private |
Definition at line 42 of file BinnedSplineMakerBase.cpp.
|
protectedpure virtual |
Hook allowing to load experiment spagyric variables trees etc.
| void BinnedSplineMakerBase::MakeVariations | ( | ) |
The main function generating spline responses.
Definition at line 154 of file BinnedSplineMakerBase.cpp.
|
protectedpure virtual |
Return the value of an associated kinematic parameter for an event.
|
inlineprotected |
Return the value of an associated kinematic parameter for an event.
Definition at line 68 of file BinnedSplineMakerBase.h.
|
protected |
ETA function to generically convert a string from param handler to a kinematic type.
Definition at line 476 of file BinnedSplineMakerBase.cpp.
|
protected |
ETA function to generically convert a kinematic type from param handler to a string.
Definition at line 488 of file BinnedSplineMakerBase.cpp.
|
private |
Set binning and histograms for each spline.
Definition at line 360 of file BinnedSplineMakerBase.cpp.
|
private |
Definition at line 427 of file BinnedSplineMakerBase.cpp.
|
private |
Enum for binning type to be used.
Definition at line 108 of file BinnedSplineMakerBase.h.
|
private |
MaCh3 mode index -> spline mode index.
Definition at line 114 of file BinnedSplineMakerBase.h.
|
private |
Suffix -> spline mode index.
Definition at line 111 of file BinnedSplineMakerBase.h.
|
private |
Graphs storing systematic variation ratios at each knot for each bin.
Definition at line 105 of file BinnedSplineMakerBase.h.
|
protected |
Mapping between string and kinematic enum.
Definition at line 79 of file BinnedSplineMakerBase.h.
|
private |
pointer to MaCh3 modes
Definition at line 96 of file BinnedSplineMakerBase.h.
|
protected |
Mapping between kinematic enum and string.
Definition at line 81 of file BinnedSplineMakerBase.h.
|
protected |
pointer to config
Definition at line 75 of file BinnedSplineMakerBase.h.
|
private |
Cubic spline interpolators for each bin and systematic mode.
Definition at line 103 of file BinnedSplineMakerBase.h.
|
protected |
Definition at line 76 of file BinnedSplineMakerBase.h.
|
private |
Whether we use knot for weight calcuation or actual value.
Definition at line 117 of file BinnedSplineMakerBase.h.
|
private |
Histograms containing systematic variations at each knot.
Definition at line 99 of file BinnedSplineMakerBase.h.
|
private |
Names corresponding to the variation histograms.
Definition at line 101 of file BinnedSplineMakerBase.h.