![]() |
ATLAS Offline Software
|
Functions | |
| JetRecCfg (flags, jetdef, returnConfiguredDef=False) | |
| Top level functions returning ComponentAccumulator out of JetDefinition. | |
| JetInputCfg (flags, jetOrConstitdef, context="default") | |
| PseudoJetCfg (jetdef) | |
| getJetDefAlgs (flags, jetdef, returnConfiguredDef=False, monTool=None) | |
| Mid level functions returning list of algs out of JetDefinition. | |
| getJetGroomAlgs (flags, groomdef, returnConfiguredDef=False, monTool=None) | |
| getJetAlgs (flags, jetdef, returnConfiguredDef=False, monTool=None) | |
| getPseudoJetAlgs (jetdef) | |
| Mid level functions returning specific type of algs out of JetDefinition functions below assumines the JetDefinition has its dependencies solved by a call to solveDependencies() | |
| mergedPJId (pjList) | |
| getInputAlgs (jetOrConstitdef, flags, context="default", monTool=None) | |
| getPJContName (jetOrConstitdef, suffix=None, parent_jetdef=None) | |
| getConstitPJGAlg (constitdef, suffix=None, flags=None, parent_jetdef=None) | |
| getGhostPJGAlg (ghostdef, parentjetdef=None) | |
| getJetRecAlg (jetdef, monTool=None, ftf_suffix='', extraOutputs=[]) | |
| getJetRecGroomAlg (groomdef, monTool=None, extraOutputs=[]) | |
| getJetCopyAlg (jetsin, jetsoutdef, decorations=[], shallowcopy=True, shallowIO=True, monTool=None) | |
| getConstitModAlg (parentjetdef, constitSeq, monTool=None) | |
| getConstitModAlg_nojetdef (constitSeq, flags, context="default", monTool=None) | |
| getJetModifierTools (jetdef) | |
| getModifier (jetdef, moddef, modspec, flags=None) | |
| removeComponentFailingConditions (jetdef, flags=None, raiseOnFailure=True) | |
| removeGroomModifFailingConditions (groomdef, flags, raiseOnFailure=True) | |
| filterJetDefList (jetdef, inList, compType, raiseOnFailure, flags) | |
| isComponentPassingConditions (component, flags, jetdef) | |
| isAnalysisRelease () | |
| reOrderAlgs (algs) | |
| registerAsInputConstit (jetdef) | |
| removeFromList (l, o) | |
| JetRecConfigTest (flags=None) | |
Variables | |
| jetlog = Logging.logging.getLogger('JetRecConfig') | |
| list | __all__ = ["JetRecCfg", "JetInputCfg"] |
| _mergedPJContainers = dict() | |
JetRecConfig: A helper module for configuring jet reconstruction The functions defined here turn JetDefinition object into ComponentAccumulator or list of algs fully configured and ready to be inserted in the framework sequence. Author: TJ Khoo, P-A Delsart
| python.JetRecConfig.filterJetDefList | ( | jetdef, | |
| inList, | |||
| compType, | |||
| raiseOnFailure, | |||
| flags ) |
Definition at line 749 of file JetRecConfig.py.
| python.JetRecConfig.getConstitModAlg | ( | parentjetdef, | |
| constitSeq, | |||
| monTool = None ) |
returns a configured JetConstituentModSequence or None if constit.modifiers == [] The JetConstituentModSequence is determined by the JetInputConstitSeq constitSeq . However, details of the configuration of the JetConstituentModSequence may depends on which JetDefinition this JetConstituentModSequence is intended for. Thus the function also requires a parentjetdef JetDefinition input IMPORTANT : parentjetdef & constitSeq must have their dependencies solved (i.e. they must result from solveDependencies() ) See also getConstitModAlg_nojetdef
Definition at line 542 of file JetRecConfig.py.
| python.JetRecConfig.getConstitModAlg_nojetdef | ( | constitSeq, | |
| flags, | |||
| context = "default", | |||
| monTool = None ) |
Same as getConstitModAlg. This is a convenient function to obtain a JetConstituentModSequence when it is certain, no JetDef is needed. This function just builds a dummy JetDefinition then calls getConstitModAlg Needed in the trigger config.
Definition at line 640 of file JetRecConfig.py.
| python.JetRecConfig.getConstitPJGAlg | ( | constitdef, | |
| suffix = None, | |||
| flags = None, | |||
| parent_jetdef = None ) |
returns a configured PseudoJetAlgorithm which converts the inputs defined by constitdef into fastjet::PseudoJet IMPORTANT : constitdef must have its dependencies solved (i.e. it must result from a solveDependencies() call) the flags argument is TEMPORARY and will be removed once further dev on PseudoJetAlgorithm is done (see comment below)
Definition at line 350 of file JetRecConfig.py.
| python.JetRecConfig.getGhostPJGAlg | ( | ghostdef, | |
| parentjetdef = None ) |
returns a configured PseudoJetAlgorithm which converts the inputs defined by constitdef into fastjet::PseudoJet The difference for the above is this is dedicated to ghosts which need variations for the Label and the muon segment cases. IMPORTANT : ghostdef must have its dependencies solved (i.e. it must result from a solveDependencies() call)
Definition at line 387 of file JetRecConfig.py.
| python.JetRecConfig.getInputAlgs | ( | jetOrConstitdef, | |
| flags, | |||
| context = "default", | |||
| monTool = None ) |
Returns the list of configured algs needed to build inputs to jet finding as defined by jetOrConstitdef jetOrConstitdef can either be * a JetDefinition : this happens when called from JetRecCfg or getJetDefAlgs then the jetdef._prereqDic/Order are used. * a JetInputConstit : to allow scheduling the corresponding constituents algs independently of any jet alg. context is only used if jetOrConstitdef is not a JetDefinition and must refer to a context in StandardJetContext. The returned list may contain several algs, including constituent modifications algs, track selection, copying of input truth particles and event density calculations It may also contain ComponentAccumulator, only (?) in reco from RDO/RAW when we need to build externals such as clusters or tracks : in this case we call the main config functions from external packages)
Definition at line 279 of file JetRecConfig.py.
Definition at line 216 of file JetRecConfig.py.
| python.JetRecConfig.getJetCopyAlg | ( | jetsin, | |
| jetsoutdef, | |||
| decorations = [], | |||
| shallowcopy = True, | |||
| shallowIO = True, | |||
| monTool = None ) |
Get a JetRecAlg set up to copy a jet collection and apply mods In this setup we do not resolve dependencies because typically these may be set up already in the original jet collection In future we may wish to add a toggle. The decoration list can be set in order for the decorations (jet moments) on the original jets to be propagated to the copy collection. Beware of circular dependencies!
Definition at line 504 of file JetRecConfig.py.
Mid level functions returning list of algs out of JetDefinition.
Create the algorithms necessary to build the jet collection defined by jetdef. This internally finds all the dependencies declared into jetdef (through input, ghosts & modifiers) and returns a list of all necessary algs. if returnConfiguredDef==True, also returns the fully configured clone of jetdef containing solved dependencies (debugging) monTool is to allow the trigger config to pass a monitoring tool. returns a list containing either algs or ComponentAccumulator (ComponentAccumulator occurs only (?) in reco from RDO/RAW when we need to build externals such as clusters or tracks : in this case we call the main config functions from external packages)
Definition at line 122 of file JetRecConfig.py.
| python.JetRecConfig.getJetGroomAlgs | ( | flags, | |
| groomdef, | |||
| returnConfiguredDef = False, | |||
| monTool = None ) |
Instantiate and schedule all the algorithms needed to run the grooming alg 'groomdef' and add them in the ComponentAccumulator 'components' This function is meant to be called from the top-level JetRecConfig.JetRecCfg (groomdef is expected to be non locked and will be modified). monTool is to allow the trigger config to pass a monitoring tool.
Definition at line 170 of file JetRecConfig.py.
| python.JetRecConfig.getJetModifierTools | ( | jetdef | ) |
returns the list of configured JetModifier tools needed by this jetdef. This is done by instantiating the actual C++ tool as ordered in jetdef._prereqOrder
Definition at line 651 of file JetRecConfig.py.
| python.JetRecConfig.getJetRecAlg | ( | jetdef, | |
| monTool = None, | |||
| ftf_suffix = '', | |||
| extraOutputs = [] ) |
Returns the configured JetRecAlg instance corresponding to jetdef IMPORTANT : jetdef must have its dependencies solved (i.e. it must result from solveDependencies() )
Definition at line 416 of file JetRecConfig.py.
| python.JetRecConfig.getJetRecGroomAlg | ( | groomdef, | |
| monTool = None, | |||
| extraOutputs = [] ) |
Returns a configured JetRecAlg set-up to perform the grooming defined by 'groomdef'
('monTool' is a temporary placeholder, it is expected to be used in the trigger in the future)
Definition at line 466 of file JetRecConfig.py.
| python.JetRecConfig.getModifier | ( | jetdef, | |
| moddef, | |||
| modspec, | |||
| flags = None ) |
Translate JetModifier into a concrete tool
Definition at line 668 of file JetRecConfig.py.
Construct the name of the PseudoJetContainer defined by the given JetDef or JetInputConstit. This name has to be constructed from various places, so we factorize the definition here.
Definition at line 341 of file JetRecConfig.py.
| python.JetRecConfig.getPseudoJetAlgs | ( | jetdef | ) |
Mid level functions returning specific type of algs out of JetDefinition functions below assumines the JetDefinition has its dependencies solved by a call to solveDependencies()
Builds the list of configured PseudoJetAlgorithm needed for this jetdef. THIS updates jetdef._internalAtt['finalPJContainer'] (this function is factorized out of PseudoJetCfg so it can be used standalone in the trigger config)
Definition at line 233 of file JetRecConfig.py.
| python.JetRecConfig.isAnalysisRelease | ( | ) |
Definition at line 801 of file JetRecConfig.py.
| python.JetRecConfig.isComponentPassingConditions | ( | component, | |
| flags, | |||
| jetdef ) |
Test if component is compatible with flags. This is done by calling component.filterfn AND testing all its prereqs.
Definition at line 784 of file JetRecConfig.py.
| python.JetRecConfig.JetInputCfg | ( | flags, | |
| jetOrConstitdef, | |||
| context = "default" ) |
Returns a ComponentAccumulator containing algs needed to build inputs to jet finding as defined by jetOrConstitdef jetOrConstitdef can either be * a JetDefinition : this happens when called from JetRecCfg, then the jetdef._prereqDic/Order are used. * a JetInputConstit : to allow scheduling the corresponding constituents algs independently of any jet alg. context is only used if jetOrConstitdef is not a JetDefinition and must refer to a context in StandardJetContext
Definition at line 83 of file JetRecConfig.py.
| python.JetRecConfig.JetRecCfg | ( | flags, | |
| jetdef, | |||
| returnConfiguredDef = False ) |
Top level functions returning ComponentAccumulator out of JetDefinition.
Top-level function for running jet finding or grooming. This returns a ComponentAccumulator that can be merged with others from elsewhere in the job and which provides everything needed to reconstruct one jet collection. arguments : - jetdef : jet or grooming definition - flags : the configuration flags instance, mainly for input file peeking such that we don't attempt to reproduce stuff that's already in the input file. And also to be able to invoke building of inputs outside of Jet domain during reco from RAW/RDO. - returnConfiguredDef : is for debugging. It will also returns the cloned JetDefinition which contains the calculated dependencies.
Definition at line 36 of file JetRecConfig.py.
| python.JetRecConfig.JetRecConfigTest | ( | flags = None | ) |
Definition at line 884 of file JetRecConfig.py.
| python.JetRecConfig.mergedPJId | ( | pjList | ) |
returns a simple unique ID for the list of PseudoJet container in pjList
Definition at line 272 of file JetRecConfig.py.
| python.JetRecConfig.PseudoJetCfg | ( | jetdef | ) |
Builds a ComponentAccumulator for creating PseudoJetContainer needed by jetdef. THIS updates jetdef._internalAtt['finalPJContainer']
Definition at line 105 of file JetRecConfig.py.
| python.JetRecConfig.registerAsInputConstit | ( | jetdef | ) |
Make the jet collection described by jetdef available as constituents to other jet finding Technically : create JetInputExternal and JetInputConstit and register them in the relevant look-up dictionnaries. the JetInputConstit will have a algoBuilder to generate the JetContainer described by jetdef
Definition at line 862 of file JetRecConfig.py.
| python.JetRecConfig.removeComponentFailingConditions | ( | jetdef, | |
| flags = None, | |||
| raiseOnFailure = True ) |
Filters the lists jetdef.modifiers and jetdef.ghosts (and jetdef._prereqOrder), so only the components comptatible with flags are selected. If flags==None : assume jetdef._cflags is properly set (this is done by higher-level functions) The compatibility is ultimately tested using the component 'filterfn' attributes. Internally calls the function isComponentPassingConditions() (see below)
Definition at line 701 of file JetRecConfig.py.
| python.JetRecConfig.removeFromList | ( | l, | |
| o ) |
Definition at line 879 of file JetRecConfig.py.
| python.JetRecConfig.removeGroomModifFailingConditions | ( | groomdef, | |
| flags, | |||
| raiseOnFailure = True ) |
Definition at line 741 of file JetRecConfig.py.
| python.JetRecConfig.reOrderAlgs | ( | algs | ) |
In runIII the scheduler automatically orders algs, so the JetRecConfig helpers do not try to enforce the correct ordering. This is not the case in runII config for which this jobO is intended --> This function makes sure some jet-related algs are well ordered.
Definition at line 806 of file JetRecConfig.py.
|
private |
Definition at line 28 of file JetRecConfig.py.
|
protected |
Definition at line 271 of file JetRecConfig.py.
| python.JetRecConfig.jetlog = Logging.logging.getLogger('JetRecConfig') |
Definition at line 14 of file JetRecConfig.py.