55def getCaloAllEMLayersPSSequenceGenCfg(flags,doAllorAllEM=False):
56
57 from TrigT2CaloCommon.CaloDef import fastCaloVDVCfg
58 nameselAcc = "LArPSSequence_All"
59 namerecoAcc = "fastCaloInViewSequenceAllEM"
60 hypoAlgName = "TrigL2CaloLayersAlg_AllEM"
61 output = "HLT_LArPS_AllCaloEMClusters"
62 if doAllorAllEM :
63 nameselAcc = "LArPSSequence_AllEM"
64 namerecoAcc = "fastCaloInViewSequenceAll"
65 hypoAlgName = "TrigL2CaloLayersAlg_All"
66 output = "HLT_LArPS_AllCaloClusters"
67 selAcc = SelectionCA(nameselAcc)
68 InViewRoIs="EMCaloRoIs"
69 reco = InViewRecoCA(namerecoAcc,InViewRoIs=InViewRoIs)
70 reco.mergeReco(fastCaloVDVCfg(flags,InViewRoIs=InViewRoIs))
71 reco.mergeReco(fastCaloRecoSequenceCfg(flags, inputEDM=InViewRoIs,ClustersName=output,doAllEm=not doAllorAllEM,doAll=doAllorAllEM))
72
73 selAcc.mergeReco(reco)
74
75 from TrigCaloHypo.TrigCaloHypoConfig import TrigL2CaloLayersHypoToolGen
76 TrigL2CaloLayersAlg = CompFactory.TrigL2CaloLayersAlg(hypoAlgName)
77 TrigL2CaloLayersAlg.TrigClusterContainerKey = output
78 selAcc.addHypoAlgo(TrigL2CaloLayersAlg)
79 return MenuSequence(flags,selAcc,HypoToolGen=TrigL2CaloLayersHypoToolGen)
80
81
82
83