ATLAS Offline Software
Functions
ISF_FastCaloSimParametrizationConfig Namespace Reference

Functions

def ISF_HitAnalysisCfg (flags, name="ISF_HitAnalysis", NTruthParticles=1, saveAllBranches=False, doG4Hits=False, doClusterInfo=False, outputGeoFileName=None, **kwargs)
 
def FastCaloSimCaloTransportationCfg (flags, name="FastCaloSimCaloTransportation", **kwargs)
 
def FastCaloSimCaloExtrapolationCfg (flags, name="FastCaloSimCaloExtrapolation", **kwargs)
 
def FastCaloSimGeometryHelperCfg (flags, name="FastCaloSimGeometryHelper", **kwargs)
 
def CaloCellContainerSDCfg (flags, name='CaloCellContainerSD', **kwargs)
 
def ISF_FastCaloSimParametrization_SimPreInclude (flags)
 
def PostIncludeISF_FastCaloSimParametrizationConditions (flags, cfg)
 
def PostIncludeISF_FastCaloSimParametrizationDigi (flags, cfg)
 
def PostIncludeISF_FastCaloSimParametrizationReco (flags, cfg)
 

Detailed Description

ComponentAccumulator config of tools for ISF_FastCaloSimParametrization

Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ CaloCellContainerSDCfg()

def ISF_FastCaloSimParametrizationConfig.CaloCellContainerSDCfg (   flags,
  name = 'CaloCellContainerSD',
**  kwargs 
)

Definition at line 79 of file ISF_FastCaloSimParametrizationConfig.py.

79 def CaloCellContainerSDCfg(flags, name='CaloCellContainerSD', **kwargs):
80  acc = ComponentAccumulator()
81  kwargs.setdefault ('NoVolumes', True)
82  kwargs.setdefault("OutputCollectionNames", ["DefaultCaloCellContainer"])
83  # Add ISF_FastHitConvertTool, which will also take care
84  # of creating mergable FastCaloSim HIT collections
85  from ISF_FastCaloSimServices.ISF_FastCaloSimServicesConfig import FastHitConvertToolCfg
86  kwargs.setdefault("FastHitConvertTool", acc.addPublicTool(acc.popToolsAndMerge(FastHitConvertToolCfg(flags))))
87  acc.setPrivateTools(CompFactory.CaloCellContainerSDTool(name, **kwargs))
88  return acc
89 

◆ FastCaloSimCaloExtrapolationCfg()

def ISF_FastCaloSimParametrizationConfig.FastCaloSimCaloExtrapolationCfg (   flags,
  name = "FastCaloSimCaloExtrapolation",
**  kwargs 
)

Definition at line 65 of file ISF_FastCaloSimParametrizationConfig.py.

65 def FastCaloSimCaloExtrapolationCfg(flags, name="FastCaloSimCaloExtrapolation", **kwargs):
66  acc = ComponentAccumulator()
67  kwargs.setdefault("CaloBoundaryR", [1148.0, 120.0, 41.0])
68  kwargs.setdefault("CaloBoundaryZ", [3550.0, 4587.0, 4587.0])
69  kwargs.setdefault("CaloGeometryHelper", acc.addPublicTool(acc.popToolsAndMerge(FastCaloSimGeometryHelperCfg(flags))))
70  kwargs.setdefault("CaloTransportation", acc.addPublicTool(acc.popToolsAndMerge(FastCaloSimCaloTransportationCfg(flags))))
71  acc.setPrivateTools(CompFactory.FastCaloSimCaloExtrapolation(name, **kwargs))
72  return acc
73 

◆ FastCaloSimCaloTransportationCfg()

def ISF_FastCaloSimParametrizationConfig.FastCaloSimCaloTransportationCfg (   flags,
  name = "FastCaloSimCaloTransportation",
**  kwargs 
)

Definition at line 57 of file ISF_FastCaloSimParametrizationConfig.py.

57 def FastCaloSimCaloTransportationCfg(flags, name="FastCaloSimCaloTransportation", **kwargs):
58  acc = ComponentAccumulator()
59  from FastCaloSim.FastCaloSimFactoryNew import NITimedExtrapolatorCfg
60  kwargs.setdefault("Extrapolator", acc.addPublicTool(acc.popToolsAndMerge(NITimedExtrapolatorCfg(flags))))
61  kwargs.setdefault("CaloEntrance", 'InDet::Containers::InnerDetector')
62  acc.setPrivateTools(CompFactory.FastCaloSimCaloTransportation(name, **kwargs))
63  return acc
64 

◆ FastCaloSimGeometryHelperCfg()

def ISF_FastCaloSimParametrizationConfig.FastCaloSimGeometryHelperCfg (   flags,
  name = "FastCaloSimGeometryHelper",
**  kwargs 
)

Definition at line 74 of file ISF_FastCaloSimParametrizationConfig.py.

74 def FastCaloSimGeometryHelperCfg(flags, name="FastCaloSimGeometryHelper", **kwargs):
75  acc = ComponentAccumulator()
76  acc.setPrivateTools(CompFactory.FastCaloSimGeometryHelper(name, **kwargs))
77  return acc
78 

◆ ISF_FastCaloSimParametrization_SimPreInclude()

def ISF_FastCaloSimParametrizationConfig.ISF_FastCaloSimParametrization_SimPreInclude (   flags)

Definition at line 90 of file ISF_FastCaloSimParametrizationConfig.py.

91  flags.Sim.RecordStepInfo=True
92  from SimulationConfig.SimEnums import VertexSource,LArParameterization,CalibrationRun
93  #No vertex smearing
94  flags.Sim.VertexSource=VertexSource.AsGenerated
95  # Deactivated G4Optimizations
96  #MuonFieldOnlyInCalo
97  flags.Sim.MuonFieldOnlyInCalo=False
98  #NRR
99  flags.Sim.NRRThreshold=False
100  flags.Sim.NRRWeight=False
101  #PRR
102  flags.Sim.PRRThreshold=False
103  flags.Sim.PRRWeight=False
104  #Frozen Showers
105  flags.Sim.LArParameterization=LArParameterization.NoFrozenShowers
106  flags.Sim.CalibrationRun=CalibrationRun.DeadLAr
107 
108 

◆ ISF_HitAnalysisCfg()

def ISF_FastCaloSimParametrizationConfig.ISF_HitAnalysisCfg (   flags,
  name = "ISF_HitAnalysis",
  NTruthParticles = 1,
  saveAllBranches = False,
  doG4Hits = False,
  doClusterInfo = False,
  outputGeoFileName = None,
**  kwargs 
)

Definition at line 9 of file ISF_FastCaloSimParametrizationConfig.py.

9 def ISF_HitAnalysisCfg(flags, name="ISF_HitAnalysis",
10  NTruthParticles=1, saveAllBranches=False,
11  doG4Hits=False, doClusterInfo=False,
12  outputGeoFileName=None, **kwargs):
13  result = ComponentAccumulator()
14 
15  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
16  result.merge( LArGMCfg(flags) )
17  kwargs.setdefault("CaloDetDescrManager", "CaloDetDescrManager")
18 
19  from TileConditions.TileSamplingFractionConfig import TileSamplingFractionCondAlgCfg
20  result.merge( TileSamplingFractionCondAlgCfg(flags) )
21  kwargs.setdefault("TileSamplingFraction", "TileSamplingFraction")
22 
23  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
24  kwargs.setdefault("TileCablingSvc", result.getPrimaryAndMerge(TileCablingSvcCfg(flags)).name)
25 
26  kwargs.setdefault("NtupleFileName", 'ISF_HitAnalysis')
27  kwargs.setdefault("GeoFileName", 'ISF_Geometry')
28  histOutputArray = ["ISF_HitAnalysis DATAFILE='%s' OPT='RECREATE'" % (flags.Output.HISTFileName)] # FIXME top level directory name
29  if outputGeoFileName:
30  histOutputArray += ["ISF_Geometry DATAFILE='%s' OPT='RECREATE'" % (outputGeoFileName)] # FIXME top level directory name
31  result.addService(CompFactory.THistSvc(Output=histOutputArray))
32  kwargs.setdefault("NTruthParticles", NTruthParticles)
33 
34  from FastCaloSim.FastCaloSimFactoryNew import NITimedExtrapolatorCfg
35  kwargs.setdefault("Extrapolator", result.addPublicTool(result.popToolsAndMerge(NITimedExtrapolatorCfg(flags))))
36  kwargs.setdefault("CaloCoordinateTool", result.addPublicTool(CompFactory.TBCaloCoordinate("TBCaloCoordinate")))
37  kwargs.setdefault("CaloEntrance", 'InDet::Containers::InnerDetector') #FIXME should this be configurable?
38  kwargs.setdefault("FastCaloSimCaloExtrapolation", result.addPublicTool(result.popToolsAndMerge(FastCaloSimCaloExtrapolationCfg(flags))))
39 
40  kwargs.setdefault("CaloBoundaryR", 1148.0)
41  kwargs.setdefault("CaloBoundaryZ", 3550.0) #before: 3475.0
42  kwargs.setdefault("CaloMargin", 100) #=10cm
43  kwargs.setdefault("SaveAllBranches", saveAllBranches) #FIXME
44  kwargs.setdefault("DoAllCells", False)
45  kwargs.setdefault("DoLayers", True)
46  kwargs.setdefault("DoLayerSums", True)
47  kwargs.setdefault("DoG4Hits", doG4Hits) #FIXME
48  kwargs.setdefault("DoClusterInfo", doClusterInfo) #FIXME
49  kwargs.setdefault("TimingCut", 999999)
50 
51  from AthenaServices.PartPropSvcConfig import PartPropSvcCfg
52  kwargs.setdefault('PartPropSvc', result.getPrimaryAndMerge(PartPropSvcCfg(flags)).name)
53 
54  result.addEventAlgo(CompFactory.ISF_HitAnalysis(name,**kwargs))
55  return result
56 

◆ PostIncludeISF_FastCaloSimParametrizationConditions()

def ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationConditions (   flags,
  cfg 
)

Definition at line 109 of file ISF_FastCaloSimParametrizationConfig.py.

110  from IOVDbSvc.IOVDbSvcConfig import addOverride
111  cfg.merge(addOverride(flags, "/LAR/BadChannels/BadChannels", tag="LARBadChannelsBadChannels-MC-empty", db="COOLOFL_LAR/OFLP200"))
112  cfg.merge(addOverride(flags, "/TILE/OFL02/STATUS/ADC", tag="TileOfl02StatusAdc-EmptyBCh", db="COOLOFL_TILE/OFLP200"))
113 
114 

◆ PostIncludeISF_FastCaloSimParametrizationDigi()

def ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationDigi (   flags,
  cfg 
)

Definition at line 115 of file ISF_FastCaloSimParametrizationConfig.py.

116  # TODO write an OutputStreamConfig.addToRDO method?
117  RDO_ItemList = [
118  "ISF_FCS_Parametrization::FCS_StepInfoCollection#MergedEventSteps",
119  "LArHitContainer#*",
120  "TileHitVector#*"
121  ]
122  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
123  cfg.merge(OutputStreamCfg(flags, "RDO", RDO_ItemList))
124 
125  puAlg = cfg.getEventAlgo("StandardPileUpToolsAlg")
126  puAlg.PileUpTools["LArPileUpTool"].CrossTalk = False
127  puAlg.PileUpTools["TileHitVecToCntTool"].HitTimeFlag = 1
128  puAlg.PileUpTools["TileHitVecToCntTool"].usePhotoStatistics = False
129 
130  cfg.getEventAlgo("TileDigitsMaker").IntegerDigits = True
131 
133 
134 

◆ PostIncludeISF_FastCaloSimParametrizationReco()

def ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationReco (   flags,
  cfg 
)

Definition at line 135 of file ISF_FastCaloSimParametrizationConfig.py.

136  ESD_ItemList = [
137  "ISF_FCS_Parametrization::FCS_StepInfoCollection#MergedEventSteps",
138  "LArHitContainer#*",
139  "McEventCollection#TruthEvent",
140  "TileHitVector#*",
141  "TrackRecordCollection#CaloEntryLayer",
142  "TrackRecordCollection#MuonEntryLayer"
143  ]
144  from OutputStreamAthenaPool.OutputStreamConfig import addToESD
145  cfg.merge(addToESD(flags, ESD_ItemList))
146 
ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationDigi
def PostIncludeISF_FastCaloSimParametrizationDigi(flags, cfg)
Definition: ISF_FastCaloSimParametrizationConfig.py:115
ISF_FastCaloSimServicesConfig.FastHitConvertToolCfg
def FastHitConvertToolCfg(flags, name="ISF_FastHitConvertTool", **kwargs)
Definition: ISF_FastCaloSimServicesConfig.py:53
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
ISF_FastCaloSimParametrizationConfig.FastCaloSimGeometryHelperCfg
def FastCaloSimGeometryHelperCfg(flags, name="FastCaloSimGeometryHelper", **kwargs)
Definition: ISF_FastCaloSimParametrizationConfig.py:74
ISF_FastCaloSimParametrizationConfig.FastCaloSimCaloTransportationCfg
def FastCaloSimCaloTransportationCfg(flags, name="FastCaloSimCaloTransportation", **kwargs)
Definition: ISF_FastCaloSimParametrizationConfig.py:57
python.TileSamplingFractionConfig.TileSamplingFractionCondAlgCfg
def TileSamplingFractionCondAlgCfg(flags, **kwargs)
Definition: TileSamplingFractionConfig.py:9
ISF_FastCaloSimParametrizationConfig.FastCaloSimCaloExtrapolationCfg
def FastCaloSimCaloExtrapolationCfg(flags, name="FastCaloSimCaloExtrapolation", **kwargs)
Definition: ISF_FastCaloSimParametrizationConfig.py:65
python.IOVDbSvcConfig.addOverride
def addOverride(flags, folder, tag, db=None)
Definition: IOVDbSvcConfig.py:224
ISF_FastCaloSimParametrizationConfig.ISF_FastCaloSimParametrization_SimPreInclude
def ISF_FastCaloSimParametrization_SimPreInclude(flags)
Definition: ISF_FastCaloSimParametrizationConfig.py:90
python.PartPropSvcConfig.PartPropSvcCfg
def PartPropSvcCfg(flags, **kwargs)
Definition: PartPropSvcConfig.py:6
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
ISF_FastCaloSimParametrizationConfig.ISF_HitAnalysisCfg
def ISF_HitAnalysisCfg(flags, name="ISF_HitAnalysis", NTruthParticles=1, saveAllBranches=False, doG4Hits=False, doClusterInfo=False, outputGeoFileName=None, **kwargs)
Definition: ISF_FastCaloSimParametrizationConfig.py:9
FastCaloSimFactoryNew.NITimedExtrapolatorCfg
def NITimedExtrapolatorCfg(flags, name="ISF_NITimedExtrapolator", **kwargs)
Definition: FastCaloSimFactoryNew.py:9
ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationConditions
def PostIncludeISF_FastCaloSimParametrizationConditions(flags, cfg)
Definition: ISF_FastCaloSimParametrizationConfig.py:109
ISF_FastCaloSimParametrizationConfig.PostIncludeISF_FastCaloSimParametrizationReco
def PostIncludeISF_FastCaloSimParametrizationReco(flags, cfg)
Definition: ISF_FastCaloSimParametrizationConfig.py:135
ISF_FastCaloSimParametrizationConfig.CaloCellContainerSDCfg
def CaloCellContainerSDCfg(flags, name='CaloCellContainerSD', **kwargs)
Definition: ISF_FastCaloSimParametrizationConfig.py:79
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11