ATLAS Offline Software
Functions | Variables
python.DecayParser Namespace Reference

Functions

def py_parse (cmd)
 
def process_block (cmd)
 

Variables

string _slot_separator = "+"
 
string _candidate_sep = "|"
 
string _decay_arrow = "->"
 
string _wild_card = "*"
 
 buf = cmd.split (_decay_arrow)
 print ("=> [%s]"cmd) More...
 
 parents = process_block (buf[0])
 print ("==> buf:",buf) More...
 
 children = process_block (buf[1])
 

Function Documentation

◆ process_block()

def python.DecayParser.process_block (   cmd)

Definition at line 36 of file DecayParser.py.

36 def process_block (cmd):
37  if cmd == "":
38  return None
39  candidates = cmd.split (_slot_separator)
40  return [list(set(c.split(_candidate_sep))) for c in candidates]
41 
42 

◆ py_parse()

def python.DecayParser.py_parse (   cmd)

Definition at line 16 of file DecayParser.py.

16 def py_parse (cmd):
17  # remove all spaces to ease further parsing
18  cmd = re.sub(pattern=" ",
19  repl="",
20  string=cmd)

Variable Documentation

◆ _candidate_sep

string python.DecayParser._candidate_sep = "|"
private

Definition at line 12 of file DecayParser.py.

◆ _decay_arrow

string python.DecayParser._decay_arrow = "->"
private

Definition at line 13 of file DecayParser.py.

◆ _slot_separator

string python.DecayParser._slot_separator = "+"
private

Definition at line 11 of file DecayParser.py.

◆ _wild_card

string python.DecayParser._wild_card = "*"
private

Definition at line 14 of file DecayParser.py.

◆ buf

python.DecayParser.buf = cmd.split (_decay_arrow)

print ("=> [%s]"cmd)

Definition at line 27 of file DecayParser.py.

◆ children

python.DecayParser.children = process_block (buf[1])

Definition at line 32 of file DecayParser.py.

◆ parents

python.DecayParser.parents = process_block (buf[0])

print ("==> buf:",buf)

Definition at line 31 of file DecayParser.py.

python.DecayParser.py_parse
def py_parse(cmd)
Definition: DecayParser.py:16
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.DecayParser.process_block
def process_block(cmd)
Definition: DecayParser.py:36
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232