ATLAS Offline Software
Functions | Variables
DumpEventDataToJSONConfig Namespace Reference

Functions

def DumpEventDataToJSONAlgCfg (flags, doExtrap=False, doACTSEDM=True, **kwargs)
 

Variables

 flags = initConfigFlags()
 
 parser = flags.getArgumentParser()
 
 dest
 
 default
 
 help
 
 metavar
 
 action
 
 args = parser.parse_args()
 
 NumThreads
 
 NumConcurrentEvents
 
 cfg = MainServicesCfg(flags)
 
 muon_edm_helper_svc = CompFactory.Muon.MuonEDMHelperSvc("MuonEDMHelperSvc")
 
def topoAcc
 

Function Documentation

◆ DumpEventDataToJSONAlgCfg()

def DumpEventDataToJSONConfig.DumpEventDataToJSONAlgCfg (   flags,
  doExtrap = False,
  doACTSEDM = True,
**  kwargs 
)

Definition at line 8 of file DumpEventDataToJSONConfig.py.

8 def DumpEventDataToJSONAlgCfg(flags, doExtrap=False, doACTSEDM = True, **kwargs):
9  result = ComponentAccumulator()
10  extrapolationEngine = ""
11  if doExtrap:
12  from AtlasGeoModel.GeoModelConfig import GeoModelCfg
13  gmsAcc = GeoModelCfg(flags)
14  result.merge(gmsAcc)
15 
16  from TrkConfig.AtlasExtrapolationEngineConfig import AtlasExtrapolationEngineCfg
17  extrapAcc = AtlasExtrapolationEngineCfg(flags)
18  extrapolationEngine = extrapAcc.getPrimary()
19  result.merge(extrapAcc)
20 
21  kwargs.setdefault('Extrapolator', extrapolationEngine)
22  else:
23  kwargs.setdefault('Extrapolator', '')
24 
25 
26  if doACTSEDM:
27  # Need to be able to retrieve the ActsAlignment in order to understand the geometry
28  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
29  result.merge(ActsGeometryContextAlgCfg(flags))
30  else:
31  kwargs.setdefault('ActsAlignmentKey', '')
32  kwargs.setdefault('TrackContainerKeys', [])
33 
34 
35  # Special container names in DAOD_PHYSLITE for calibrated objects
36  if 'StreamDAOD_PHYSLITE' in flags.Input.Collections:
37  # AnalysisJets and AnalysisLargeRJets are the standard jet containers
38  kwargs.setdefault('JetContainerKeys', ['AnalysisJets','AnalysisLargeRJets'])
39  # AnalysisMuons are the standard calibrated muon container
40  kwargs.setdefault('MuonContainerKeys', ['AnalysisMuons'])
41  # AnalysisTauJets are the calibrated tau jet container
42  kwargs.setdefault('TauJetContainerKeys', ['AnalysisTauJets'])
43  # AnalysisElectrons are the standard calibrated electron container
44  kwargs.setdefault('ElectronContainerKeys', ['AnalysisElectrons'])
45  # AnalysisPhotons are the standard calibrated photon container
46  kwargs.setdefault('PhotonContainerKeys', ['AnalysisPhotons'])
47 
48  # Reduced information in PHYS and PHYSLITE compared to AOD/ESD
49  if 'StreamDAOD_PHYS' in flags.Input.Collections or 'StreamDAOD_PHYSLITE' in flags.Input.Collections:
50  # Not all data is available in PHYS/LITE files
51  kwargs.setdefault('PHYSLITE', True)
52  # Only egamma clusters in DAOD_PHYS/LITE
53  kwargs.setdefault('CaloClusterContainerKeys', ['egammaClusters'])
54  kwargs.setdefault('CaloCellContainerKey', [])
55  # No prep raw data in DAOD_PHYS/LITE
56  kwargs.setdefault('MdtPrepRawDataKey', '')
57  kwargs.setdefault('RpcPrepRawDataKey', '')
58  kwargs.setdefault('TgcPrepRawDataKey', '')
59  kwargs.setdefault('PixelPrepRawDataKey', '')
60  kwargs.setdefault('SctPrepRawDataKey', '')
61  kwargs.setdefault('TrtPrepRawDataKey', '')
62  # These are set based on detector flags and can simply be disabled (no point)
63  kwargs.update( {'MMPrepRawDataKey':'', 'CscPrepRawDataKey':'', 'sTgcPrepRawDataKey':''} )
64  # No real track collections in DAOD_PHYS/LITE
65  kwargs.setdefault('TrackCollectionKeys', [])
66  kwargs.setdefault('TrackContainerKeys', [])
67  kwargs.setdefault('TrackParticleContainerKeys', ['InDetTrackParticles', 'CombinedMuonTrackParticles']) #, 'GSFTrackParticles'])
68 
69 
70  dumpAlg = CompFactory.DumpEventDataToJsonAlg( **kwargs)
71  result.addEventAlgo(dumpAlg)
72  return result
73 
74 

Variable Documentation

◆ action

DumpEventDataToJSONConfig.action

Definition at line 84 of file DumpEventDataToJSONConfig.py.

◆ args

DumpEventDataToJSONConfig.args = parser.parse_args()

Definition at line 85 of file DumpEventDataToJSONConfig.py.

◆ cfg

DumpEventDataToJSONConfig.cfg = MainServicesCfg(flags)

Definition at line 108 of file DumpEventDataToJSONConfig.py.

◆ default

DumpEventDataToJSONConfig.default

Definition at line 81 of file DumpEventDataToJSONConfig.py.

◆ dest

DumpEventDataToJSONConfig.dest

Definition at line 81 of file DumpEventDataToJSONConfig.py.

◆ flags

DumpEventDataToJSONConfig.flags = initConfigFlags()

Definition at line 79 of file DumpEventDataToJSONConfig.py.

◆ help

DumpEventDataToJSONConfig.help

Definition at line 82 of file DumpEventDataToJSONConfig.py.

◆ metavar

DumpEventDataToJSONConfig.metavar

Definition at line 82 of file DumpEventDataToJSONConfig.py.

◆ muon_edm_helper_svc

DumpEventDataToJSONConfig.muon_edm_helper_svc = CompFactory.Muon.MuonEDMHelperSvc("MuonEDMHelperSvc")

Definition at line 150 of file DumpEventDataToJSONConfig.py.

◆ NumConcurrentEvents

DumpEventDataToJSONConfig.NumConcurrentEvents

Definition at line 102 of file DumpEventDataToJSONConfig.py.

◆ NumThreads

DumpEventDataToJSONConfig.NumThreads

Definition at line 101 of file DumpEventDataToJSONConfig.py.

◆ parser

DumpEventDataToJSONConfig.parser = flags.getArgumentParser()

Definition at line 80 of file DumpEventDataToJSONConfig.py.

◆ topoAcc

def DumpEventDataToJSONConfig.topoAcc
Initial value:
2  flags, doExtrap=True, doACTSEDM=False, OutputLevel=VERBOSE, DumpTestEvent=args.prependCalib, OutputLocation=args.output,
3  CscPrepRawDataKey = "CSC_Clusters" if flags.Detector.EnableCSC else "",
4  MMPrepRawDataKey = "MM_Measurements" if flags.Detector.EnableMM else "",
5  sTgcPrepRawDataKey = "STGC_Measurements" if flags.Detector.EnablesTGC else "",
6  )

Definition at line 154 of file DumpEventDataToJSONConfig.py.

python.AtlasExtrapolationEngineConfig.AtlasExtrapolationEngineCfg
def AtlasExtrapolationEngineCfg(flags, name='Extrapolation', nameprefix='Atlas')
Definition: AtlasExtrapolationEngineConfig.py:14
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AlignmentAlgsConfig.ActsGeometryContextAlgCfg
def ActsGeometryContextAlgCfg(flags, name="GeometryContextAlg", **kwargs)
Setup the Geometry context algorithm.
Definition: AlignmentAlgsConfig.py:125
DumpEventDataToJSONConfig.DumpEventDataToJSONAlgCfg
def DumpEventDataToJSONAlgCfg(flags, doExtrap=False, doACTSEDM=True, **kwargs)
Definition: DumpEventDataToJSONConfig.py:8
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16