SampleHandlerBase
- class pyMaCh3._pyMaCh3.samples.SampleHandlerBase
Bases:
SampleHandlerInterfaceMethods Summary
add_data(self, sample, data_array)Set the data for your sample handler (assumes the binning is the same as your MC!)
get_data_array(self, sample)Returns the contents of the MC histogram as a flat list
get_data_hist(self, Dimension)Get Data histogram as numpy arrays.
get_mc_array(self, sample)Returns the contents of the MC histogram as a flat list
get_sample_title(self, sample)Get the title for a given sample
get_var_hist(self, arg0, arg1, arg2, arg3, ...)get_w2_array(self, sample)Returns the contents of the W2 histogram as a flat list
get_w2_hist(self, sample)Get W2 histogram as numpy arrays.
Methods Documentation
- add_data(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int, data_array: list[float]) None
Set the data for your sample handler (assumes the binning is the same as your MC!)
- get_data_array(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int) list[float]
Returns the contents of the MC histogram as a flat list
- get_data_hist(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, Dimension: int) tuple
Get Data histogram as numpy arrays. For 1D: Returns (contents, edges) For 2D: Returns (contents, edgesX, edgesY) where contents is shape (nbinsY, nbinsX) for 2D
- get_mc_array(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int) list[float]
Returns the contents of the MC histogram as a flat list
- get_sample_title(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int) str
Get the title for a given sample
- get_var_hist(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, arg0: int, arg1: str, arg2: str, arg3: list[KinematicCut], arg4: int, arg5: list[KinematicCut]) tuple
- get_w2_array(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int) list[float]
Returns the contents of the W2 histogram as a flat list
- get_w2_hist(self: pyMaCh3._pyMaCh3.samples.SampleHandlerBase, sample: int) tuple
Get W2 histogram as numpy arrays. For 1D: Returns (contents, edges) For 2D: Returns (contents, edgesX, edgesY) where contents is shape (nbinsY, nbinsX) for 2D