ATLAS Offline Software
Functions
python.SimOutputConfig Namespace Reference

Functions

def getStreamEVNT_TR_ItemList (flags)
 
def getStreamHITS_ItemList (flags)
 

Function Documentation

◆ getStreamEVNT_TR_ItemList()

def python.SimOutputConfig.getStreamEVNT_TR_ItemList (   flags)

Definition at line 5 of file SimOutputConfig.py.

6  #Add to item list
7  ItemList = [
8  "IOVMetaDataContainer#*",
9  "EventInfo#*"
10  ]
11  from SimulationConfig.SimEnums import CavernBackground
12  if flags.Sim.CavernBackground in [CavernBackground.Write, CavernBackground.WriteWorld]:
13  ItemList += ["TrackRecordCollection#NeutronBG"]
14  else:
15  ItemList += ["TrackRecordCollection#CosmicRecord"]
16  return ItemList
17 
18 

◆ getStreamHITS_ItemList()

def python.SimOutputConfig.getStreamHITS_ItemList (   flags)

Definition at line 19 of file SimOutputConfig.py.

19 def getStreamHITS_ItemList(flags):
20  #Add to item list
21 
22  ItemList = ["McEventCollection#TruthEvent"]
23 
24  # Legacy EVNT inputs only
25  InputTypes = [ entry.split('#')[0] for entry in flags.Input.TypedCollections ]
26  if 'JetCollection' in InputTypes:
27  # In the case that JetCollections are present in the EVNT
28  # file, they should be copied to the HITS file
29  ItemList = ["JetCollection#*"]
30 
31  ItemList+=["xAOD::EventInfo#EventInfo",
32  "xAOD::EventAuxInfo#EventInfoAux.",
33  "xAOD::EventInfoContainer#*",
34  "xAOD::EventInfoAuxContainer#*"]
35 
36  if flags.Sim.IncludeParentsInG4Event:
37  ItemList += ["McEventCollection#GEN_EVENT"]
38 
39  # Truth Jet Containers are only usually present in minbias
40  # background EVNT files (they should then be copied to the HITS
41  # file)
42  if 'xAOD::JetContainer#AntiKt4TruthJets' in flags.Input.TypedCollections:
43  ItemList += ["xAOD::JetContainer#AntiKt4TruthJets",
44  "xAOD::AuxContainerBase!#AntiKt4TruthJetsAux.-constituentLinks.-constituentWeights"]
45 
46  if 'xAOD::JetContainer#AntiKt6TruthJets' in flags.Input.TypedCollections:
47  ItemList += ["xAOD::JetContainer#AntiKt6TruthJets",
48  "xAOD::AuxContainerBase!#AntiKt6TruthJetsAux.-constituentLinks.-constituentWeights"]
49 
50  # pile-up TruthParticleContainers are only usually present in
51  # minbias background EVNT files (they should then be copied to the
52  # HITS file)
53  if 'xAOD::TruthParticleContainer#TruthPileupParticles' in flags.Input.TypedCollections:
54  ItemList += ["xAOD::TruthParticleContainer#TruthPileupParticles",
55  "xAOD::TruthParticleAuxContainer#TruthPileupParticlesAux."]
56 
57  # HijingEventParams are usually only present in EVNT files
58  # produced with Hijing (they should then be copied to the HITS
59  # file)
60  if 'Hijing_event_params' in flags.Input.Collections:
61  ItemList += ["HijingEventParams#Hijing_event_params"]
62 
63  if flags.Detector.EnablePixel or flags.Detector.EnableSCT or \
64  flags.Detector.EnableITkPixel or flags.Detector.EnableITkStrip or flags.Detector.EnablePLR or \
65  flags.Detector.EnableHGTD:
66  ItemList += ["SiHitCollection#*"]
67 
68  if flags.Detector.EnableTRT:
69  ItemList += ["TRTUncompressedHitCollection#*"]
70 
71  if flags.Detector.EnableID or flags.Detector.EnableITk:
72  ItemList += ["TrackRecordCollection#CaloEntryLayer"]
73 
74  if flags.Detector.EnableCalo:
75  ItemList += ["TrackRecordCollection#MuonEntryLayer"]
76  from SimulationConfig.SimEnums import CalibrationRun
77  if flags.Sim.CalibrationRun in [CalibrationRun.LAr, CalibrationRun.LArTile, CalibrationRun.LArTileZDC]:
78  ItemList += ["CaloCalibrationHitContainer#LArCalibrationHitActive",
79  "CaloCalibrationHitContainer#LArCalibrationHitDeadMaterial",
80  "CaloCalibrationHitContainer#LArCalibrationHitInactive",
81  "CaloCalibrationHitContainer#TileCalibHitActiveCell",
82  "CaloCalibrationHitContainer#TileCalibHitInactiveCell",
83  "CaloCalibrationHitContainer#TileCalibHitDeadMaterial"]
84  else:
85  ItemList += ["CaloCalibrationHitContainer#*"] #TODO be more precise about this case
86 
87  if flags.Detector.EnableLAr:
88  ItemList += ["LArHitContainer#LArHitEMB",
89  "LArHitContainer#LArHitEMEC",
90  "LArHitContainer#LArHitHEC",
91  "LArHitContainer#LArHitFCAL"]
92  if flags.Sim.ISF.HITSMergingRequired.get('CALO', False):
93  ItemList += ["LArHitContainer#LArHitEMB_G4",
94  "LArHitContainer#LArHitEMEC_G4",
95  "LArHitContainer#LArHitHEC_G4",
96  "LArHitContainer#LArHitFCAL_G4",
97  "LArHitContainer#LArHitEMB_FastCaloSim",
98  "LArHitContainer#LArHitEMEC_FastCaloSim",
99  "LArHitContainer#LArHitHEC_FastCaloSim",
100  "LArHitContainer#LArHitFCAL_FastCaloSim"]
101 
102  if flags.Detector.EnableTile:
103  if flags.Beam.Type is BeamType.TestBeam:
104  ItemList += ["TBElementContainer#TBElementCnt",
105  "TileHitVector#TileTBHits"]
106  ItemList += ["TileHitVector#TileHitVec",
107  "TileHitVector#MBTSHits"]
108  if flags.Sim.ISF.HITSMergingRequired.get('CALO', False):
109  ItemList += ["TileHitVector#MBTSHits_G4",
110  "TileHitVector#TileHitVec_G4",
111  "TileHitVector#TileHitVec_FastCaloSim"]
112 
113  if flags.Detector.EnableMuon:
114  if flags.Muon.usePhaseIIGeoSetup:
115  from MuonSensitiveDetectorsR4.SensitiveDetectorsCfg import OutputSimContainersCfg
116  ItemList += OutputSimContainersCfg(flags)
117  else:
118  from MuonG4SD.MuonG4SDConfig import OutputSimContainersCfg
119  ItemList += OutputSimContainersCfg(flags)
120 
121  ItemList += ["TrackRecordCollection#MuonExitLayer"]
122 
123  if flags.Detector.EnableLucid:
124  ItemList += ["LUCID_SimHitCollection#*"]
125 
126  if flags.Detector.EnableFwdRegion:
127  ItemList += ["SimulationHitCollection#*"]
128 
129  if flags.Detector.EnableZDC:
130  ItemList += ["ZDC_SimFiberHit_Collection#ZDC_SimFiberHit_Collection"]
131  from SimulationConfig.SimEnums import CalibrationRun
132  if flags.Sim.CalibrationRun in [CalibrationRun.ZDC, CalibrationRun.LArTileZDC]:
133  ItemList += ["CaloCalibrationHitContainer#ZDC_CalibrationHits"]
134 
135  if flags.Detector.EnableALFA:
136  ItemList += ["ALFA_HitCollection#*",
137  "ALFA_ODHitCollection#*"]
138 
139  if flags.Detector.EnableAFP:
140  ItemList += ["AFP_TDSimHitCollection#*",
141  "AFP_SIDSimHitCollection#*"]
142 
143  if flags.Sim.RecordStepInfo:
144  ItemList += ["ISF_FCS_Parametrization::FCS_StepInfoCollection#MergedEventSteps"]
145 
146  if flags.Beam.Type is BeamType.Cosmics:
147  ItemList += ["TrackRecordCollection#CosmicRecord",
148  "TrackRecordCollection#CosmicPerigee"]
149 
150  return ItemList
python.SimOutputConfig.getStreamHITS_ItemList
def getStreamHITS_ItemList(flags)
Definition: SimOutputConfig.py:19
python.SimOutputConfig.getStreamEVNT_TR_ItemList
def getStreamEVNT_TR_ItemList(flags)
Definition: SimOutputConfig.py:5
MuonG4SDConfig.OutputSimContainersCfg
def OutputSimContainersCfg(flags)
Definition: MuonG4SDConfig.py:64