analyzer.postprocessing.combine

Classes

Process

Systematic

Channel

DataCard

CombineDatacard

Helper class that provides a standard way to create an ABC using

Functions

formatLines(elems[, separator, force_max])

writeDatacard(channel_name, signal, background, ...[, ...])

writeCountingExperimentScript(output_dir, datacard_paths)

createDatacardsAndScript(signal, background, ...[, ...])

Module Contents

analyzer.postprocessing.combine.formatLines(elems, separator=' ', force_max=None)[source]
class analyzer.postprocessing.combine.Process[source]
name: str[source]
is_signal: bool = False[source]
class analyzer.postprocessing.combine.Systematic[source]
name: str[source]
dist: str[source]
class analyzer.postprocessing.combine.Channel[source]
name: str[source]
class analyzer.postprocessing.combine.DataCard[source]
processes = [][source]
systematics = [][source]
channels = [][source]
observations[source]
process_systematics[source]
process_rates[source]
process_shapes[source]
process_shape_systematics[source]
addProcess(process: Process)[source]
addSystematic(systematic: Systematic)[source]
addChannel(channel: Channel)[source]
setProcessSystematic(process: Process, systematic: Systematic, channel: Channel, value: float)[source]
setProcessRate(process: Process, channel: Channel, value: float)[source]
addShape(process: Process, channel: Channel, root_file, shape_name, shape_systematic_name)[source]
addObservation(channel: Channel, root_file, hist_name, value)[source]
constructHeader()[source]
constructShapes()[source]
constructObservations()[source]
constructSystematics()[source]
dumps()[source]
analyzer.postprocessing.combine.writeDatacard(channel_name, signal, background, common_metadata, output_dir, observation=None, systematics_pattern=None)[source]
analyzer.postprocessing.combine.writeCountingExperimentScript(output_dir, datacard_paths)[source]
class analyzer.postprocessing.combine.CombineDatacard[source]

Bases: analyzer.postprocessing.processors.BasePostprocessor

Helper class that provides a standard way to create an ABC using inheritance.

output_name: str[source]
channel: str[source]
systematics: str | None = None[source]
getRunFuncs(group, prefix=None)[source]
analyzer.postprocessing.combine.createDatacardsAndScript(signal, background, common_meta, output_dir, observation=None, systematics_pattern=None, channel_name='bin1')[source]