ATLAS Offline Software
Classes | Functions | Variables
CSV_InDetImporter Namespace Reference

Classes

class  CSV_InDetImporterAlg
 

Functions

def getCSVFilename (outputDir, container, eventNumber)
 
def CSV_InDetImporterCfg (flags, indir, trackParticleName)
 

Variables

 flags = initConfigFlags()
 
 MaxEvents
 
 AODFileName
 
 acc = MainServicesCfg(flags)
 
 withDetails
 
 status = acc.run()
 

Function Documentation

◆ CSV_InDetImporterCfg()

def CSV_InDetImporter.CSV_InDetImporterCfg (   flags,
  indir,
  trackParticleName 
)

Definition at line 91 of file CSV_InDetImporter.py.

91 def CSV_InDetImporterCfg(flags, indir, trackParticleName):
92  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
93  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
94 
96 
97  algo = CSV_InDetImporterAlg("CSV_InDetImporter")
98  algo.indir = indir
99  if trackParticleName:
100  algo.trackParticleName = trackParticleName
101  output = [f'xAOD::TrackParticleContainer#{trackParticleName}', f'xAOD::TrackParticleAuxContainer#{trackParticleName}Aux.']
102  algo.ExtraOutput = output[:1]
103  ca.merge(addToESD(flags, output))
104  ca.merge(addToAOD(flags, output))
105 
106  ca.addEventAlgo(algo)
107  return ca
108 
109 

◆ getCSVFilename()

def CSV_InDetImporter.getCSVFilename (   outputDir,
  container,
  eventNumber 
)

Definition at line 10 of file CSV_InDetImporter.py.

10 def getCSVFilename(outputDir, container, eventNumber):
11  return f"{outputDir}/{container}_event_{eventNumber}.csv"
12 

Variable Documentation

◆ acc

CSV_InDetImporter.acc = MainServicesCfg(flags)

Definition at line 121 of file CSV_InDetImporter.py.

◆ AODFileName

CSV_InDetImporter.AODFileName

Definition at line 118 of file CSV_InDetImporter.py.

◆ flags

CSV_InDetImporter.flags = initConfigFlags()

Definition at line 113 of file CSV_InDetImporter.py.

◆ MaxEvents

CSV_InDetImporter.MaxEvents

Definition at line 116 of file CSV_InDetImporter.py.

◆ status

CSV_InDetImporter.status = acc.run()

Definition at line 130 of file CSV_InDetImporter.py.

◆ withDetails

CSV_InDetImporter.withDetails

Definition at line 128 of file CSV_InDetImporter.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CSV_InDetImporter.getCSVFilename
def getCSVFilename(outputDir, container, eventNumber)
Definition: CSV_InDetImporter.py:10
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
CSV_InDetImporter.CSV_InDetImporterCfg
def CSV_InDetImporterCfg(flags, indir, trackParticleName)
Definition: CSV_InDetImporter.py:91
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142