![]() |
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) | |
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 668 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 345 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 201 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 959 of file EventSelectionConfig.py.
|
protected |
Definition at line 802 of file EventSelectionConfig.py.
|
protected |
Definition at line 807 of file EventSelectionConfig.py.
|
protected |
Definition at line 814 of file EventSelectionConfig.py.
|
protected |
Definition at line 823 of file EventSelectionConfig.py.
|
protected |
Definition at line 839 of file EventSelectionConfig.py.
|
protected |
Definition at line 848 of file EventSelectionConfig.py.
|
protected |
Definition at line 855 of file EventSelectionConfig.py.
|
protected |
Definition at line 799 of file EventSelectionConfig.py.
|
protected |
Definition at line 785 of file EventSelectionConfig.py.
|
protected |
Definition at line 863 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 310 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 332 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 317 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_EVENTFLAG | ( | self, | |
| text, | |||
| config ) |
Definition at line 718 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_EXPR_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 898 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_GLOBALTRIGMATCH | ( | self, | |
| text, | |||
| config ) |
Definition at line 725 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_IMPORT | ( | self, | |
| text, | |||
| config ) |
Definition at line 365 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MET_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 578 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_METMWT_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 611 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLL_OSSF_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 695 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLL_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 631 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MLLWINDOW_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 649 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_MWT_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 593 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NBJET_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 379 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NJETGHOST_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 523 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETGHOST_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 544 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETMASS_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 486 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NLJETMASSWINDOW_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 498 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_NOBJ_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 565 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_RUNNUMBER | ( | self, | |
| text, | |||
| config ) |
Definition at line 735 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SAVE | ( | self, | |
| text, | |||
| config ) |
Definition at line 946 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SUMNELNMU_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 414 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.add_SUMNLEPTONS_selector | ( | self, | |
| text, | |||
| config ) |
Definition at line 447 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_btagging | ( | self, | |
| test ) |
Definition at line 250 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_float | ( | self, | |
| test, | |||
| requirePositive = True ) |
Definition at line 208 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_ghosts | ( | self, | |
| test ) |
Definition at line 257 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_int | ( | self, | |
| test, | |||
| requirePositive = True ) |
Definition at line 218 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_sign | ( | self, | |
| test ) |
Definition at line 237 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.check_string | ( | self, | |
| test ) |
Definition at line 231 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.checkDecorationName | ( | self, | |
| decoration ) |
Definition at line 293 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.extendObjectSelection | ( | self, | |
| config, | |||
| container, | |||
| oldSelection, | |||
| newSelection ) |
Definition at line 300 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.getCutflow | ( | self | ) |
Definition at line 275 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 180 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.makeAlgs | ( | self, | |
| config ) |
Definition at line 158 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.raise_misconfig | ( | self, | |
| text, | |||
| keyword ) |
Definition at line 195 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.raise_missinginput | ( | self, | |
| collection ) |
Definition at line 198 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.setDecorationName | ( | self, | |
| algorithm, | |||
| config, | |||
| decoration ) |
Definition at line 278 of file EventSelectionConfig.py.
|
protected |
Definition at line 121 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 752 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 776 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 765 of file EventSelectionConfig.py.
|
protected |
Definition at line 816 of file EventSelectionConfig.py.
|
protected |
Definition at line 815 of file EventSelectionConfig.py.
|
staticprotected |
Definition at line 64 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.btagDecoration |
Definition at line 925 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 283 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.electrons |
Definition at line 423 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.jets |
Definition at line 382 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.met |
Definition at line 581 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.muons |
Definition at line 417 of file EventSelectionConfig.py.
| python.EventSelectionConfig.EventSelectionConfig.selectionName |
Definition at line 178 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 450 of file EventSelectionConfig.py.