22 py::class_<MaCh3Plotting::PlottingManager>(m_plotting,
"PlottingManager")
24 py::init<const std::string &>(),
25 "construct a PlottingManager using the specified config file",
26 py::arg(
"config_file_name")
31 "default constructor, will initialise the PlottingManager with the default plotting config"
36 &MaCh3Plotting::PlottingManager::initialise,
37 "initalise this PlottingManager"
43 "Print a usage message for the current executable"
48 &MaCh3Plotting::PlottingManager::parseInputsVec,
49 "Parse command line variables",
55 &MaCh3Plotting::PlottingManager::setExec,
56 "Set the name of the current executable, which will be used when getting executable specific options from the plotting config file",
62 &MaCh3Plotting::PlottingManager::getFileName,
63 "Get the path to a particular file",
64 py::arg(
"input_file_id")
69 &MaCh3Plotting::PlottingManager::getFileLabel,
70 "Get the specified label of a particular input file",
71 py::arg(
"input_file_id")
76 &MaCh3Plotting::PlottingManager::getDrawOptions,
77 "Get any additional root drawing options specified by the user"
82 py::overload_cast<const std::string &>(&MaCh3Plotting::PlottingManager::getOutputName),
83 "Get the output name specified by the user, can specify an additional *suffix* to append to the file name but before the file extension",
84 py::arg(
"suffix") =
""
89 &MaCh3Plotting::PlottingManager::getFileNames,
90 "Get the list of all file names"
95 &MaCh3Plotting::PlottingManager::getFileLabels,
96 "Get the list of all file labels"
101 &MaCh3Plotting::PlottingManager::getNFiles,
102 "Get the number of specified files"
106 "get_split_by_sample",
107 &MaCh3Plotting::PlottingManager::getSplitBySample,
108 "Get whether or not the user has set the 'split by sample' (-s) option"
113 &MaCh3Plotting::PlottingManager::getPlotRatios,
114 "Get whether or not the user specified the 'plot ratios' (-r) option"
119 &MaCh3Plotting::PlottingManager::getDrawGrid,
120 "Get wheter or not the user has specified the 'draw grid' (-g) option"
125 &MaCh3Plotting::PlottingManager::style, py::return_value_policy::reference,
126 "Get the StyleManager associated with this PlottingManager"
131 &MaCh3Plotting::PlottingManager::input, py::return_value_policy::reference,
132 "Get the InputManager associated with this PlottingManager"
140 py::class_<MaCh3Plotting::InputManager>(m_plotting,
"InputManager")
143 &MaCh3Plotting::InputManager::print,
144 "Print a summary of everything this manager knows"
149 &MaCh3Plotting::InputManager::getLLHScan,
150 "Get the LLH scan for a particular parameter from a particular file",
151 py::arg(
"input_file_id"),
152 py::arg(
"param_name"),
153 py::arg(
"LLH_type") =
"total"
157 "get_llh_scan_by_sample",
158 &MaCh3Plotting::InputManager::getSampleSpecificLLHScan,
159 "Get the LLH scan for a particular parameter from a particular file for a particular sample",
160 py::arg(
"input_file_id"),
167 &MaCh3Plotting::InputManager::getEnabledLLH,
168 "Get whether a particular file has LLH scans for a particular parameter",
169 py::arg(
"input_file_id"),
171 py::arg(
"LLH_type") =
"total"
175 "get_enabled_llh_by_sample",
176 &MaCh3Plotting::InputManager::getEnabledLLHBySample,
177 "Get whether a particular file has LLH scans for a particular parameter for a particular sample",
178 py::arg(
"input_file_id"),
184 "get_post_fit_error",
185 &MaCh3Plotting::InputManager::getPostFitError,
186 "Get the post fit error for a parameter from a particular file",
187 py::arg(
"input_file_id"),
189 py::arg(
"error_type") =
""
193 "get_post_fit_value",
194 &MaCh3Plotting::InputManager::getPostFitValue,
195 "Get the post fit value for a parameter from a particular file",
196 py::arg(
"input_file_id"),
198 py::arg(
"error_type") =
""
202 "get_known_parameters",
203 &MaCh3Plotting::InputManager::getKnownParameters,
204 "Get all the parameters that this manager knows about. Useful for iterating over"
209 &MaCh3Plotting::InputManager::getKnownSamples,
210 "Get all the samples that this manager knows about. Useful for iterating over"
214 "get_tagged_parameters",
215 &MaCh3Plotting::InputManager::getTaggedParameters,
216 "Get all the parameters whose tags match some specified list",
218 py::arg(
"check_type") =
"all"
222 "get_tagged_samples",
223 &MaCh3Plotting::InputManager::getTaggedSamples,
224 "Get all the samples whose tags match some specified list",
226 py::arg(
"check_type") =
"all"
231 &MaCh3Plotting::InputManager::getNInputFiles,
232 "Get the number of input files registered with this manager"
236 "get_known_llh_parameters",
237 &MaCh3Plotting::InputManager::getKnownLLHParameters,
238 "Get all the parameters that a file has LLH scans for",
243 "get_known_llh_samples",
244 &MaCh3Plotting::InputManager::getKnownLLHSamples,
245 "Get all the samples that a file has individual LLH scans for",
250 "get_known_post_fit_parameters",
251 &MaCh3Plotting::InputManager::getKnownPostFitParameters,
252 "Get all the parameters that a file has post fit values and errors for",
257 "get_known_MCMC_parameters",
258 &MaCh3Plotting::InputManager::getKnownMCMCParameters,
259 "Get all the parameters that a file has MCMC chain entries for",
264 "get_known_1d_posterior_parameters",
265 &MaCh3Plotting::InputManager::getKnown1dPosteriorParameters,
266 "Get all the parameters that a file has processed 1d posteriors for",
272 &MaCh3Plotting::InputManager::getMCMCentry,
273 "Load up a particular step in the MCMC chain for a particular input file",
280 &MaCh3Plotting::InputManager::getMCMCvalue,
281 "Get the value of a particular parameter for the current entry (set by set_MCMC_entry) in the chain for a particular file",
287 "get_n_MCMC_entries",
288 &MaCh3Plotting::InputManager::getnMCMCentries,
289 "Get the number of entries in the MCMC chain in a particular file"
294 &MaCh3Plotting::InputManager::get1dPosterior,
295 "Get the 1d posterior for a particular parameter from a particular file",
301 py::class_<MaCh3Plotting::StyleManager>(m_plotting,
"StyleManager")
303 "prettify_parameter_name",
304 &MaCh3Plotting::StyleManager::prettifyParamName,
305 "Convert internally used parameter name to a nice pretty name that can be used in plots",
310 "prettify_sample_name",
311 &MaCh3Plotting::StyleManager::prettifyParamName,
312 "Convert internally used sample name to a nice pretty name that can be used in plots",