4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA
6 from AthenaConfiguration.ComponentAccumulator
import CompFactory
7 from TriggerMenuMT.CFtest.HLTSignatureHypoTools
import MuTestHypoTool, ElTestHypoTool
10 HLTTest__TestHypoAlg=CompFactory.getComp(
"HLTTest::TestHypoAlg")
11 HLTTest__TestRecoAlg=CompFactory.getComp(
"HLTTest::TestRecoAlg")
12 HLTTest__TestInputMaker=CompFactory.getComp(
"HLTTest::TestInputMaker")
14 UseThisLinkName=
"initialRoI"
29 generate reco sequence for emulation chains
32 IM.Output=name+signature+
"IM"+step+
"_out"
34 Alg =
CaloClustering(
"CaloClustering"+name+
"Step"+step, FileName=
"emclusters.dat")
35 elif "mu" in signature:
36 Alg =
muMSRecAlg(
"muMSRecAlg"+name+
"Step"+step, FileName=
"msmu.dat")
38 sys.exit(
"ERROR, in configuration of sequence "+name+step+signature)
40 Alg.Output = name+signature+
"Alg"+step+
"_out"
44 accAlg.addEventAlgo(Alg)
45 InEventReco = InEventRecoCA(name+signature+
"SeqStep"+step,inputMaker=IM)
46 InEventReco.mergeReco(accAlg)
48 return (InEventReco,IM, Alg.Output)
88 (Sequence, IM, seqOut) = makeElSequence (flags,name=reconame, step=step)
89 elHypo =
ElGamHypo(hyponame+
"Step"+step+
"ElHypo")
92 selAcc=SelectionCA(hyponame+
"elStep"+step)
93 selAcc.mergeReco(Sequence)
94 selAcc.addHypoAlgo(elHypo)
95 return MenuSequence(flags, selAcc, HypoToolGen=ElTestHypoTool)
99 (Sequence, IM, seqOut) =
makeElSequence(flags,name=reconame, step=step)
100 elHypo =
ElGamHypo(hyponame+
"Step"+step+
"GamHypo")
101 elHypo.Input = seqOut
103 selAcc=SelectionCA(hyponame+
"gamStep"+step+
"Gam")
104 selAcc.mergeReco(Sequence)
105 selAcc.addHypoAlgo(elHypo)
106 return MenuSequence(flags,selAcc, HypoToolGen=ElTestHypoTool)
111 (Sequence, IM, seqOut) =
makeMuSequence(flags,name=reconame, step=step)
112 muHypo =
MuHypo(hyponame+
"Step"+step+
"MuHypo")
113 muHypo.Input = seqOut
115 selAcc=SelectionCA(hyponame+
"muStep"+step)
116 selAcc.mergeReco(Sequence)
117 selAcc.addHypoAlgo(muHypo)
118 return MenuSequence(flags, selAcc, HypoToolGen=MuTestHypoTool)
122 (Sequence, IM, seqOut) = makeElSequence (flags,name=reconame, step=step)
124 elHypo.Input = seqOut
126 selAcc=SelectionCA(hyponame+
"elStep"+step)
127 selAcc.mergeReco(Sequence)
128 selAcc.addHypoAlgo(elHypo)
129 return MenuSequence(flags, selAcc, HypoToolGen=ElTestHypoTool)