ATLAS Offline Software
Loading...
Searching...
No Matches
CaloDef.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from TriggerMenuMT.HLT.CommonSequences.FullScanDefs import caloFSRoI
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaConfiguration.AccumulatorCache import AccumulatorCache
7from TrigT2CaloCommon.TrigCaloDataAccessConfig import trigCaloDataAccessSvcCfg, CaloDataAccessSvcDependencies
8
9
10#
11# fast calo algorithm (central or forward regions)
12#
13@AccumulatorCache
14def fastCaloRecoSequenceCfg(flags, inputEDM="", ClustersName="HLT_FastCaloEMClusters", RingerKey="HLT_FastCaloRinger", doForward=False, doAllEm=False, doAll=False):
15
16 acc = ComponentAccumulator()
17 acc.merge(trigCaloDataAccessSvcCfg(flags))
18 if not inputEDM:
19 from HLTSeeding.HLTSeedingConfig import mapThresholdToL1RoICollection
20 # using jet seeds for testing. we should use EM as soon as we have EM seeds into the L1
21 inputEDM = mapThresholdToL1RoICollection("EM")
22
23 from TrigT2CaloEgamma.TrigT2CaloEgammaConfig import t2CaloEgamma_ReFastAlgoCfg
24 if (not doForward) and (not doAll) and (not doAllEm ) :
25 acc.merge(t2CaloEgamma_ReFastAlgoCfg(flags, "FastCaloL2EgammaAlg", doRinger=True, RingerKey=RingerKey,RoIs=inputEDM,ExtraInputs=CaloDataAccessSvcDependencies, ClustersName = ClustersName))
26 if doForward:
27 from TrigT2CaloEgamma.TrigT2CaloEgammaConfig import t2CaloEgamma_ReFastFWDAlgoCfg
28 acc.merge(t2CaloEgamma_ReFastFWDAlgoCfg(flags, "FastCaloL2EgammaAlg_FWD", doRinger=True, RingerKey=RingerKey,RoIs=inputEDM,ExtraInputs=CaloDataAccessSvcDependencies, ClustersName = ClustersName))
29 else:
30 if ( doAllEm or doAll ) :
31 if ( doAllEm ):
32 from TrigT2CaloEgamma.TrigT2CaloEgammaConfig import t2CaloEgamma_AllEmCfg
33 acc.merge(t2CaloEgamma_AllEmCfg(flags, "L2CaloLayersEmFex",RoIs=inputEDM,ExtraInputs= CaloDataAccessSvcDependencies, ClustersName = ClustersName))
34 else : # can only be doAll
35 from TrigT2CaloEgamma.TrigT2CaloEgammaConfig import t2CaloEgamma_AllCfg
36 acc.merge(t2CaloEgamma_AllCfg(flags, "L2CaloLayersFex",RoIs=inputEDM,ExtraInputs=CaloDataAccessSvcDependencies, ClustersName = ClustersName))
37 return acc
38
39def fastCaloVDVCfg(flags,name="fastCaloVDV",InViewRoIs="EMCaloRoIs") :
40 reco = ComponentAccumulator()
41 fastCaloVDV = CompFactory.AthViews.ViewDataVerifier(name)
42 fastCaloVDV.DataObjects = {( 'CaloBCIDAverage' , 'StoreGateSvc+CaloBCIDAverage' ),
43 ( 'TrigRoiDescriptorCollection' , 'StoreGateSvc+%s'%InViewRoIs )}
44 if ( not flags.Input.isMC ):
45 fastCaloVDV.DataObjects.add(('LArDeadOTXFromSC' , 'StoreGateSvc+DeadOTXFromSC' ))
46 reco.addEventAlgo(fastCaloVDV)
47 return reco
48
49
52
54 """Creates the inputMaker for FS in menu"""
55 RoIs = caloFSRoI
56 InputMakerAlg = CompFactory.InputMakerForRoI("IMclusterFS", RoIsLink="initialRoI")
57 InputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
58 InputMakerAlg.RoIs=RoIs
59 return InputMakerAlg
fastCaloVDVCfg(flags, name="fastCaloVDV", InViewRoIs="EMCaloRoIs")
Definition CaloDef.py:39
fastCaloRecoSequenceCfg(flags, inputEDM="", ClustersName="HLT_FastCaloEMClusters", RingerKey="HLT_FastCaloRinger", doForward=False, doAllEm=False, doAll=False)
Definition CaloDef.py:14
clusterFSInputMaker()
cluster maker functions
Definition CaloDef.py:53