ATLAS Offline Software
Functions | Variables
ISF_AlgorithmsConfig Namespace Reference

Functions

def SimEventFilterCfg (flags, name="ISF_SimEventFilter", sequenceName='SimSequence', **kwargs)
 
def InvertedSimEventFilterCfg (flags, name="ISF_InvertedSimEventFilter", sequenceName='CopyHitSequence', **kwargs)
 
def RenameHitCollectionsCfg (flags, name="RenameHitCollections", sequenceName='CopyHitSequence', **kwargs)
 

Variables

 AthSequencer = CompFactory.AthSequencer
 

Function Documentation

◆ InvertedSimEventFilterCfg()

def ISF_AlgorithmsConfig.InvertedSimEventFilterCfg (   flags,
  name = "ISF_InvertedSimEventFilter",
  sequenceName = 'CopyHitSequence',
**  kwargs 
)

Definition at line 22 of file ISF_AlgorithmsConfig.py.

22 def InvertedSimEventFilterCfg(flags, name="ISF_InvertedSimEventFilter", sequenceName='CopyHitSequence', **kwargs):
23  kwargs.setdefault("FilterKey", "ISF_InvertedSimEventFilter")
24  kwargs.setdefault("InvertFilter", True)
25  return SimEventFilterCfg(flags, name, sequenceName, **kwargs)
26 

◆ RenameHitCollectionsCfg()

def ISF_AlgorithmsConfig.RenameHitCollectionsCfg (   flags,
  name = "RenameHitCollections",
  sequenceName = 'CopyHitSequence',
**  kwargs 
)

Definition at line 27 of file ISF_AlgorithmsConfig.py.

27 def RenameHitCollectionsCfg(flags, name="RenameHitCollections", sequenceName='CopyHitSequence', **kwargs):
28  result = ComponentAccumulator()
29  result.addSequence(AthSequencer(sequenceName), parentName='AthAlgSeq')
30  kwargs.setdefault( "InputMcEventCollection", "TruthEventOLD" )
31  kwargs.setdefault( "OutputMcEventCollection", "TruthEvent" )
32  kwargs.setdefault( "InputCaloEntryLayer", "CaloEntryLayerOLD" )
33  kwargs.setdefault( "InputMuonEntryLayer", "MuonEntryLayerOLD" )
34  kwargs.setdefault( "InputMuonExitLayer", "MuonExitLayerOLD" )
35  kwargs.setdefault( "OutputCaloEntryLayer", "CaloEntryLayer" )
36  kwargs.setdefault( "OutputMuonEntryLayer", "MuonEntryLayer" )
37  kwargs.setdefault( "OutputMuonExitLayer", "MuonExitLayer" )
38 
39  if flags.Detector.EnableBCM:
40  kwargs.setdefault( "InputBCMHits", "BCMHitsOLD" )
41  kwargs.setdefault( "InputBLMHits", "BLMHitsOLD" )
42  kwargs.setdefault( "OutputBCMHits", "BCMHits" )
43  kwargs.setdefault( "OutputBLMHits", "BLMHits" )
44  if flags.Detector.EnablePixel:
45  kwargs.setdefault( "InputPixelHits", "PixelHitsOLD" )
46  kwargs.setdefault( "OutputPixelHits", "PixelHits" )
47  if flags.Detector.EnableSCT:
48  kwargs.setdefault( "InputSCTHits", "SCT_HitsOLD" )
49  kwargs.setdefault( "OutputSCTHits", "SCT_Hits" )
50  if flags.Detector.EnableTRT:
51  kwargs.setdefault( "InputTRTUncompressedHits", "TRTUncompressedHitsOLD" )
52  kwargs.setdefault( "OutputTRTUncompressedHits", "TRTUncompressedHits" )
53  if flags.Detector.EnableITkPixel:
54  kwargs.setdefault( "InputITkPixelHits", "ITkPixelHitsOLD" )
55  kwargs.setdefault( "OutputITkPixelHits", "ITkPixelHits" )
56  if flags.Detector.EnableITkStrip:
57  kwargs.setdefault( "InputITkStripHits", "ITkStripHitsOLD" )
58  kwargs.setdefault( "OutputITkStripHits", "ITkStripHits" )
59 
60  if flags.Detector.EnableLAr:
61  kwargs.setdefault( "InputLArEMBHits", "LArHitEMBOLD" )
62  kwargs.setdefault( "InputLArEMECHits", "LArHitEMECOLD" )
63  kwargs.setdefault( "InputLArFCALHits", "LArHitFCALOLD" )
64  kwargs.setdefault( "InputLArHECHits", "LArHitHECOLD" )
65  kwargs.setdefault( "OutputLArEMBHits", "LArHitEMB" )
66  kwargs.setdefault( "OutputLArEMECHits", "LArHitEMEC" )
67  kwargs.setdefault( "OutputLArFCALHits", "LArHitFCAL" )
68  kwargs.setdefault( "OutputLArHECHits", "LArHitHEC" )
69  #TODO: proper treatment of calibration hits
70  #kwargs.setdefault( "InputLArActiveCalibHits", "LArCalibrationHitActive")
71  #kwargs.setdefault( "InputLArInactiveCalibHits", "LArCalibrationHitInactive")
72  #kwargs.setdefault( "InputLArDeadCalibHits", "LArCalibrationHitDeadMaterial")
73  kwargs.setdefault( "OutputLArActiveCalibHits", "LArCalibrationHitActive")
74  kwargs.setdefault( "OutputLArInactiveCalibHits", "LArCalibrationHitInactive")
75  kwargs.setdefault( "OutputLArDeadCalibHits", "LArCalibrationHitDeadMaterial")
76 
77  if flags.Detector.EnableTile:
78  kwargs.setdefault( "InputTileHits", "TileHitVecOLD" )
79  kwargs.setdefault( "OutputTileHits", "TileHitVec" )
80  #TODO: proper treatment of calibration hits
81  #kwargs.setdefault( "InputTileActiveCalibHits", "TileCalibHitActiveCellOLD")
82  #kwargs.setdefault( "InputTileInactiveCalibHits", "TileCalibHitInactiveCellOLD")
83  #kwargs.setdefault( "InputTileDeadCalibHits", "TileCalibHitDeadMaterialOLD")
84  kwargs.setdefault( "OutputTileActiveCalibHits", "TileCalibHitActiveCell")
85  kwargs.setdefault( "OutputTileInactiveCalibHits", "TileCalibHitInactiveCell")
86  kwargs.setdefault( "OutputTileDeadCalibHits", "TileCalibHitDeadMaterial")
87  if flags.Detector.EnableMBTS:
88  kwargs.setdefault( "InputMBTSHits", "MBTSHitsOLD" )
89  kwargs.setdefault( "OutputMBTSHits", "MBTSHits" )
90  if flags.Detector.EnableHGTD:
91  kwargs.setdefault( "InputHGTDHits", "HGTD_HitsOLD" )
92  kwargs.setdefault( "OutputHGTDHits", "HGTD_Hits" )
93 
94  if flags.Detector.EnableCSC:
95  kwargs.setdefault( "InputCSCHits", "CSC_HitsOLD" )
96  kwargs.setdefault( "OutputCSCHits", "CSC_Hits" )
97  if flags.Detector.EnableMDT:
98  kwargs.setdefault( "InputMDTHits", "MDT_HitsOLD" )
99  kwargs.setdefault( "OutputMDTHits", "MDT_Hits" )
100  if flags.Detector.EnableRPC:
101  kwargs.setdefault( "InputRPCHits", "RPC_HitsOLD" )
102  kwargs.setdefault( "OutputRPCHits", "RPC_Hits" )
103  if flags.Detector.EnableTGC:
104  kwargs.setdefault( "InputTGCHits", "TGC_HitsOLD" )
105  kwargs.setdefault( "OutputTGCHits", "TGC_Hits" )
106  if flags.Detector.EnableMM:
107  kwargs.setdefault( "InputMMHits", "MM_HitsOLD" )
108  kwargs.setdefault( "OutputMMHits", "MM_Hits" )
109  if flags.Detector.EnablesTGC:
110  kwargs.setdefault( "InputsTGCHits", "sTGC_HitsOLD" )
111  kwargs.setdefault( "OutputsTGCHits", "sTGC_Hits" )
112 
113  result.addEventAlgo(CompFactory.ISF.RenameHitCollectionsAlg(name, **kwargs), sequenceName) # TODO Need to ensure that sequence has been created
114  return result

◆ SimEventFilterCfg()

def ISF_AlgorithmsConfig.SimEventFilterCfg (   flags,
  name = "ISF_SimEventFilter",
  sequenceName = 'SimSequence',
**  kwargs 
)

Definition at line 9 of file ISF_AlgorithmsConfig.py.

9 def SimEventFilterCfg(flags, name="ISF_SimEventFilter", sequenceName='SimSequence', **kwargs):
10  result = ComponentAccumulator()
11  result.addSequence(AthSequencer(sequenceName), parentName='AthAlgSeq')
12  kwargs.setdefault( "InputHardScatterCollection", "BeamTruthEvent")
13  kwargs.setdefault( "GenParticleCommonFilters", [result.popToolsAndMerge(ParticlePositionFilterDynamicCfg(flags)),
14  result.popToolsAndMerge(EtaPhiFilterCfg(flags)),
15  result.popToolsAndMerge(GenParticleInteractingFilterCfg(flags))] )
16  kwargs.setdefault( "GenParticleOldFilters", [result.popToolsAndMerge(ParticleFinalStateFilterCfg(flags))] )
17  kwargs.setdefault( "GenParticleNewFilters", [result.popToolsAndMerge(ParticleSimAcceptList_ExtraParticlesCfg(flags))] )
18 
19  result.addEventAlgo(CompFactory.ISF.SimEventFilter(name, **kwargs), sequenceName) # TODO Need to ensure that sequence has been created
20  return result
21 

Variable Documentation

◆ AthSequencer

ISF_AlgorithmsConfig.AthSequencer = CompFactory.AthSequencer

Definition at line 7 of file ISF_AlgorithmsConfig.py.

ISF_HepMC_ToolsConfig.ParticlePositionFilterDynamicCfg
def ParticlePositionFilterDynamicCfg(flags, name="ISF_ParticlePositionFilterDynamic", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:111
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
ISF_HepMC_ToolsConfig.EtaPhiFilterCfg
def EtaPhiFilterCfg(flags, name="ISF_EtaPhiFilter", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:132
ISF_AlgorithmsConfig.RenameHitCollectionsCfg
def RenameHitCollectionsCfg(flags, name="RenameHitCollections", sequenceName='CopyHitSequence', **kwargs)
Definition: ISF_AlgorithmsConfig.py:27
ISF_HepMC_ToolsConfig.GenParticleInteractingFilterCfg
def GenParticleInteractingFilterCfg(flags, name="ISF_GenParticleInteractingFilter", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:124
ISF_AlgorithmsConfig.SimEventFilterCfg
def SimEventFilterCfg(flags, name="ISF_SimEventFilter", sequenceName='SimSequence', **kwargs)
Definition: ISF_AlgorithmsConfig.py:9
ISF_HepMC_ToolsConfig.ParticleFinalStateFilterCfg
def ParticleFinalStateFilterCfg(flags, name="ISF_ParticleFinalStateFilter", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:13
ISF_HepMC_ToolsConfig.ParticleSimAcceptList_ExtraParticlesCfg
def ParticleSimAcceptList_ExtraParticlesCfg(flags, name="ISF_ParticleSimAcceptList_ExtraParticles", **kwargs)
Definition: ISF_HepMC_ToolsConfig.py:38
ISF_AlgorithmsConfig.InvertedSimEventFilterCfg
def InvertedSimEventFilterCfg(flags, name="ISF_InvertedSimEventFilter", sequenceName='CopyHitSequence', **kwargs)
Definition: ISF_AlgorithmsConfig.py:22