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

Public Member Functions

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

Public Attributes

 n_sgnl
 
 n_bkgd
 
 bkgd_etmax
 
 chain_name
 

Detailed Description

Definition at line 70 of file exerciser.py.

Constructor & Destructor Documentation

◆ __init__()

def exerciser.CombinationsTests.__init__ (   self,
  n_sgnl = 4,
  n_bkgd = 4,
  bkgd_etmax = 50000. 
)

Reimplemented in exerciser.PartitionsTests, and exerciser.SimpleConditionsTests.

Definition at line 72 of file exerciser.py.

72  def __init__(self,
73  n_sgnl=4,
74  n_bkgd=4,
75  bkgd_etmax=50000., # MeV
76  ):
77  self.n_sgnl = n_sgnl
78  self.n_bkgd = n_bkgd
79  self.bkgd_etmax = bkgd_etmax
80  self.chain_name = 'HLT_j80_L1J20'
81 

Member Function Documentation

◆ logfile_name()

def exerciser.CombinationsTests.logfile_name (   self)

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 

◆ make_chain_dict()

def exerciser.CombinationsTests.make_chain_dict (   self)
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.CombinationsTests.make_event_generator (   self)

Reimplemented in exerciser.ConditionsTests, and exerciser.SimpleConditionsTests.

Definition at line 104 of file exerciser.py.

104  def make_event_generator(self):
105  generator = SimpleHypoJetVectorGenerator()
106 
107  generator.ets = [80000. + 1000.*i for i in range(self.n_sgnl)]
108  generator.etas = [0.5] * self.n_sgnl
109 
110  generator.n_bkgd = self.n_bkgd
111  generator.bkgd_etmax = self.bkgd_etmax
112 
113  return generator
114 

◆ make_helper_tool()

def exerciser.CombinationsTests.make_helper_tool (   self)

Reimplemented in exerciser.ConditionsTests, exerciser.SimpleConditionsTests, and exerciser.PartitionsTests.

Definition at line 98 of file exerciser.py.

98  def make_helper_tool(self):
99  chain_dict = self._make_chain_dict()
100  print(chain_dict['chainParts'][0])
101  return trigJetHypoToolHelperFromDict(chain_dict)
102 
103 

Member Data Documentation

◆ bkgd_etmax

exerciser.CombinationsTests.bkgd_etmax

Definition at line 75 of file exerciser.py.

◆ chain_name

exerciser.CombinationsTests.chain_name

Definition at line 76 of file exerciser.py.

◆ n_bkgd

exerciser.CombinationsTests.n_bkgd

Definition at line 74 of file exerciser.py.

◆ n_sgnl

exerciser.CombinationsTests.n_sgnl

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
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
str
Definition: BTagTrackIpAccessor.cxx:11