ATLAS Offline Software
Loading...
Searching...
No Matches
MenuComponents.SelectionCA Class Reference
Inheritance diagram for MenuComponents.SelectionCA:
Collaboration diagram for MenuComponents.SelectionCA:

Public Member Functions

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

Public Attributes

str name = name+"_probe" if isProbe else name
 isProbe = isProbe
 stepViewSequence = seqAND(self.name)
 hypoAcc = ComponentAccumulator()

Detailed Description

CA component for MenuSequence sequence 

Definition at line 849 of file MenuComponents.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 851 of file MenuComponents.py.

851 def __init__(self, name, isProbe=False):
852 self.name = name+"_probe" if isProbe else name
853 self.isProbe=isProbe
854 super( SelectionCA, self ).__init__()
855
856 self.stepViewSequence = seqAND(self.name)
857 self.hypoAcc = ComponentAccumulator()
858

Member Function Documentation

◆ addHypoAlgo()

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

Definition at line 879 of file MenuComponents.py.

879 def addHypoAlgo(self, algo):
880 """To be used when the hypo alg configuration does not require auxiliary tools/services"""
881 if self.isProbe:
882 newname = algo.getName()+'_probe'
883 algo.name=newname
884 self.hypoAcc.addEventAlgo(algo)
885

◆ hypo()

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

Definition at line 886 of file MenuComponents.py.

886 def hypo(self):
887 """Access hypo algo (or throws)"""
888 h = findAlgorithmByPredicate(self.stepViewSequence, lambda alg: "HypoInputDecisions" in alg._descriptors ) # can't use isHypo
889 assert h is not None, "No hypo in SeelectionCA {}".format(self.name)
890 return h
891

◆ inputMaker()

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

Definition at line 892 of file MenuComponents.py.

892 def inputMaker(self):
893 """Access Input Maker (or throws)"""
894 im = findAlgorithmByPredicate(self.stepViewSequence, lambda alg: "InputMakerInputDecisions" in alg._descriptors )
895 assert im is not None, "No input maker in SeelectionCA {}".format(self.name)
896 return im
897

◆ mergeHypo()

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

Definition at line 875 of file MenuComponents.py.

875 def mergeHypo(self, other):
876 """To be used when the hypo alg configuration comes with auxiliary tools/services"""
877 self.hypoAcc.merge(other)
878
Definition merge.py:1

◆ mergeReco()

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

Definition at line 863 of file MenuComponents.py.

863 def mergeReco(self, recoCA, robPrefetchCA=None, upSequenceCA=None):
864 ''' upSequenceCA is the user CA to run before the recoCA'''
865 ca=ComponentAccumulator()
866 ca.addSequence(self.stepViewSequence)
867 if upSequenceCA:
868 ca.merge(upSequenceCA, sequenceName=self.stepViewSequence.name)
869 ca.addEventAlgo(recoCA.inputMaker(), sequenceName=self.stepViewSequence.name)
870 if robPrefetchCA:
871 ca.merge(robPrefetchCA, self.stepViewSequence.name)
872 ca.merge(recoCA, sequenceName=self.stepViewSequence.name)
873 self.merge(ca)
874

◆ topSequence()

MenuComponents.SelectionCA.topSequence ( self)

Definition at line 898 of file MenuComponents.py.

898 def topSequence(self):
899 return self.stepViewSequence

◆ wasMerged()

MenuComponents.SelectionCA.wasMerged ( self)

Definition at line 859 of file MenuComponents.py.

859 def wasMerged(self):
860 super( SelectionCA, self ).wasMerged()
861 self.hypoAcc.wasMerged()
862

Member Data Documentation

◆ hypoAcc

MenuComponents.SelectionCA.hypoAcc = ComponentAccumulator()

Definition at line 857 of file MenuComponents.py.

◆ isProbe

MenuComponents.SelectionCA.isProbe = isProbe

Definition at line 853 of file MenuComponents.py.

◆ name

MenuComponents.SelectionCA.name = name+"_probe" if isProbe else name

Definition at line 852 of file MenuComponents.py.

◆ stepViewSequence

MenuComponents.SelectionCA.stepViewSequence = seqAND(self.name)

Definition at line 856 of file MenuComponents.py.


The documentation for this class was generated from the following file: