#include <TFileService.h>
Public Member Functions | |
void | afterBeginJob () |
Hook for writing info into JR. More... | |
bool | cd () const |
TFile & | file () const |
return opened TFile More... | |
std::string | fullPath () const |
return the full path of the stored histograms More... | |
TDirectory * | getBareDirectory (const std::string &subdir="") const |
template<typename T > | |
T * | getObject (const std::string &objname, const std::string &subdir="") |
template<typename T , typename... Args> | |
T * | make (const Args &...args) const |
make new ROOT object More... | |
TFileDirectory | mkdir (const std::string &dir, const std::string &descr="") |
create a new subdirectory More... | |
TFileDirectory & | tFileDirectory () |
TFileService (const edm::ParameterSet &, edm::ActivityRegistry &) | |
constructor More... | |
~TFileService () | |
destructor More... | |
Static Public Attributes | |
static const std::string | kSharedResource = "TFileService" |
Private Member Functions | |
void | postModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
void | postModuleGlobal (edm::GlobalContext const &, edm::ModuleCallingContext const &) |
void | preModuleEvent (edm::StreamContext const &, edm::ModuleCallingContext const &) |
void | preModuleGlobal (edm::GlobalContext const &, edm::ModuleCallingContext const &) |
void | setDirectoryName (const edm::ModuleDescription &desc) |
Private Attributes | |
bool | closeFileFast_ |
TFile * | file_ |
pointer to opened TFile More... | |
std::string | fileName_ |
bool | fileNameRecorded_ |
Static Private Attributes | |
static thread_local TFileDirectory | tFileDirectory_ |
Definition at line 30 of file TFileService.h.
TFileService::TFileService | ( | const edm::ParameterSet & | cfg, |
edm::ActivityRegistry & | r | ||
) |
constructor
Definition at line 17 of file TFileService.cc.
References afterBeginJob(), file_, TFileDirectory::file_, fileName_, postModuleEvent(), postModuleGlobal(), preModuleEvent(), preModuleGlobal(), setDirectoryName(), tFileDirectory_, edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), and edm::ActivityRegistry::watchPreModuleGlobalEndRun().
TFileService::~TFileService | ( | ) |
void TFileService::afterBeginJob | ( | ) |
Hook for writing info into JR.
Definition at line 87 of file TFileService.cc.
References fileName_, fileNameRecorded_, newFWLiteAna::fullName, edm::JobReport::reportAnalysisFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TFileService().
|
inline |
Definition at line 49 of file TFileService.h.
References TFileDirectory::cd(), and tFileDirectory_.
|
inline |
return opened TFile
Definition at line 37 of file TFileService.h.
References file_.
Referenced by BTagPerformaceRootProducerFromSQLITE::analyze(), HcalForwardLibWriter::endJob(), HcalForwardLibWriter::HcalForwardLibWriter(), and VariableNTupler::registerleaves().
|
inline |
return the full path of the stored histograms
Definition at line 74 of file TFileService.h.
References TFileDirectory::fullPath(), and tFileDirectory_.
|
inline |
Definition at line 52 of file TFileService.h.
References TFileDirectory::getBareDirectory(), and tFileDirectory_.
Referenced by FFTJetImageRecorder::analyze().
|
inline |
Definition at line 57 of file TFileService.h.
References TFileDirectory::getObject(), and tFileDirectory_.
make new ROOT object
Definition at line 64 of file TFileService.h.
References TFileDirectory::make(), and tFileDirectory_.
Referenced by PatZjetsElectronAnalyzer::beginJob(), PatZjetsJetAnalyzer::beginJob(), PatTriggerTagAndProbe::beginJob(), PatBJetTagAnalyzer::beginJob(), PatMCMatching::beginJob(), PatMCMatchingExtended::beginJob(), myRawAna::beginJob(), PatTopSelectionAnalyzer::beginJob(), PatBasicAnalyzer::beginJob(), PatVertexAnalyzer::beginJob(), FFTJetImageRecorder::beginJob(), IsolatedParticlesGeneratedJets::BookHistograms(), CMSDAS11DijetTestAnalyzer::CMSDAS11DijetTestAnalyzer(), CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut(), DuplicateRecHits::DuplicateRecHits(), HcalTB02Histo::HcalTB02Histo(), HcalTB04Histo::HcalTB04Histo(), HcalTB06Histo::HcalTB06Histo(), HcalTestHistoManager::HcalTestHistoManager(), HLTCSCOverlapFilter::HLTCSCOverlapFilter(), L1EventTreeProducer::L1EventTreeProducer(), L1MenuTreeProducer::L1MenuTreeProducer(), L1RCTRelValAnalyzer::L1RCTRelValAnalyzer(), L1RecoTreeProducer::L1RecoTreeProducer(), L1uGTTreeProducer::L1uGTTreeProducer(), L1UpgradeTreeProducer::L1UpgradeTreeProducer(), OverlapProblemTSOSAnalyzer::OverlapProblemTSOSAnalyzer(), PatJetAnalyzer::PatJetAnalyzer(), PDFWeightsTest::PDFWeightsTest(), CSCAlignmentCorrections::plot(), VariableNTupler::registerleaves(), TopElecAnalyzer::TopElecAnalyzer(), TopGenEventAnalyzer::TopGenEventAnalyzer(), TopJetAnalyzer::TopJetAnalyzer(), TopMuonAnalyzer::TopMuonAnalyzer(), TopTauAnalyzer::TopTauAnalyzer(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), TreeWriterForEcalCorrection::TreeWriterForEcalCorrection(), ZMassHistogrammer::ZMassHistogrammer(), and ZMuMuSaMassHistogram::ZMuMuSaMassHistogram().
|
inline |
create a new subdirectory
Definition at line 69 of file TFileService.h.
References TFileDirectory::mkdir(), and tFileDirectory_.
Referenced by AlignmentMonitorBase::AlignmentMonitorBase(), BjetAnalysis::BjetAnalysis(), DigiVtxPosCorrHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), and TSOSHistogramMaker::TSOSHistogramMaker().
|
private |
Definition at line 67 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 80 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 63 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 75 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 57 of file TFileService.cc.
References TFileDirectory::descr_, TFileDirectory::dir_, file_, TFileDirectory::file_, edm::ModuleDescription::moduleLabel(), edm::ModuleDescription::moduleName(), and tFileDirectory_.
Referenced by postModuleEvent(), postModuleGlobal(), preModuleEvent(), preModuleGlobal(), and TFileService().
|
inline |
Definition at line 42 of file TFileService.h.
References tFileDirectory_.
Referenced by edm::AnalyzerWrapper< T >::AnalyzerWrapper(), RunHistogramManager::beginRun(), and HistoAnalyzer< C >::HistoAnalyzer().
|
private |
Definition at line 84 of file TFileService.h.
Referenced by ~TFileService().
|
private |
pointer to opened TFile
Definition at line 81 of file TFileService.h.
Referenced by file(), setDirectoryName(), TFileService(), and ~TFileService().
|
private |
Definition at line 82 of file TFileService.h.
Referenced by afterBeginJob(), and TFileService().
|
private |
Definition at line 83 of file TFileService.h.
Referenced by afterBeginJob().
|
static |
Definition at line 76 of file TFileService.h.
|
staticprivate |
Definition at line 79 of file TFileService.h.
Referenced by cd(), fullPath(), getBareDirectory(), getObject(), make(), mkdir(), setDirectoryName(), tFileDirectory(), and TFileService().