#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 Exception, fileName_, fileNameRecorded_, edm::JobReport::reportAnalysisFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TFileService().
|
inline |
Definition at line 49 of file TFileService.h.
Referenced by dqm_interfaces.DQMcommunicator::get_root_objects_list_recursive(), dqm_interfaces.DQMcommunicator::get_root_objects_names_list_recursive(), dqm_interfaces.DQMcommunicator::get_root_objects_recursive(), and dqm_interfaces.DirWalkerFile::walk().
|
inline |
return opened TFile
Definition at line 37 of file TFileService.h.
Referenced by BTagPerformaceRootProducerFromSQLITE::analyze(), HcalForwardLibWriter::endJob(), HcalForwardLibWriter::HcalForwardLibWriter(), MuonAlignmentFromReference::MuonAlignmentFromReference(), VariableNTupler::registerleaves(), AdHocNTupler::registerleaves(), and StringBasedNTupler::registerleaves().
|
inline |
return the full path of the stored histograms
Definition at line 74 of file TFileService.h.
|
inline |
Definition at line 52 of file TFileService.h.
Referenced by FFTJetImageRecorder::analyze(), and FFTJetPileupAnalyzer::analyze().
|
inline |
Definition at line 57 of file TFileService.h.
make new ROOT object
Definition at line 64 of file TFileService.h.
Referenced by AlCaHOCalibProducer::AlCaHOCalibProducer(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoEndJob(), AlignmentMonitorMuonSystemMap1D::AlignmentMonitorMuonSystemMap1D(), AlignmentMuonHIPTrajectorySelector::AlignmentMuonHIPTrajectorySelector(), JetResolutionDemo::analyze(), MuonAlignmentAnalyzer::analyze(), EcalMipGraphs::analyze(), EcalDisplaysByEvent::analyze(), APVShotsAnalyzer::APVShotsAnalyzer(), tnp::BaseTreeFiller::BaseTreeFiller(), HypothesisAnalyzer::beginJob(), PatTauAnalyzer::beginJob(), PatZjetsElectronAnalyzer::beginJob(), PatZjetsJetAnalyzer::beginJob(), PatTriggerAnalyzer::beginJob(), PatTriggerTagAndProbe::beginJob(), myRawAna::beginJob(), PatBJetTagAnalyzer::beginJob(), PatMCMatching::beginJob(), PatMCMatchingExtended::beginJob(), PatTopSelectionAnalyzer::beginJob(), PatBasicAnalyzer::beginJob(), PatBTagAnalyzer::beginJob(), PatTrackAnalyzer::beginJob(), MCPhotonAnalyzer::beginJob(), PhotonsWithConversionsAnalyzer::beginJob(), PatVertexAnalyzer::beginJob(), JetCorrectorDemo::beginJob(), FactorizedJetCorrectorDemo::beginJob(), ExampleMuonAnalyzer::beginJob(), PatBJetTrackAnalyzer::beginJob(), l1t::L1TStage2CaloAnalyzer::beginJob(), WMuNuSelector::beginJob(), PatBJetVertexAnalyzer::beginJob(), ResolutionCreator::beginJob(), HcalHBHEMuonSimAnalyzer::beginJob(), MuonAlignmentAnalyzer::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), ContainmentCorrectionAnalyzer::beginJob(), HitEff::beginJob(), BeamSpotRcdReader::beginJob(), FFTJetImageRecorder::beginJob(), HGCalTBAnalyzer::beginJob(), HcalRaddamMuon::beginJob(), FFTJetPileupAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), HcalHBHEMuonAnalyzer::beginJob(), StudyHLT::beginJob(), IsoTrig::beginJob(), IsoTrackCalibration::beginJob(), IsoTrackCalib::beginJob(), ErsatzMEt::beginJob(), IsolatedTracksHcalScale::beginJob(), HGCalTBAnalyzer::beginRun(), StudyHLT::beginRun(), MaterialBudgetCastorHistos::book(), MaterialBudgetHcalHistos::book(), MaterialBudget::book(), MaterialBudgetForward::book(), IsolatedParticlesGeneratedJets::BookHistograms(), IsolatedGenParticles::BookHistograms(), IsolatedTracksNxN::BookHistograms(), MuonAlignmentFromReference::bookNtuple(), SVTagInfoValidationAnalyzer::bookRecoToSim(), SVTagInfoValidationAnalyzer::bookSimToReco(), IsolatedTracksCone::BuildTree(), calcTopMass::calcTopMass(), CalibratableTest::CalibratableTest(), CMSDAS11DijetAnalyzer::CMSDAS11DijetAnalyzer(), CMSDAS11DijetTestAnalyzer::CMSDAS11DijetTestAnalyzer(), CommonModeAnalyzer::CommonModeAnalyzer(), SiStripHitEffFromCalibTree::ComputeEff(), CSCPairResidualsConstraint::configure(), CosmicRateAnalyzer::CosmicRateAnalyzer(), CSCOverlapsAlignmentAlgorithm::CSCOverlapsAlignmentAlgorithm(), CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut(), DreamSD::DreamSD(), DuplicateRecHits::DuplicateRecHits(), EcalDisplaysByEvent::EcalDisplaysByEvent(), EcalMipGraphs::EcalMipGraphs(), ElectronStudy::ElectronStudy(), JetCorrectorDemo::endJob(), FactorizedJetCorrectorDemo::endJob(), IsoTrig::endJob(), TrackerOfflineValidation::endJob(), TkLasBeamFitter::endRunProduce(), EopTreeWriter::EopTreeWriter(), gamma_radiative_analyzer::gamma_radiative_analyzer(), HcalTB02Histo::HcalTB02Histo(), HcalTB04Histo::HcalTB04Histo(), HcalTB06Histo::HcalTB06Histo(), HcalTestHistoManager::HcalTestHistoManager(), HGCalTBMB::HGCalTBMB(), HGCalTriggerNtupleManager::HGCalTriggerNtupleManager(), HLTBitAnalyzer::HLTBitAnalyzer(), HLTCSCOverlapFilter::HLTCSCOverlapFilter(), HOCalibAnalyzer::HOCalibAnalyzer(), HSCPValidator::HSCPValidator(), HcalForwardAnalysis::init(), EcalMipGraphs::initHists(), EcalDisplaysByEvent::initHists(), HltComparator::initialise(), L1CaloTowerTreeProducer::L1CaloTowerTreeProducer(), L1ElectronRecoTreeProducer::L1ElectronRecoTreeProducer(), L1EventTreeProducer::L1EventTreeProducer(), L1ExtraTreeProducer::L1ExtraTreeProducer(), L1GenTreeProducer::L1GenTreeProducer(), L1HOTreeProducer::L1HOTreeProducer(), L1JetRecoTreeProducer::L1JetRecoTreeProducer(), L1MenuTreeProducer::L1MenuTreeProducer(), L1MetFilterRecoTreeProducer::L1MetFilterRecoTreeProducer(), L1MuonRecoTreeProducer::L1MuonRecoTreeProducer(), L1RCTRelValAnalyzer::L1RCTRelValAnalyzer(), L1RCTTestAnalyzer::L1RCTTestAnalyzer(), L1RecoTreeProducer::L1RecoTreeProducer(), L1TauRecoTreeProducer::L1TauRecoTreeProducer(), L1uGTTreeProducer::L1uGTTreeProducer(), L1UpgradeTfMuonTreeProducer::L1UpgradeTfMuonTreeProducer(), L1UpgradeTreeProducer::L1UpgradeTreeProducer(), SiStripHitEffFromCalibTree::makeHotColdMaps(), SiStripHitEffFromCalibTree::makeSummary(), SiStripHitEffFromCalibTree::makeSummaryVsBx(), MCVerticesAnalyzer::MCVerticesAnalyzer(), MCvsRecoVerticesAnalyzer::MCvsRecoVerticesAnalyzer(), MultiplicityCorrelatorHistogramMaker::MultiplicityCorrelatorHistogramMaker(), MuTriggerAnalyzer::MuTriggerAnalyzer(), OverlapProblemTPAnalyzer::OverlapProblemTPAnalyzer(), OverlapProblemTSOSAnalyzer::OverlapProblemTSOSAnalyzer(), PatJetAnalyzer::PatJetAnalyzer(), PatZToMuMuAnalyzer::PatZToMuMuAnalyzer(), PDFWeightsTest::PDFWeightsTest(), CSCAlignmentCorrections::plot(), VariableNTupler::registerleaves(), AdHocNTupler::registerleaves(), StringBasedNTupler::registerleaves(), SeedMultiplicityAnalyzer::SeedMultiplicityAnalyzer(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), PatBTagCommonHistos::Set(), ZMuMuMassConstraintParameterFinder::DiMuonInfo::setupTree(), ShallowTree::ShallowTree(), SiPixelQualityHistory::SiPixelQualityHistory(), SiStripBaselineAnalyzer::SiStripBaselineAnalyzer(), SiStripOfflineDQM::SiStripOfflineDQM(), SiStripQualityHistory::SiStripQualityHistory(), SiStripGainFromCalibTree::storeOnTree(), SVTagInfoValidationAnalyzer::SVTagInfoValidationAnalyzer(), testAnalyzer::testAnalyzer(), TopElecAnalyzer::TopElecAnalyzer(), TopGenEventAnalyzer::TopGenEventAnalyzer(), TopJetAnalyzer::TopJetAnalyzer(), TopMuonAnalyzer::TopMuonAnalyzer(), TopTauAnalyzer::TopTauAnalyzer(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackCount::TrackCount(), TrackingNtuple::TrackingNtuple(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), TreeWriterForEcalCorrection::TreeWriterForEcalCorrection(), MuonMillepedeAlgorithm::updateInfo(), ZMassHistogrammer::ZMassHistogrammer(), ZMuMu_efficiencyAnalyzer::ZMuMu_efficiencyAnalyzer(), ZMuMu_MCanalyzer::ZMuMu_MCanalyzer(), ZMuMu_Radiative_analyzer::ZMuMu_Radiative_analyzer(), ZMuMu_vtxAnalyzer::ZMuMu_vtxAnalyzer(), ZMuMuAnalyzer::ZMuMuAnalyzer(), ZMuMuAnalyzer_cynematics::ZMuMuAnalyzer_cynematics(), ZMuMuIsolationAnalyzer::ZMuMuIsolationAnalyzer(), ZMuMuPerformances::ZMuMuPerformances(), and ZMuMuSaMassHistogram::ZMuMuSaMassHistogram().
|
inline |
create a new subdirectory
Definition at line 69 of file TFileService.h.
References TFileDirectory::mkdir().
Referenced by AlignmentMonitorBase::AlignmentMonitorBase(), CentralityTableProducer::analyze(), APVCyclePhaseMonitor::analyze(), BigEventsDebugger< T >::analyze(), SiStripBaselineAnalyzer::analyze(), SiStripSpyDisplayModule::analyze(), l1t::L1TStage2CaloAnalyzer::beginJob(), L1GctValidation::beginJob(), l1t::L1TGlobalAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), BigEventsDebugger< T >::BigEventsDebugger(), BjetAnalysis::BjetAnalysis(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), BeamSpotHistogramMaker::book(), DigiBXCorrHistogramMaker< T >::book(), VertexHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), BSvsPVHistogramMaker::book(), L1GtDataEmulAnalyzer::bookHistograms(), IsolatedGenParticles::BookHistograms(), IsolatedTracksNxN::BookHistograms(), ApeEstimator::bookSectorHistsForAnalyzerMode(), ApeEstimator::bookSectorHistsForApeCalculation(), ApeEstimator::bookTrackHists(), CosmicGenFilterHelix::createHistsEnd(), CosmicGenFilterHelix::createHistsStart(), TrackerOfflineValidation::DirectoryWrapper::DirectoryWrapper(), PatBTagAnalyzer::endJob(), TrackerTreeGenerator::endJob(), EWKSystUnc::EWKSystUnc(), MuonAlignmentFromReference::fitAndAlign(), GctErrorAnalyzer::GctErrorAnalyzer(), GlbMuQualityCutsAnalysis::GlbMuQualityCutsAnalysis(), HCalSD::HCalSD(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), WMuNuValidator::init_histograms(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), batchmanager.BatchManager::PrepareJob(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackerDpgAnalysis::TrackerDpgAnalysis(), TrackerGeometryCompare::TrackerGeometryCompare(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), TSOSHistogramMaker::TSOSHistogramMaker(), ZHistogrammer::ZHistogrammer(), ZLONLOHistogrammer::ZLONLOHistogrammer(), ZMCHistogrammer::ZMCHistogrammer(), ZMuMu_efficiencyAnalyzer::ZMuMu_efficiencyAnalyzer(), ZMuMuAnalyzer_cynematics::ZMuMuAnalyzer_cynematics(), ZMuMuEfficiency::ZMuMuEfficiency(), ZMuPtScaleAnalyzer::ZMuPtScaleAnalyzer(), and zPdfUnc::zPdfUnc().
|
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.
Referenced by edm::AnalyzerWrapper< T >::AnalyzerWrapper(), DigiInvestigatorHistogramMaker::beginRun(), BeamSpotHistogramMaker::beginRun(), VertexHistogramMaker::beginRun(), BSvsPVHistogramMaker::beginRun(), RunHistogramManager::beginRun(), BeamSpotHistogramMaker::book(), VertexHistogramMaker::book(), BSvsPVHistogramMaker::book(), TrackerOfflineValidation::DirectoryWrapper::DirectoryWrapper(), 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 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.
Referenced by AlignmentProducerAsAnalyzer::AlignmentProducerAsAnalyzer(), CosmicRateAnalyzer::CosmicRateAnalyzer(), HcalHBHEMuonSimAnalyzer::HcalHBHEMuonSimAnalyzer(), HGCalHitCalibration::HGCalHitCalibration(), PrimaryVertexValidation::PrimaryVertexValidation(), TrackerTreeGenerator::TrackerTreeGenerator(), TrackingNtuple::TrackingNtuple(), and ZMuMuMassConstraintParameterFinder::ZMuMuMassConstraintParameterFinder().
|
staticprivate |
Definition at line 79 of file TFileService.h.
Referenced by setDirectoryName(), and TFileService().