Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
MenuComponents.SelectionCA Class Reference
Inheritance diagram for MenuComponents.SelectionCA:
Collaboration diagram for MenuComponents.SelectionCA:

Public Member Functions

def __init__ (self, name, isProbe=False)
 
def wasMerged (self)
 
def mergeReco (self, recoCA, robPrefetchCA=None, upSequenceCA=None)
 
def mergeHypo (self, other)
 
def addHypoAlgo (self, algo)
 
def hypo (self)
 
def inputMaker (self)
 
def topSequence (self)
 

Public Attributes

 name
 
 isProbe
 
 stepViewSequence
 
 hypoAcc
 

Detailed Description

CA component for MenuSequence sequence 

Definition at line 945 of file MenuComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def MenuComponents.SelectionCA.__init__ (   self,
  name,
  isProbe = False 
)

Definition at line 947 of file MenuComponents.py.

947  def __init__(self, name, isProbe=False):
948  self.name = name+"_probe" if isProbe else name
949  self.isProbe=isProbe
950  super( SelectionCA, self ).__init__()
951 
952  self.stepViewSequence = seqAND(self.name)
953  self.hypoAcc = ComponentAccumulator()
954 

Member Function Documentation

◆ addHypoAlgo()

def MenuComponents.SelectionCA.addHypoAlgo (   self,
  algo 
)
To be used when the hypo alg configuration does not require auxiliary tools/services

Definition at line 975 of file MenuComponents.py.

975  def addHypoAlgo(self, algo):
976  """To be used when the hypo alg configuration does not require auxiliary tools/services"""
977  if self.isProbe:
978  newname = algo.getName()+'_probe'
979  algo.name=newname
980  self.hypoAcc.addEventAlgo(algo)
981 

◆ hypo()

def MenuComponents.SelectionCA.hypo (   self)
Access hypo algo (or throws)

Definition at line 982 of file MenuComponents.py.

982  def hypo(self):
983  """Access hypo algo (or throws)"""
984  h = findAlgorithmByPredicate(self.stepViewSequence, lambda alg: "HypoInputDecisions" in alg._descriptors ) # can't use isHypo
985  assert h is not None, "No hypo in SeelectionCA {}".format(self.name)
986  return h
987 

◆ inputMaker()

def MenuComponents.SelectionCA.inputMaker (   self)
Access Input Maker (or throws)

Definition at line 988 of file MenuComponents.py.

988  def inputMaker(self):
989  """Access Input Maker (or throws)"""
990  im = findAlgorithmByPredicate(self.stepViewSequence, lambda alg: "InputMakerInputDecisions" in alg._descriptors )
991  assert im is not None, "No input maker in SeelectionCA {}".format(self.name)
992  return im
993 

◆ mergeHypo()

def MenuComponents.SelectionCA.mergeHypo (   self,
  other 
)
To be used when the hypo alg configuration comes with auxiliary tools/services

Definition at line 971 of file MenuComponents.py.

971  def mergeHypo(self, other):
972  """To be used when the hypo alg configuration comes with auxiliary tools/services"""
973  self.hypoAcc.merge(other)
974 

◆ mergeReco()

def MenuComponents.SelectionCA.mergeReco (   self,
  recoCA,
  robPrefetchCA = None,
  upSequenceCA = None 
)
upSequenceCA is the user CA to run before the recoCA

Definition at line 959 of file MenuComponents.py.

959  def mergeReco(self, recoCA, robPrefetchCA=None, upSequenceCA=None):
960  ''' upSequenceCA is the user CA to run before the recoCA'''
962  ca.addSequence(self.stepViewSequence)
963  if upSequenceCA:
964  ca.merge(upSequenceCA, sequenceName=self.stepViewSequence.name)
965  ca.addEventAlgo(recoCA.inputMaker(), sequenceName=self.stepViewSequence.name)
966  if robPrefetchCA:
967  ca.merge(robPrefetchCA, self.stepViewSequence.name)
968  ca.merge(recoCA, sequenceName=self.stepViewSequence.name)
969  self.merge(ca)
970 

◆ topSequence()

def MenuComponents.SelectionCA.topSequence (   self)

Definition at line 994 of file MenuComponents.py.

994  def topSequence(self):
995  return self.stepViewSequence

◆ wasMerged()

def MenuComponents.SelectionCA.wasMerged (   self)

Definition at line 955 of file MenuComponents.py.

955  def wasMerged(self):
956  super( SelectionCA, self ).wasMerged()
957  self.hypoAcc.wasMerged()
958 

Member Data Documentation

◆ hypoAcc

MenuComponents.SelectionCA.hypoAcc

Definition at line 953 of file MenuComponents.py.

◆ isProbe

MenuComponents.SelectionCA.isProbe

Definition at line 949 of file MenuComponents.py.

◆ name

MenuComponents.SelectionCA.name

Definition at line 948 of file MenuComponents.py.

◆ stepViewSequence

MenuComponents.SelectionCA.stepViewSequence

Definition at line 952 of file MenuComponents.py.


The documentation for this class was generated from the following file:
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
AthenaPoolTestReadDoubleSelector.topSequence
topSequence
Definition: AthenaPoolTestReadDoubleSelector.py:18
python.CFElements.findAlgorithmByPredicate
def findAlgorithmByPredicate(startSequence, predicate, depth=1000000)
Definition: CFElements.py:126
python.CFElements.seqAND
def seqAND(name, subs=[])
Definition: CFElements.py:25
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
merge
Definition: merge.py:1