ATLAS Offline Software
Functions | Variables
python.scenario_fbdjnoshared Namespace Reference

Functions

def get_fb_jet_args (groupdict, back)
 
def get_dijet_args (groupdict)
 
def get_dijet_jet_args (groupdict, jstr)
 
def scenario_fbdjnoshared (scenario, chainPartInd)
 

Variables

 pattern
 
 rgx
 

Function Documentation

◆ get_dijet_args()

def python.scenario_fbdjnoshared.get_dijet_args (   groupdict)
get the elemental condition args (cuts) for the backward and forward 
jets

Definition at line 37 of file scenario_fbdjnoshared.py.

37 def get_dijet_args(groupdict):
38  """get the elemental condition args (cuts) for the backward and forward
39  jets"""
40 
41  condargs = []
42  vals = defaults('djmass',
43  lo=groupdict['masslo'],
44  hi=groupdict['masshi'])
45 
46  condargs.append(('djmass', vals))
47 
48  vals = defaults('djdphi', lo='260')
49  condargs.append(('djdphi', vals))
50 
51  return condargs
52 
53 
54 

◆ get_dijet_jet_args()

def python.scenario_fbdjnoshared.get_dijet_jet_args (   groupdict,
  jstr 
)
get arguments for each of the jets that make up the dijet

Definition at line 55 of file scenario_fbdjnoshared.py.

55 def get_dijet_jet_args(groupdict, jstr):
56  """get arguments for each of the jets that make up the dijet"""
57 
58  assert jstr in ('j1', 'j2')
59 
60  condargs = []
61  vals = defaults('et', lo=groupdict[jstr+'etlo'], hi=groupdict[jstr+'ethi'])
62  condargs.append(('et', vals))
63 
64  vals = defaults('eta', lo='0', hi='490')
65  condargs.append(('eta', vals))
66 
67  return condargs
68 
69 

◆ get_fb_jet_args()

def python.scenario_fbdjnoshared.get_fb_jet_args (   groupdict,
  back 
)
get the elemental condition args (cuts) for the backward and forward 
jets

Definition at line 19 of file scenario_fbdjnoshared.py.

19 def get_fb_jet_args(groupdict, back):
20  """get the elemental condition args (cuts) for the backward and forward
21  jets"""
22 
23  condargs = []
24  vals = defaults('et', lo=groupdict['fbetlo'], hi=groupdict['fbethi'])
25  condargs.append(('et', vals))
26 
27  if back:
28  vals = defaults('neta')
29  condargs.append(('neta', vals))
30  else:
31  vals = defaults('peta')
32  condargs.append(('peta', vals))
33 
34  return condargs
35 
36 

◆ scenario_fbdjnoshared()

def python.scenario_fbdjnoshared.scenario_fbdjnoshared (   scenario,
  chainPartInd 
)
produce a list with one element containing a HelperToolConfigTool.
This list will inialise a Gaudi ToolArray

The tree vector is [0, 0, 0, 0, 3, 3]
pos 0: root; pos 1 backward jet; pos 2 forward jet; pos 3: dijet; 
pos 4: dijet j1; pos 5: dijet jet 2

There is a  Repeated Condition configurer for each position

No  conditions are filtered

Definition at line 70 of file scenario_fbdjnoshared.py.

70 def scenario_fbdjnoshared(scenario, chainPartInd):
71  """produce a list with one element containing a HelperToolConfigTool.
72  This list will inialise a Gaudi ToolArray
73 
74  The tree vector is [0, 0, 0, 0, 3, 3]
75  pos 0: root; pos 1 backward jet; pos 2 forward jet; pos 3: dijet;
76  pos 4: dijet j1; pos 5: dijet jet 2
77 
78  There is a Repeated Condition configurer for each position
79 
80  No conditions are filtered"""
81 
82  assert scenario.startswith('FBDJNOSHARED'),\
83  'routing error, module %s: bad scenario %s' % (__name__, scenario)
84 
85  m = rgx.match(scenario)
86  groupdict = m.groupdict()
87 
88  # list for the repeatedCondition parameters
89  repcondargs = []
90 
91  # find the constructor arguments for each elemental condition
92 
93  # backward jet
94  condargs = get_fb_jet_args(groupdict, back=True)
95  # treeVec is [0, 0, 0, 0, 3, 3] handle non-root nodes here
96 
97  repcondargs.append(RepeatedConditionParams(tree_id = 1,
98  tree_pid=0,
99  chainPartInd=chainPartInd,
100  condargs=condargs))
101 
102  # forward jet
103  condargs = get_fb_jet_args(groupdict, back=False)
104 
105  repcondargs.append(RepeatedConditionParams(tree_id = 2,
106  tree_pid=0,
107  chainPartInd=chainPartInd,
108  condargs=condargs))
109 
110  # Conditions for the dijet
111  condargs = get_dijet_args(groupdict)
112 
113  repcondargs.append(RepeatedConditionParams(tree_id = 3,
114  tree_pid=0,
115  chainPartInd=-1,
116  condargs=condargs))
117 
118  # Conditions for the dijet j1
119  condargs = get_dijet_jet_args(groupdict, 'j1')
120  repcondargs.append(RepeatedConditionParams(tree_id = 4,
121  tree_pid=3,
122  chainPartInd=chainPartInd,
123  condargs=condargs))
124 
125 
126  # Conditions for the dijet j2
127  condargs = get_dijet_jet_args(groupdict, 'j2')
128  repcondargs.append(RepeatedConditionParams(tree_id = 5,
129  tree_pid=3,
130  chainPartInd=chainPartInd,
131  condargs=condargs))
132 
133  # make pass through filter params for each condition in the tree.
134 
135  nconds = len(repcondargs)
136  filterparams = []
137  filterparam_inds = [-1 for i in range(nconds)]
138 
139 
140  # parameters to initalise the AlgTool that initialises the helper AlgTool
141 
142  # treevec[i] gives the tree_id of the parent of the
143  # node with tree_id = i
144  treevec = make_treevec(repcondargs)
145  assert treevec == [0, 0, 0, 0, 3, 3]
146 
147  helper_params = HelperConfigToolParams(treevec=treevec,
148  repcondargs=repcondargs,
149  filterparams=filterparams,
150  filterparam_inds=filterparam_inds)
151 
152  assert len(repcondargs) == len(filterparam_inds)
153 
154  return [helper_params] # a list is one entry per FastReduction tree
155 

Variable Documentation

◆ pattern

python.scenario_fbdjnoshared.pattern

Definition at line 11 of file scenario_fbdjnoshared.py.

◆ rgx

python.scenario_fbdjnoshared.rgx

Definition at line 17 of file scenario_fbdjnoshared.py.

python.scenario_fbdjnoshared.get_fb_jet_args
def get_fb_jet_args(groupdict, back)
Definition: scenario_fbdjnoshared.py:19
python.scenario_fbdjnoshared.get_dijet_args
def get_dijet_args(groupdict)
Definition: scenario_fbdjnoshared.py:37
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
Base_Fragment.defaults
dictionary defaults
This includes now the top quark, the leptons and the bosons.
Definition: GeneratorFilters/share/common/Base_Fragment.py:79
python.scenario_fbdjnoshared.scenario_fbdjnoshared
def scenario_fbdjnoshared(scenario, chainPartInd)
Definition: scenario_fbdjnoshared.py:70
python.make_treevec.make_treevec
def make_treevec(repcondargs)
Definition: make_treevec.py:3
python.scenario_fbdjnoshared.get_dijet_jet_args
def get_dijet_jet_args(groupdict, jstr)
Definition: scenario_fbdjnoshared.py:55