![]() |
ATLAS Offline Software
|
Public Attributes | |
| int | step = 0 |
| str | currentDecoration = '' |
| list | cutflow = [] |
| selectionName | |
| debugMode | |
| jets | |
| muons | |
| electrons | |
| taus | |
| met | |
| btagDecoration | |
Protected Member Functions | |
| _build_dispatch (self) | |
| _check_args (self, items, keyword, validCounts) | |
| _maybe_dressed (self, alg, *specs) | |
| _val_sign_count (self, items, config, alg, container) | |
| _route_lepton (self, alg, config, spec, reco, truth) | |
| _add_nobject (self, text, config, *, attr, tag) | |
| _add_charge (self, text, config, *, osMode, tag) | |
| _expr_tokenize (self, text) | |
| _expr_peek (self) | |
| _expr_advance (self) | |
| _expr_expect (self, kind) | |
| _expr_parse (self, tokens) | |
| _expr_parse_funcall (self) | |
| _expr_parse_operand (self) | |
| _expr_parse_sign (self) | |
| _expr_parse_value (self) | |
| _expr_validate (self, variable, separator, operands) | |
| _emit_save (self, config) | |
Protected Attributes | |
| _dispatch = self._build_dispatch() | |
| _exprTokens = tokens | |
| int | _exprPos = 0 |
Static Protected Attributes | |
| dict | _NOBJECT |
| dict | _EXPR_COLL |
| dict | _EXPR_VARS |
| _EXPR_TOKEN_RE = re.compile(, re.VERBOSE) | |
| dict | _EVENTVAR_TYPES = {"float": "floatVariable", "int": "intVariable", "double": "doubleVariable"} |
ConfigBlock for interpreting text-based event selections
Definition at line 59 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.__init__ | ( | self | ) |
Definition at line 73 of file EventSelectionConfig.py.
|
protected |
Builder shared by OS and SS: same algorithm, opposite charge mode.
Definition at line 669 of file EventSelectionConfig.py.
|
protected |
Generic builder for the N-object pT selectors (EL_N, MU_N, JET_N, PH_N, TAU_N, LJET_N): identical except for the source container, which is always required since the cut acts on it.
Definition at line 346 of file EventSelectionConfig.py.
|
protected |
Map each keyword to its handler. Dispatch is an exact lookup on the first token, which removes the ordering fragility of token-membership.
Definition at line 127 of file EventSelectionConfig.py.
|
protected |
Validate the leading keyword and the number of arguments.
Definition at line 202 of file EventSelectionConfig.py.
|
protected |
Create the SaveFilterAlg that turns the accumulated event selection into a named, persisted selection (and ntuple branch). Called once per block, automatically at the end of makeAlgs.
Definition at line 983 of file EventSelectionConfig.py.
|
protected |
Definition at line 803 of file EventSelectionConfig.py.
|
protected |
Definition at line 808 of file EventSelectionConfig.py.
|
protected |
Definition at line 815 of file EventSelectionConfig.py.
|
protected |
Definition at line 824 of file EventSelectionConfig.py.
|
protected |
Definition at line 840 of file EventSelectionConfig.py.
|
protected |
Definition at line 849 of file EventSelectionConfig.py.
|
protected |
Definition at line 856 of file EventSelectionConfig.py.
|
protected |
Definition at line 800 of file EventSelectionConfig.py.
|
protected |
Definition at line 786 of file EventSelectionConfig.py.
|
protected |
Definition at line 864 of file EventSelectionConfig.py.
|
protected |
Enable dressed kinematics when any of the given electron/muon containers is a truth container. Dressed kinematics only exist for truth electrons and muons, so only those specs should be passed here.
Definition at line 311 of file EventSelectionConfig.py.
|
protected |
Assign (name, selection) to the reco or truth handles of `alg` depending on whether `spec` points to a truth container. `reco`/`truth` are (nameAttr, selectionAttr) pairs.
Definition at line 333 of file EventSelectionConfig.py.
|
protected |
Parse the trailing `[extraSel] value sign count` grammar (4 or 5 tokens), applying the optional extra object selection in place. Returns (value, sign, count).
Definition at line 318 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_EVENTFLAG | ( | self, | |
| text, | |||
| config ) |
Definition at line 719 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_EVENTVAR_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 952 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_EXPR_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 899 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_GLOBALTRIGMATCH | ( | self, | |
| text, | |||
| config ) |
Definition at line 726 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_IMPORT | ( | self, | |
| text, | |||
| config ) |
Definition at line 366 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MET_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 579 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_METMWT_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 612 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLL_OSSF_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 696 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLL_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 632 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLLWINDOW_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 650 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MWT_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 594 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NBJET_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 380 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NJETGHOST_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 524 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETGHOST_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 545 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETMASS_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 487 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETMASSWINDOW_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 499 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NOBJ_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 566 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_RUNNUMBER | ( | self, | |
| text, | |||
| config ) |
Definition at line 736 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SAVE | ( | self, | |
| text, | |||
| config ) |
Definition at line 970 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SUMNELNMU_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 415 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SUMNLEPTONS_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 448 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_btagging | ( | self, | |
| test ) |
Definition at line 251 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_float | ( | self, | |
| test, | |||
| requirePositive = True ) |
Definition at line 209 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_ghosts | ( | self, | |
| test ) |
Definition at line 258 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_int | ( | self, | |
| test, | |||
| requirePositive = True ) |
Definition at line 219 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_sign | ( | self, | |
| test ) |
Definition at line 238 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_string | ( | self, | |
| test ) |
Definition at line 232 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.checkDecorationName | ( | self, | |
| decoration ) |
Definition at line 294 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.extendObjectSelection | ( | self, | |
| config, | |||
| container, | |||
| oldSelection, | |||
| newSelection ) |
Definition at line 301 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.getCutflow | ( | self | ) |
Definition at line 276 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.instanceName | ( | self | ) |
Return the instance name for this block
Definition at line 123 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.interpret | ( | self, | |
| text, | |||
| cfg ) |
Definition at line 181 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.makeAlgs | ( | self, | |
| config ) |
Definition at line 159 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.raise_misconfig | ( | self, | |
| text, | |||
| keyword ) |
Definition at line 196 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.raise_missinginput | ( | self, | |
| collection ) |
Definition at line 199 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.setDecorationName | ( | self, | |
| algorithm, | |||
| config, | |||
| decoration ) |
Definition at line 279 of file EventSelectionConfig.py.
|
protected |
Definition at line 121 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 950 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 753 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 777 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 766 of file EventSelectionConfig.py.
|
protected |
Definition at line 817 of file EventSelectionConfig.py.
|
protected |
Definition at line 816 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 64 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.btagDecoration |
Definition at line 926 of file EventSelectionConfig.py.
| str python.EventSelectionConfig.EventSelectionConfig.currentDecoration = '' |
Definition at line 119 of file EventSelectionConfig.py.
| list python.EventSelectionConfig.EventSelectionConfig.cutflow = [] |
Definition at line 120 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.debugMode |
Definition at line 284 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.electrons |
Definition at line 424 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.jets |
Definition at line 383 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.met |
Definition at line 582 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.muons |
Definition at line 418 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.selectionName |
Definition at line 179 of file EventSelectionConfig.py.
| int python.EventSelectionConfig.EventSelectionConfig.step = 0 |
Definition at line 118 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.taus |
Definition at line 451 of file EventSelectionConfig.py.