ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
exerciser.SimpleConditionsTests Class Reference
Inheritance diagram for exerciser.SimpleConditionsTests:
Collaboration diagram for exerciser.SimpleConditionsTests:

Public Member Functions

def __init__ (self, n_sgnl=4, n_bkgd=4, bkgd_etmax=20000.)
 
def make_helper_tool (self)
 
def logfile_name (self, chain_name)
 
def make_event_generator (self)
 
def make_chain_dict (self)
 
def logfile_name (self)
 

Public Attributes

 chain_name
 
 n_sgnl
 
 n_bkgd
 
 bkgd_etmax
 

Detailed Description

Definition at line 146 of file exerciser.py.

Constructor & Destructor Documentation

◆ __init__()

def exerciser.SimpleConditionsTests.__init__ (   self,
  n_sgnl = 4,
  n_bkgd = 4,
  bkgd_etmax = 20000. 
)

Reimplemented from exerciser.CombinationsTests.

Definition at line 148 of file exerciser.py.

148  def __init__(self,
149  n_sgnl=4,
150  n_bkgd=4,
151  bkgd_etmax=20000., # MeV
152  ):
153  # useEtaEtNotEtaE = False
154  CombinationsTests.__init__(self, n_sgnl, n_bkgd, bkgd_etmax)
155  self.chain_name = 'HLT_DijetConditionTests'
156 

Member Function Documentation

◆ logfile_name() [1/2]

def exerciser.CombinationsTests.logfile_name (   self)
inherited

Definition at line 115 of file exerciser.py.

115  def logfile_name(self):
116  return self.chain_name + '_b' + str(self.n_bkgd) + '_combs.log'
117 

◆ logfile_name() [2/2]

def exerciser.SimpleConditionsTests.logfile_name (   self,
  chain_name 
)

Definition at line 170 of file exerciser.py.

170  def logfile_name(self, chain_name):
171  return chain_name + '_s' + str(self.n_sgnl) + '_b' + str(self.n_bkgd)+'.log'
172 

◆ make_chain_dict()

def exerciser.CombinationsTests.make_chain_dict (   self)
inherited
ChainDict to excercise modifications to CombinationsHelperTool

Definition at line 82 of file exerciser.py.

82  def make_chain_dict(self):
83  """ChainDict to excercise modifications to CombinationsHelperTool"""
84 
85  chainNameDecoder = DictFromChainName.DictFromChainName()
86 
87  #make a chain dict to be perverted:
88  # its hypoScenario will be overwritten by the value
89  # 'combinationsTest'. This will result in a hardwired chain label
90  # being used.
91  chain_dict = chainNameDecoder.getChainDict(self.chain_name)
92  assert len(chain_dict['chainParts']) == 1
93 
94  chain_dict['chainParts'][0]['hypoScenario'] = 'combinationsTest'
95 
96  return chain_dict
97 

◆ make_event_generator()

def exerciser.SimpleConditionsTests.make_event_generator (   self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 173 of file exerciser.py.

173  def make_event_generator(self):
174  generator = SimpleHypoJetVectorGenerator()
175 
176  generator.ets = [80000. + 1000.*i for i in range(self.n_sgnl)]
177  generator.etas = [0.5] * self.n_sgnl
178 
179  # alternate eta signs to get high mass
180  factor = 1
181  for i in range(len(generator.etas)):
182  generator.etas[i] *= factor
183  factor *= -1
184 
185  generator.n_bkgd = self.n_bkgd
186  generator.bkgd_etmax = self.bkgd_etmax
187 
188  return generator
189 

◆ make_helper_tool()

def exerciser.SimpleConditionsTests.make_helper_tool (   self)

Reimplemented from exerciser.CombinationsTests.

Definition at line 157 of file exerciser.py.

157  def make_helper_tool(self):
158  chain_label = """
159  z([]
160  simple([(10et, 0eta320)(20et)])
161  )"""
162 
163 
164  toolSetter = ConditionsToolSetter(self.chain_name)
165  return trigJetHypoToolHelperFromDict_(chain_label,
166  self.chain_name,
167  toolSetter=toolSetter)
168 
169 

Member Data Documentation

◆ bkgd_etmax

exerciser.CombinationsTests.bkgd_etmax
inherited

Definition at line 75 of file exerciser.py.

◆ chain_name

exerciser.SimpleConditionsTests.chain_name

Definition at line 151 of file exerciser.py.

◆ n_bkgd

exerciser.CombinationsTests.n_bkgd
inherited

Definition at line 74 of file exerciser.py.

◆ n_sgnl

exerciser.CombinationsTests.n_sgnl
inherited

Definition at line 73 of file exerciser.py.


The documentation for this class was generated from the following file:
SimpleHypoJetVectorGenerator
Definition: SimpleHypoJetVectorGenerator.h:14
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11