Public Member Functions | |
def | __init__ (self, cfg, comp, outdir) |
def | stop (self) |
Public Attributes | |
file | |
TFile service. The file attribute is a TFile that can be used in several analyzers. The file is closed when the service stops. Example configuration: output_rootfile = cfg.Service( TFileService, 'myhists', fname='histograms.root', option='recreate' )
def tfile.TFileService.__init__ | ( | self, | |
cfg, | |||
comp, | |||
outdir | |||
) |
cfg must contain: - fname: file name - option: TFile options, e.g. recreate outdir is the output directory for the TFile comp is a dummy parameter here. It is needed because the looper creates services and analyzers in the same way, providing the configuration (cfg), the component currently processed (comp), and the output directory. Other implementations of the TFileService could make use of the component information, eg. the component name.
Definition at line 18 of file tfile.py.
References join().
def tfile.TFileService.stop | ( | self | ) |
Definition at line 38 of file tfile.py.
References core.VertexHistograms.VertexHistograms.file, eventstfile.Events.file, fbuf.file, EnergyCorrector.EnergyCorrector.file, ztee.GZipLog.file, CSCTFanalyzer.file, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.file, CSCTFAnalyzer.file, CSzFile.file, CSCTFPacker.file, LHEWriter.file, TreeWriterForEcalCorrection.file, l1tpf_impl::COEFile.file, tfile.TFileService.file, TkOfflineVariables.file, CFileSeqInStream.file, CFileInStream.file, EcalRecHitsFilter.file, EcalBxOrbitNumberGrapher.file, CFileOutStream.file, SiStripPlotGain.file, EcalURecHitHists.file, SiStripCorrelateBadStripAndNoise.file, DrawIteration::Input.file, SiStripCorrelateNoise.file, Mixins.UsingBlock.file, GlobalTrackerMuonAlignment.file, and EcalCosmicsHists.file.
tfile.TFileService.file |
Definition at line 36 of file tfile.py.
Referenced by python.rootplot.utilities.RootFile.cd(), python.rootplot.utilities.RootFile.get(), and tfile.TFileService.stop().