Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Davide Di Croce
athena
Commits
2987ca52
Commit
2987ca52
authored
1 year ago
by
Frank Winklmeier
Committed by
Melissa Yexley
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
TrigT2CaloCommon: delete unused legacy config in CaloDef
Delete unused legacy config (ATR-28360).
parent
129ff7a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TrigAlgorithms/TrigT2CaloCommon/python/CaloDef.py
+2
-122
2 additions, 122 deletions
Trigger/TrigAlgorithms/TrigT2CaloCommon/python/CaloDef.py
with
2 additions
and
122 deletions
Trigger/TrigAlgorithms/TrigT2CaloCommon/python/CaloDef.py
+
2
−
122
View file @
2987ca52
# Copyright (C) 2002-202
3
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-202
4
CERN for the benefit of the ATLAS collaboration
from
AthenaCommon.CFElements
import
parOR
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
TriggerMenuMT.HLT.Config.MenuComponents
import
algorithmCAToGlobalWrapper
from
TriggerMenuMT.HLT.CommonSequences.FullScanDefs
import
caloFSRoI
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.AccumulatorCache
import
AccumulatorCache
from
TrigT2CaloCommon.TrigCaloDataAccessConfig
import
trigCaloDataAccessSvcCfg
,
CaloDataAccessSvcDependencies
########################
## ALGORITHMS
# defined as private within this module, so that they can be configured only in functions in this module
########################
def
_algoHLTCaloCell
(
flags
,
name
=
"
HLTCaloCellMaker
"
,
inputEDM
=
''
,
outputEDM
=
'
CellsClusters
'
,
RoIMode
=
True
)
:
if
not
inputEDM
:
from
HLTSeeding.HLTSeedingConfig
import
mapThresholdToL1RoICollection
inputEDM
=
mapThresholdToL1RoICollection
(
"
FSNOSEED
"
)
from
AthenaCommon.AppMgr
import
ServiceMgr
as
svcMgr
from
TrigCaloRec.TrigCaloRecConfig
import
HLTCaloCellMaker
algo
=
HLTCaloCellMaker
(
flags
,
name
,
roisKey
=
inputEDM
)
#"HLTCaloCellMaker"
algo
.
RoIs
=
inputEDM
algo
.
TrigDataAccessMT
=
svcMgr
.
TrigCaloDataAccessSvc
algo
.
CellsName
=
outputEDM
algo
.
ExtraInputs
|=
{
(
'
LArBadChannelCont
'
,
'
ConditionStore+LArBadChannel
'
),
(
'
LArMCSym
'
,
'
ConditionStore+LArMCSym
'
),
(
'
LArOnOffIdMapping
'
,
'
ConditionStore+LArOnOffIdMap
'
),
(
'
LArFebRodMapping
'
,
'
ConditionStore+LArFebRodMap
'
),
(
'
CaloDetDescrManager
'
,
'
ConditionStore+CaloDetDescrManager
'
)
}
return
algo
# TODO: delete once HI is migrated to CA
def
_algoHLTHIEventShape
(
flags
,
name
=
'
HLTEventShapeMaker
'
,
inputEDM
=
'
CellsClusters
'
,
outputEDM
=
'
HIEventShape
'
):
algo
=
CompFactory
.
HIEventShapeMaker
(
name
=
name
,
InputCellKey
=
inputEDM
,
...
...
@@ -37,35 +17,6 @@ def _algoHLTHIEventShape(flags,name='HLTEventShapeMaker', inputEDM='CellsCluster
HIEventShapeFillerTool
=
CompFactory
.
HIEventShapeFillerTool
())
return
algo
def
_algoHLTCaloCellCorrector
(
name
=
'
HLTCaloCellCorrector
'
,
inputEDM
=
'
CellsClusters
'
,
outputEDM
=
'
CorrectedCellsClusters
'
,
eventShape
=
'
HIEventShape
'
):
from
TrigCaloRec.TrigCaloRecConf
import
HLTCaloCellCorrector
algo
=
HLTCaloCellCorrector
(
name
)
algo
.
EventShapeCollection
=
eventShape
algo
.
InputCellKey
=
inputEDM
algo
.
OutputCellKey
=
outputEDM
return
algo
def
_algoHLTTopoCluster
(
flags
,
inputEDM
=
"
CellsClusters
"
,
algSuffix
=
""
)
:
from
TrigCaloRec.TrigCaloRecConfig
import
hltTopoClusterMakerCfg
algo
=
algorithmCAToGlobalWrapper
(
hltTopoClusterMakerCfg
,
flags
,
name
=
"
TrigCaloClusterMaker_topo
"
+
algSuffix
,
doLC
=
False
,
clustersKey
=
"
HLT_TopoCaloClusters
"
+
algSuffix
,
cellsKey
=
inputEDM
)[
0
]
return
algo
def
_algoHLTTopoClusterLC
(
flags
,
inputEDM
=
"
CellsClusters
"
,
algSuffix
=
""
)
:
from
TrigCaloRec.TrigCaloRecConfig
import
hltTopoClusterMakerCfg
algo
=
algorithmCAToGlobalWrapper
(
hltTopoClusterMakerCfg
,
flags
,
name
=
"
TrigCaloClusterMaker_topo
"
+
algSuffix
,
doLC
=
True
,
clustersKey
=
"
HLT_TopoCaloClusters
"
+
algSuffix
,
cellsKey
=
inputEDM
)[
0
]
return
algo
#
# fast calo algorithm (central or forward regions)
#
...
...
@@ -96,7 +47,6 @@ def fastCaloRecoSequenceCfg(flags, inputEDM="", ClustersName="HLT_FastCaloEMClus
return
acc
def
fastCaloVDVCfg
(
name
=
"
fastCaloVDV
"
,
InViewRoIs
=
"
EMCaloRoIs
"
)
:
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
reco
=
ComponentAccumulator
()
fastCaloVDV
=
CompFactory
.
AthViews
.
ViewDataVerifier
(
name
)
fastCaloVDV
.
DataObjects
=
{(
'
CaloBCIDAverage
'
,
'
StoreGateSvc+CaloBCIDAverage
'
),
...
...
@@ -104,10 +54,6 @@ def fastCaloVDVCfg(name="fastCaloVDV",InViewRoIs="EMCaloRoIs") :
reco
.
addEventAlgo
(
fastCaloVDV
)
return
reco
####################################
##### SEQUENCES
####################################
##################################
# cluster maker functions
###################################
...
...
@@ -115,73 +61,7 @@ def fastCaloVDVCfg(name="fastCaloVDV",InViewRoIs="EMCaloRoIs") :
def
clusterFSInputMaker
(
):
"""
Creates the inputMaker for FS in menu
"""
RoIs
=
caloFSRoI
from
AthenaConfiguration.ComponentFactory
import
CompFactory
InputMakerAlg
=
CompFactory
.
InputMakerForRoI
(
"
IMclusterFS
"
,
RoIsLink
=
"
initialRoI
"
)
InputMakerAlg
.
RoITool
=
CompFactory
.
ViewCreatorInitialROITool
()
InputMakerAlg
.
RoIs
=
RoIs
return
InputMakerAlg
def
HLTCellMaker
(
flags
,
RoIs
=
caloFSRoI
,
outputName
=
"
CaloCells
"
,
algSuffix
=
""
):
cellMakerAlgo
=
_algoHLTCaloCell
(
flags
,
name
=
"
HLTCaloCellMaker
"
+
algSuffix
,
inputEDM
=
RoIs
,
outputEDM
=
outputName
,
RoIMode
=
True
)
return
cellMakerAlgo
def
HLTFSCellMakerRecoSequence
(
flags
,
RoIs
=
caloFSRoI
):
cellMaker
=
HLTCellMaker
(
flags
,
RoIs
,
outputName
=
"
CaloCellsFS
"
,
algSuffix
=
"
FS
"
)
RecoSequence
=
parOR
(
"
ClusterRecoSequenceFS
"
,
[
cellMaker
])
return
(
RecoSequence
,
cellMaker
.
CellsName
)
def
HLTFSTopoRecoSequence
(
flags
,
RoIs
):
cellMaker
=
HLTCellMaker
(
flags
,
RoIs
,
outputName
=
"
CaloCellsFS
"
,
algSuffix
=
"
FS
"
)
topoClusterMaker
=
_algoHLTTopoCluster
(
flags
,
inputEDM
=
cellMaker
.
CellsName
,
algSuffix
=
"
FS
"
)
RecoSequence
=
parOR
(
"
TopoClusterRecoSequenceFS
"
,
[
cellMaker
,
topoClusterMaker
])
return
(
RecoSequence
,
topoClusterMaker
.
CaloClusters
)
def
HLTRoITopoRecoSequence
(
flags
,
RoIs
,
algSuffix
=
''
):
import
AthenaCommon.CfgMgr
as
CfgMgr
HLTRoITopoRecoSequenceVDV
=
CfgMgr
.
AthViews__ViewDataVerifier
(
"
HLTRoITopoRecoSequenceVDV%s
"
%
algSuffix
)
HLTRoITopoRecoSequenceVDV
.
DataObjects
=
{(
'
TrigRoiDescriptorCollection
'
,
'
StoreGateSvc+PrecisionCaloRoIs%s
'
%
algSuffix
),
(
'
CaloBCIDAverage
'
,
'
StoreGateSvc+CaloBCIDAverage
'
),
(
'
SG::AuxElement
'
,
'
StoreGateSvc+EventInfo.averageInteractionsPerCrossing
'
)}
cellMaker
=
HLTCellMaker
(
flags
,
RoIs
,
algSuffix
=
"
RoI%s
"
%
algSuffix
)
topoClusterMaker
=
_algoHLTTopoCluster
(
flags
,
inputEDM
=
cellMaker
.
CellsName
,
algSuffix
=
"
RoI%s
"
%
algSuffix
)
RecoSequence
=
parOR
(
"
RoITopoClusterRecoSequence%s
"
%
algSuffix
,
[
HLTRoITopoRecoSequenceVDV
,
cellMaker
,
topoClusterMaker
])
return
(
RecoSequence
,
topoClusterMaker
.
CaloClusters
)
def
HLTHIRoITopoRecoSequence
(
flags
,
RoIs
,
algSuffix
=
''
):
from
TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import
getTrigEgammaKeys
TrigEgammaKeys
=
getTrigEgammaKeys
()
eventShape
=
TrigEgammaKeys
.
egEventShape
import
AthenaCommon.CfgMgr
as
CfgMgr
HLTRoITopoRecoSequenceVDV
=
CfgMgr
.
AthViews__ViewDataVerifier
(
"
HLTHIRoITopoRecoSequenceVDV
"
)
HLTRoITopoRecoSequenceVDV
.
DataObjects
=
{(
'
TrigRoiDescriptorCollection
'
,
'
StoreGateSvc+PrecisionCaloRoIs
'
),
(
'
xAOD::HIEventShapeContainer
'
,
'
StoreGateSvc+
'
+
eventShape
),
(
'
CaloBCIDAverage
'
,
'
StoreGateSvc+CaloBCIDAverage
'
),
(
'
SG::AuxElement
'
,
'
StoreGateSvc+EventInfo.averageInteractionsPerCrossing
'
)}
cellMaker
=
HLTCellMaker
(
flags
,
RoIs
,
algSuffix
=
"
HIRoI
"
)
cellCorrector
=
_algoHLTCaloCellCorrector
(
name
=
'
HLTRoICaloCellCorrector
'
,
inputEDM
=
cellMaker
.
CellsName
,
outputEDM
=
'
CorrectedRoICaloCells
'
,
eventShape
=
eventShape
)
topoClusterMaker
=
_algoHLTTopoCluster
(
flags
,
inputEDM
=
cellCorrector
.
OutputCellKey
,
algSuffix
=
"
HIRoI
"
)
RecoSequence
=
parOR
(
"
HIRoITopoClusterRecoSequence
"
,
[
HLTRoITopoRecoSequenceVDV
,
cellMaker
,
cellCorrector
,
topoClusterMaker
])
return
(
RecoSequence
,
topoClusterMaker
.
CaloClusters
)
def
HLTLCTopoRecoSequence
(
flags
,
RoIs
=
'
InViewRoIs
'
):
cellMaker
=
HLTCellMaker
(
flags
,
RoIs
,
outputName
=
"
CaloCellsLC
"
,
algSuffix
=
"
LC
"
)
cellMaker
.
TileCellsInROI
=
True
topoClusterMaker
=
_algoHLTTopoClusterLC
(
flags
,
inputEDM
=
cellMaker
.
CellsName
,
algSuffix
=
"
LC
"
)
RecoSequence
=
parOR
(
"
TopoClusterRecoSequenceLC
"
,[
cellMaker
,
topoClusterMaker
])
return
(
RecoSequence
,
topoClusterMaker
.
CaloClusters
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment