![]() |
ATLAS Offline Software
|
Public Member Functions | |
| def | __init__ (self, *flags=None, algSeq=None, noSysSuffix=False, noSystematics=None, dataType=None, isPhyslite=None, geometry=None, dsid=0, campaign=None, runNumber=None, autoconfigFromFlags=None, dataYear=0) |
| def | noSystematics (self) |
| def | flags (self) |
| def | autoconfigFlags (self) |
| def | dataType (self) |
| def | isPhyslite (self) |
| def | geometry (self) |
| def | dsid (self) |
| def | campaign (self) |
| def | runNumber (self) |
| def | dataYear (self) |
| def | generatorInfo (self) |
| def | hltSummary (self) |
| def | algPostfix (self) |
| def | setAlgPostfix (self, str postfix) |
| def | getAlgorithm (self, str name) |
| def | createAlgorithm (self, type, name, reentrant=False) |
| def | createService (self, type, name) |
| def | createPublicTool (self, type, name) |
| def | addPrivateTool (self, propertyName, toolType) |
| def | setSourceName (self, containerName, sourceName, *originalName=None, isMet=False) |
| def | writeName (self, containerName, *isMet=None) |
| def | readName (self, containerName) |
| def | copyName (self, containerName) |
| def | wantCopy (self, containerName) |
| def | originalName (self, containerName) |
| def | getContainerMeta (self, containerName, metaField, defaultValue=None, *failOnMiss=False) |
| def | setContainerMeta (self, containerName, metaField, value, *allowOverwrite=False) |
| def | isMetContainer (self, containerName) |
| def | readNameAndSelection (self, containerName, *excludeFrom=None) |
| def | nextPass (self) |
| def | getPreselection (self, containerName, selectionName, *asList=False) |
| def | getFullSelection (self, containerName, selectionName, *skipBase=False, excludeFrom=None) |
| def | getSelectionCutFlow (self, containerName, selectionName) |
| def | addEventCutFlow (self, selection, decorations) |
| def | getEventCutFlow (self, selection) |
| def | addSelection (self, containerName, selectionName, decoration, **kwargs) |
| def | addOutputContainer (self, containerName, outputContainerName) |
| def | checkOutputContainer (self, containerName) |
| def | getOutputContainerOrigin (self, outputContainerName) |
| def | addOutputVar (self, containerName, variableName, outputName, *noSys=False, enabled=True) |
| def | getOutputVars (self, containerName) |
| def | getSelectionNames (self, containerName, excludeFrom=None) |
Public Attributes | |
| CA | |
a class that accumulates a configuration from blocks into an algorithm sequence This is used as argument to the ConfigurationBlock methods, which need to be called in the correct order. This class will track all meta-information that needs to be communicated between blocks during configuration, and also add the created algorithms to the sequence. Use/access of containers in the event store is handled via references that this class hands out. This happens in a separate step before the algorithms are created, as the naming of containers will depend on where in the chain the container is used.
Definition at line 127 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.__init__ | ( | self, | |
| * | flags = None, |
||
algSeq = None, |
|||
noSysSuffix = False, |
|||
noSystematics = None, |
|||
dataType = None, |
|||
isPhyslite = None, |
|||
geometry = None, |
|||
dsid = 0, |
|||
campaign = None, |
|||
runNumber = None, |
|||
autoconfigFromFlags = None, |
|||
dataYear = 0 |
|||
| ) |
Definition at line 144 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.addEventCutFlow | ( | self, | |
| selection, | |||
| decorations | |||
| ) |
register a new event cutflow, adding it to the dictionary with key 'selection' and value 'decorations', a list of decorated selections
Definition at line 711 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.addOutputContainer | ( | self, | |
| containerName, | |||
| outputContainerName | |||
| ) |
| def python.ConfigAccumulator.ConfigAccumulator.addOutputVar | ( | self, | |
| containerName, | |||
| variableName, | |||
| outputName, | |||
| * | noSys = False, |
||
enabled = True |
|||
| ) |
add an output variable for the given container to the output
Definition at line 769 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.addPrivateTool | ( | self, | |
| propertyName, | |||
| toolType | |||
| ) |
| def python.ConfigAccumulator.ConfigAccumulator.addSelection | ( | self, | |
| containerName, | |||
| selectionName, | |||
| decoration, | |||
| ** | kwargs | ||
| ) |
add another selection decoration to the selection of the given name for the given container
Definition at line 731 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.algPostfix | ( | self | ) |
the current postfix to be appended to algorithm names Blocks should not call this directly, but rather implement the instanceName method, which will be used to generate the postfix automatically.
Definition at line 321 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.autoconfigFlags | ( | self | ) |
Athena configuration flags This is a backward compatibility version of the flags property, which is preferred.
Definition at line 278 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.campaign | ( | self | ) |
| def python.ConfigAccumulator.ConfigAccumulator.checkOutputContainer | ( | self, | |
| containerName | |||
| ) |
check whether a given container has been registered in outputs
Definition at line 753 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.copyName | ( | self, | |
| containerName | |||
| ) |
register that a copy of the container will be made and return its name
Definition at line 486 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.createAlgorithm | ( | self, | |
| type, | |||
| name, | |||
reentrant = False |
|||
| ) |
create a new algorithm and register it as the current algorithm
Definition at line 356 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.createPublicTool | ( | self, | |
| type, | |||
| name | |||
| ) |
create a new public tool and register it as the "current algorithm"
Definition at line 410 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.createService | ( | self, | |
| type, | |||
| name | |||
| ) |
create a new service and register it as the "current algorithm"
Definition at line 386 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.dataType | ( | self | ) |
the data type we run on (data, fullsim, fastsim)
Definition at line 285 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.dataYear | ( | self | ) |
for data, the corresponding year; for MC, zero
Definition at line 309 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.dsid | ( | self | ) |
the mcChannelNumber or DSID of the sample we run on
Definition at line 297 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.flags | ( | self | ) |
Athena configuration flags
Definition at line 273 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.generatorInfo | ( | self | ) |
the dictionary of MC generators and their versions for the sample we run on
Definition at line 313 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.geometry | ( | self | ) |
| def python.ConfigAccumulator.ConfigAccumulator.getAlgorithm | ( | self, | |
| str | name | ||
| ) |
get the algorithm with the given name Despite the name this will also return services and tools. It is mostly meant for internal use, particularly for the property overrides.
Definition at line 345 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getContainerMeta | ( | self, | |
| containerName, | |||
| metaField, | |||
defaultValue = None, |
|||
| * | failOnMiss = False |
||
| ) |
get the meta information for the given container This is used to pass down meta-information from the configuration to the algorithms.
Definition at line 520 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getEventCutFlow | ( | self, | |
| selection | |||
| ) |
get the list of decorated selections for an event cutflow, corresponding to key 'selection'
Definition at line 723 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getFullSelection | ( | self, | |
| containerName, | |||
| selectionName, | |||
| * | skipBase = False, |
||
excludeFrom = None |
|||
| ) |
get the selection string for the given selection on the given
container
This can handle both individual selections or selection
expressions (e.g. `loose||tight`) with the later being
properly expanded. Either way the base selection (i.e. the
selection without a name) will always be applied on top.
containerName --- the container the selection is defined on
selectionName --- the name of the selection, or a selection
expression based on multiple named selections
skipBase --- will avoid the base selection, and should normally
not be used by the end-user.
excludeFrom --- a set of string names of selection sources to exclude
e.g. to exclude OR selections from MET
Definition at line 613 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getOutputContainerOrigin | ( | self, | |
| outputContainerName | |||
| ) |
Get the name of the actual container, for which an output is registered
Definition at line 758 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getOutputVars | ( | self, | |
| containerName | |||
| ) |
get the output variables for the given container
Definition at line 783 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getPreselection | ( | self, | |
| containerName, | |||
| selectionName, | |||
| * | asList = False |
||
| ) |
get the preselection string for the given selection on the given container
Definition at line 592 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getSelectionCutFlow | ( | self, | |
| containerName, | |||
| selectionName | |||
| ) |
get the individual selections as a list for producing the cutflow for the given selection on the given container This can only handle individual selections, not selection expressions (e.g. `loose||tight`).
Definition at line 682 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.getSelectionNames | ( | self, | |
| containerName, | |||
excludeFrom = None |
|||
| ) |
Retrieve set of unique selections defined for a given container
Definition at line 792 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.hltSummary | ( | self | ) |
the HLTSummary configuration to be used for the trigger decision tool
Definition at line 317 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.isMetContainer | ( | self, | |
| containerName | |||
| ) |
whether the given container is registered as a MET container This is mostly/exclusively used for determining whether to write out the whole container or just a single MET term.
Definition at line 546 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.isPhyslite | ( | self | ) |
whether we run on PHYSLITE
Definition at line 289 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.nextPass | ( | self | ) |
switch to the next configuration pass Configuration happens in two steps, with all the blocks processed twice. This switches from the first to the second pass.
Definition at line 577 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.noSystematics | ( | self | ) |
noSystematics flag used by CommonServices block
Definition at line 268 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.originalName | ( | self, | |
| containerName | |||
| ) |
get the "original" name of the given container This is mostly/exclusively used for jet containers, so that subsequent configurations know which jet container they operate on.
Definition at line 506 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.readName | ( | self, | |
| containerName | |||
| ) |
get the name of the "current copy" of the given container As extra copies get created during processing this will track the correct name of the current copy. Optionally one can pass in the name of the container before the first copy.
Definition at line 474 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.readNameAndSelection | ( | self, | |
| containerName, | |||
| * | excludeFrom = None |
||
| ) |
get the name of the "current copy" of the given container, and the selection string This is mostly meant for MET and OR for whom the actual object selection is relevant, and which as such allow to pass in the working point as "ObjectName.WorkingPoint".
Definition at line 557 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.runNumber | ( | self | ) |
the MC runNumber
Definition at line 305 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.setAlgPostfix | ( | self, | |
| str | postfix | ||
| ) |
set the current postfix to be appended to algorithm names Blocks should not call this directly, but rather implement the instanceName method, which will be used to generate the postfix automatically.
Definition at line 329 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.setContainerMeta | ( | self, | |
| containerName, | |||
| metaField, | |||
| value, | |||
| * | allowOverwrite = False |
||
| ) |
set the meta information for the given container This is used to pass down meta-information from the configuration to the algorithms.
Definition at line 534 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.setSourceName | ( | self, | |
| containerName, | |||
| sourceName, | |||
| * | originalName = None, |
||
isMet = False |
|||
| ) |
set the (default) name of the source/original container This is essentially meant to allow using e.g. the muon configuration and the user not having to manually specify that they want to use the Muons/AnalysisMuons container from the input file. In addition it allows to set the original name of the container (which may be different from the source name), which is mostly/exclusively used for jet containers, so that subsequent configurations know which jet container they operate on.
Definition at line 440 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.wantCopy | ( | self, | |
| containerName | |||
| ) |
ask whether we want/need a copy of the container This usually only happens if no copy of the container has been made yet and the copy is needed to allow modifications, etc.
Definition at line 495 of file ConfigAccumulator.py.
| def python.ConfigAccumulator.ConfigAccumulator.writeName | ( | self, | |
| containerName, | |||
| * | isMet = None |
||
| ) |
register that the given container will be made and return its name
Definition at line 459 of file ConfigAccumulator.py.
|
private |
Definition at line 246 of file ConfigAccumulator.py.
|
private |
Definition at line 242 of file ConfigAccumulator.py.
|
private |
Definition at line 239 of file ConfigAccumulator.py.
|
private |
Definition at line 243 of file ConfigAccumulator.py.
|
private |
Definition at line 247 of file ConfigAccumulator.py.
|
private |
Definition at line 232 of file ConfigAccumulator.py.
|
private |
Definition at line 250 of file ConfigAccumulator.py.
|
private |
Definition at line 155 of file ConfigAccumulator.py.
|
private |
Definition at line 234 of file ConfigAccumulator.py.
|
private |
Definition at line 233 of file ConfigAccumulator.py.
|
private |
Definition at line 241 of file ConfigAccumulator.py.
|
private |
Definition at line 240 of file ConfigAccumulator.py.
|
private |
Definition at line 244 of file ConfigAccumulator.py.
|
private |
Definition at line 245 of file ConfigAccumulator.py.
|
private |
Definition at line 248 of file ConfigAccumulator.py.
| python.ConfigAccumulator.ConfigAccumulator.CA |
Definition at line 255 of file ConfigAccumulator.py.
1.8.18