ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
python
CaloTowerMakerConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaCommon
import
SystemOfUnits
as
Units
6
7
def
CaloTowerMakerCfg
(flags):
8
""" specifies CaloCell-> CaloTower for all calorimeters
9
@warning this is not standalone fragment, it needs calo cells (or entire calo reco to be prepared)
10
"""
11
acc = ComponentAccumulator()
12
13
lar = CompFactory.LArTowerBuilderTool(IncludedCalos= [
"LAREM"
,
"LARHEC"
])
14
fcal = CompFactory.LArFCalTowerBuilderTool(MinimumEt = 0 * Units.MeV)
15
16
tile = CompFactory.TileTowerBuilderTool(CellContainerName =
'AllCalo'
,
17
IncludedCalos = [
'TILE'
])
18
19
builder = CompFactory.CaloTowerAlgorithm(
"CaloCombinedTowerBuilder"
,
20
TowerBuilderTools = [lar, fcal, tile],
21
NumberOfPhiTowers=64,
22
NumberOfEtaTowers=100,
23
EtaMin=-5.0,
24
EtaMax=5.0,
25
TowerContainerName =
"CombinedTower"
)
26
27
acc.addEventAlgo(builder, primary=
True
)
28
29
return
acc
python.CaloTowerMakerConfig.CaloTowerMakerCfg
CaloTowerMakerCfg(flags)
Definition
CaloTowerMakerConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0