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 35 of file DecayParser.py.

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

◆ py_parse()

def python.DecayParser.py_parse (   cmd)

Definition at line 15 of file DecayParser.py.

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

Variable Documentation

◆ _candidate_sep

string python.DecayParser._candidate_sep = "|"
private

Definition at line 11 of file DecayParser.py.

◆ _decay_arrow

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

Definition at line 12 of file DecayParser.py.

◆ _slot_separator

string python.DecayParser._slot_separator = "+"
private

Definition at line 10 of file DecayParser.py.

◆ _wild_card

string python.DecayParser._wild_card = "*"
private

Definition at line 13 of file DecayParser.py.

◆ buf

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

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

Definition at line 26 of file DecayParser.py.

◆ children

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

Definition at line 31 of file DecayParser.py.

◆ parents

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

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

Definition at line 30 of file DecayParser.py.

python.DecayParser.py_parse
def py_parse(cmd)
Definition: DecayParser.py:15
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.DecayParser.process_block
def process_block(cmd)
Definition: DecayParser.py:35
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