#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(), alignCSCRings::r, setDirectoryName(), and tFileDirectory_.
TFileService::~TFileService | ( | ) |
void TFileService::afterBeginJob | ( | ) |
Hook for writing info into JR.
Definition at line 82 of file TFileService.cc.
References Exception, 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_.
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.
References file_.
Referenced by PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), and ShallowTree::ShallowTree().
|
inline |
return the full path of the stored histograms
Definition at line 74 of file TFileService.h.
References TFileDirectory::fullPath(), and tFileDirectory_.
Referenced by SiPixelPhase1Analyzer::BookHistograms().
|
inline |
Definition at line 52 of file TFileService.h.
References TFileDirectory::getBareDirectory(), mkLumiAveragedPlots::subdir, and tFileDirectory_.
Referenced by TrackerRemapper::bookBins(), SiPixelPhase1Analyzer::BookHistograms(), SiPixelPhase1Analyzer::FillBarrelBinsRemap(), and SiPixelPhase1Analyzer::FillForwardBinsRemap().
|
inline |
Definition at line 58 of file TFileService.h.
References TFileDirectory::getObject(), mkLumiAveragedPlots::subdir, and tFileDirectory_.
make new ROOT object
Definition at line 64 of file TFileService.h.
References writedatasetfile::args, TFileDirectory::make(), and tFileDirectory_.
Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoEndJob(), JetResolutionDemo::analyze(), MuonAlignmentAnalyzer::analyze(), EcalMipGraphs::analyze(), EcalDisplaysByEvent::analyze(), PatTriggerAnalyzer::beginJob(), PatTriggerTagAndProbe::beginJob(), ExampleMuonAnalyzer::beginJob(), JetCorrectorDemo::beginJob(), FactorizedJetCorrectorDemo::beginJob(), HGCalTimingAnalyzer::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), BeamSpotRcdReader::beginJob(), BeamSpotOnlineRecordsReader::beginJob(), HcalRaddamMuon::beginJob(), HGCalTBAnalyzer::beginJob(), JetHTAnalyzer::beginJob(), StudyTriggerHLT::beginJob(), MuonAlignmentAnalyzer::beginJob(), PixelBaryCentreAnalyzer::beginJob(), IsoTrackCalibration::beginJob(), PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), IsoTrackCalib::beginJob(), StudyCaloResponse::beginJob(), IsoTrig::beginJob(), CMTRawAnalyzer::beginJob(), HGCalBHValidation::beginRun(), HGCalTBAnalyzer::beginRun(), StudyTriggerHLT::beginRun(), StudyCaloResponse::beginRun(), GeneralPurposeVertexAnalyzer::book(), GeneralPurposeTrackAnalyzer::book(), TrackerRemapper::bookBins(), SiPixelPhase1Analyzer::BookHistograms(), SVTagInfoValidationAnalyzer::bookRecoToSim(), SVTagInfoValidationAnalyzer::bookSimToReco(), CommonModeAnalyzer::CommonModeAnalyzer(), SiStripHitEffFromCalibTree::computeEff(), CSCPairResidualsConstraint::configure(), CosmicRateAnalyzer::CosmicRateAnalyzer(), CSCOverlapsAlignmentAlgorithm::CSCOverlapsAlignmentAlgorithm(), CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut(), EcalDisplaysByEvent::EcalDisplaysByEvent(), EcalMipGraphs::EcalMipGraphs(), JetCorrectorDemo::endJob(), FactorizedJetCorrectorDemo::endJob(), SplitVertexResolution::endJob(), IsoTrig::endJob(), TkLasBeamFitter::endRunProduce(), EopElecTreeWriter::EopElecTreeWriter(), EopTreeWriter::EopTreeWriter(), G4StepStatistics::G4StepStatistics(), EcalMipGraphs::initHists(), EcalDisplaysByEvent::initHists(), L1CaloTowerTreeProducer::L1CaloTowerTreeProducer(), L1ElectronRecoTreeProducer::L1ElectronRecoTreeProducer(), L1EventTreeProducer::L1EventTreeProducer(), L1ExtraTreeProducer::L1ExtraTreeProducer(), L1GenTreeProducer::L1GenTreeProducer(), L1HOTreeProducer::L1HOTreeProducer(), L1JetRecoTreeProducer::L1JetRecoTreeProducer(), L1MenuTreeProducer::L1MenuTreeProducer(), L1MetFilterRecoTreeProducer::L1MetFilterRecoTreeProducer(), L1RecoTreeProducer::L1RecoTreeProducer(), L1TauRecoTreeProducer::L1TauRecoTreeProducer(), L1uGTTreeProducer::L1uGTTreeProducer(), L1UpgradeTfMuonShowerTreeProducer::L1UpgradeTfMuonShowerTreeProducer(), L1UpgradeTfMuonTreeProducer::L1UpgradeTfMuonTreeProducer(), L1UpgradeTreeProducer::L1UpgradeTreeProducer(), SiStripHitEffFromCalibTree::makeHotColdMaps(), SiStripHitEffFromCalibTree::makeSummary(), SiStripHitEffFromCalibTree::makeSummaryVsBx(), SiStripHitEffFromCalibTree::makeTKMap(), MCVerticesAnalyzer::MCVerticesAnalyzer(), MCvsRecoVerticesAnalyzer::MCvsRecoVerticesAnalyzer(), MultiplicityCorrelatorHistogramMaker::MultiplicityCorrelatorHistogramMaker(), OverlapProblemTPAnalyzer::OverlapProblemTPAnalyzer(), OverlapProblemTSOSAnalyzer::OverlapProblemTSOSAnalyzer(), PatZToMuMuAnalyzer::PatZToMuMuAnalyzer(), CSCAlignmentCorrections::plot(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), ShallowTree::ShallowTree(), SiPixelQualityHistory::SiPixelQualityHistory(), SiStripApvGainReader::SiStripApvGainReader(), SiStripQualityHistory::SiStripQualityHistory(), SiStripGainFromCalibTree::storeOnTree(), SVTagInfoValidationAnalyzer::SVTagInfoValidationAnalyzer(), and TrackCount::TrackCount().
|
inline |
create a new subdirectory
Definition at line 69 of file TFileService.h.
References DeadROC_duringRun::dir, TFileDirectory::mkdir(), and tFileDirectory_.
Referenced by AlignmentMonitorBase::AlignmentMonitorBase(), CentralityTableProducer::analyze(), APVCyclePhaseMonitor::analyze(), BigEventsDebugger< T >::analyze(), NearbyPixelClustersAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), NearbyPixelClustersAnalyzer::beginRun(), SiStripCondVisualizer::beginRun(), BigEventsDebugger< T >::BigEventsDebugger(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), BeamSpotHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), VertexHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), DigiBXCorrHistogramMaker< EventWithHistory >::book(), BSvsPVHistogramMaker::book(), tmtt::Histos::bookEtaPhiSectors(), L1GtDataEmulAnalyzer::bookHistograms(), tmtt::Histos::bookInputData(), tmtt::Histos::bookRphiHT(), tmtt::Histos::bookRZfilters(), ApeEstimator::bookSectorHistsForAnalyzerMode(), ApeEstimator::bookSectorHistsForApeCalculation(), tmtt::Histos::bookTrackCands(), tmtt::Histos::bookTrackFitting(), ApeEstimator::bookTrackHists(), TrackerTreeGenerator::endJob(), PrimaryVertexValidation::endJob(), SplitVertexResolution::endJob(), MuonAlignmentFromReference::fitAndAlign(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), tmtt::Histos::plotTrackEffAfterFit(), tmtt::Histos::plotTrackEfficiency(), batchmanager.BatchManager::PrepareJob(), TrackerDpgAnalysis::TrackerDpgAnalysis(), tmtt::Histos::trackerGeometryAnalysis(), and TSOSHistogramMaker::TSOSHistogramMaker().
|
private |
Definition at line 64 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 75 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 60 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 71 of file TFileService.cc.
References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().
Referenced by TFileService().
|
private |
Definition at line 54 of file TFileService.cc.
References submitPVResolutionJobs::desc, TFileDirectory::descr_, TFileDirectory::dir_, file_, TFileDirectory::file_, 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(), DigiInvestigatorHistogramMaker::beginRun(), BeamSpotHistogramMaker::beginRun(), VertexHistogramMaker::beginRun(), BSvsPVHistogramMaker::beginRun(), RunHistogramManager::beginRun(), BeamSpotHistogramMaker::book(), VertexHistogramMaker::book(), and BSvsPVHistogramMaker::book().
|
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.
Referenced by AlCaElectronsTest::AlCaElectronsTest(), AlCaHOCalibProducer::AlCaHOCalibProducer(), AlignmentProducerAsAnalyzer::AlignmentProducerAsAnalyzer(), cms::Analyzer_minbias::Analyzer_minbias(), AnalyzerMinbias::AnalyzerMinbias(), edm::AnalyzerWrapper< T >::AnalyzerWrapper(), AnotherBeamSpotAnalyzer::AnotherBeamSpotAnalyzer(), AnotherPrimaryVertexAnalyzer::AnotherPrimaryVertexAnalyzer(), APVCyclePhaseMonitor::APVCyclePhaseMonitor(), BigEventsDebugger< T >::BigEventsDebugger(), BSvsPVAnalyzer::BSvsPVAnalyzer(), BTagPerformaceRootProducerFromSQLITE::BTagPerformaceRootProducerFromSQLITE(), CastorPedestalsAnalysis::CastorPedestalsAnalysis(), CentralityTableProducer::CentralityTableProducer(), CherenkovAnalysis::CherenkovAnalysis(), CMTRawAnalyzer::CMTRawAnalyzer(), CommonModeAnalyzer::CommonModeAnalyzer(), ConfigurableAnalysis::ConfigurableAnalysis(), CosmicGenFilterHelix::CosmicGenFilterHelix(), CosmicRateAnalyzer::CosmicRateAnalyzer(), CosmicSplitterValidation::CosmicSplitterValidation(), CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut(), DiElectronVertexValidation::DiElectronVertexValidation(), DiMuonValidation::DiMuonValidation(), DiMuonVertexValidation::DiMuonVertexValidation(), DMRChecker::DMRChecker(), EcalTPInputAnalyzer::EcalTPInputAnalyzer(), EcalTrigPrimAnalyzer::EcalTrigPrimAnalyzer(), EopElecTreeWriter::EopElecTreeWriter(), EopTreeWriter::EopTreeWriter(), ExampleMuonAnalyzer::ExampleMuonAnalyzer(), FFTJetImageRecorder::FFTJetImageRecorder(), FFTJetPileupAnalyzer::FFTJetPileupAnalyzer(), GctErrorAnalyzer::GctErrorAnalyzer(), GeneralPurposeTrackAnalyzer::GeneralPurposeTrackAnalyzer(), GeneralPurposeVertexAnalyzer::GeneralPurposeVertexAnalyzer(), HcalGeomCheck::HcalGeomCheck(), HcalHBHEMuonAnalyzer::HcalHBHEMuonAnalyzer(), HcalHBHEMuonHighEtaAnalyzer::HcalHBHEMuonHighEtaAnalyzer(), HcalHBHENewMuonAnalyzer::HcalHBHENewMuonAnalyzer(), HcalIsoTrackAnalyzer::HcalIsoTrackAnalyzer(), HcalIsoTrkAnalyzer::HcalIsoTrkAnalyzer(), HcalIsoTrkSimAnalyzer::HcalIsoTrkSimAnalyzer(), HcalRaddamMuon::HcalRaddamMuon(), HcalSimHitAnalysis::HcalSimHitAnalysis(), HcalTestAnalyzer::HcalTestAnalyzer(), HFPMTHitAnalyzer::HFPMTHitAnalyzer(), HGCalBHValidation::HGCalBHValidation(), HIPTwoBodyDecayAnalyzer::HIPTwoBodyDecayAnalyzer(), HistoAnalyzer< C >::HistoAnalyzer(), HitEff::HitEff(), HitParentTest::HitParentTest(), HltComparator::HltComparator(), HOCalibAnalyzer::HOCalibAnalyzer(), IsolatedGenParticles::IsolatedGenParticles(), IsolatedParticlesGeneratedJets::IsolatedParticlesGeneratedJets(), IsolatedTracksHcalScale::IsolatedTracksHcalScale(), IsolatedTracksNxN::IsolatedTracksNxN(), IsoTrackCalib::IsoTrackCalib(), IsoTrig::IsoTrig(), JetCorrectorDemo::JetCorrectorDemo(), JetCorrectorOnTheFly< Jet >::JetCorrectorOnTheFly(), JetHTAnalyzer::JetHTAnalyzer(), JetResolutionDemo::JetResolutionDemo(), L1CaloTowerTreeProducer::L1CaloTowerTreeProducer(), L1ElectronRecoTreeProducer::L1ElectronRecoTreeProducer(), L1EventTreeProducer::L1EventTreeProducer(), L1ExtraTreeProducer::L1ExtraTreeProducer(), L1GctValidation::L1GctValidation(), L1GenTreeProducer::L1GenTreeProducer(), L1GtDataEmulAnalyzer::L1GtDataEmulAnalyzer(), L1HOTreeProducer::L1HOTreeProducer(), L1JetRecoTreeProducer::L1JetRecoTreeProducer(), L1MenuTreeProducer::L1MenuTreeProducer(), L1MetFilterRecoTreeProducer::L1MetFilterRecoTreeProducer(), L1Muon2RecoTreeProducer::L1Muon2RecoTreeProducer(), L1MuonRecoTreeProducer::L1MuonRecoTreeProducer(), L1RCTRelValAnalyzer::L1RCTRelValAnalyzer(), L1RCTTestAnalyzer::L1RCTTestAnalyzer(), L1RecoTreeProducer::L1RecoTreeProducer(), L1TauRecoTreeProducer::L1TauRecoTreeProducer(), l1t::L1TStage2CaloAnalyzer::L1TStage2CaloAnalyzer(), L1uGTTreeProducer::L1uGTTreeProducer(), L1UpgradeTfMuonShowerTreeProducer::L1UpgradeTfMuonShowerTreeProducer(), L1UpgradeTfMuonTreeProducer::L1UpgradeTfMuonTreeProducer(), L1UpgradeTreeProducer::L1UpgradeTreeProducer(), MaterialBudgetHcalAnalysis::MaterialBudgetHcalAnalysis(), MaterialBudgetVolumeAnalysis::MaterialBudgetVolumeAnalysis(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), MuonAlignmentAnalyzer::MuonAlignmentAnalyzer(), myRawAna::myRawAna(), NearbyPixelClustersAnalyzer::NearbyPixelClustersAnalyzer(), NTuplingDevice::NTuplingDevice(), OverlapProblemTPAnalyzer::OverlapProblemTPAnalyzer(), OverlapProblemTSOSAnalyzer::OverlapProblemTSOSAnalyzer(), OverlapValidation::OverlapValidation(), PatBasicAnalyzer::PatBasicAnalyzer(), PatBJetTagAnalyzer::PatBJetTagAnalyzer(), PatBJetTrackAnalyzer::PatBJetTrackAnalyzer(), PatBJetVertexAnalyzer::PatBJetVertexAnalyzer(), PatBTagAnalyzer::PatBTagAnalyzer(), PatElectronAnalyzer::PatElectronAnalyzer(), PatJetAnalyzer::PatJetAnalyzer(), PatMCMatching::PatMCMatching(), PatMCMatchingExtended::PatMCMatchingExtended(), PatTauAnalyzer::PatTauAnalyzer(), PatTopSelectionAnalyzer::PatTopSelectionAnalyzer(), PatTrackAnalyzer::PatTrackAnalyzer(), PatTriggerAnalyzer::PatTriggerAnalyzer(), PatTriggerTagAndProbe::PatTriggerTagAndProbe(), PatVertexAnalyzer::PatVertexAnalyzer(), PatZjetsElectronAnalyzer::PatZjetsElectronAnalyzer(), PatZjetsJetAnalyzer::PatZjetsJetAnalyzer(), PatZToMuMuAnalyzer::PatZToMuMuAnalyzer(), PFAnalysis::PFAnalysis(), PixelDCSObjectReader< Record >::PixelDCSObjectReader(), PrimaryVertexValidation::PrimaryVertexValidation(), ShallowTree::ShallowTree(), SimAnalyzerMinbias::SimAnalyzerMinbias(), SiPixelBadModuleReader::SiPixelBadModuleReader(), cms::SiPixelCondObjAllPayloadsReader::SiPixelCondObjAllPayloadsReader(), cms::SiPixelCondObjOfflineReader::SiPixelCondObjOfflineReader(), cms::SiPixelCondObjReader::SiPixelCondObjReader(), SiPixelDQMRocLevelAnalyzer::SiPixelDQMRocLevelAnalyzer(), SiPixelGainCalibrationReadDQMFile::SiPixelGainCalibrationReadDQMFile(), SiPixelLorentzAngleReader::SiPixelLorentzAngleReader(), SiPixelQualityHistory::SiPixelQualityHistory(), SiPixelVCalReader::SiPixelVCalReader(), SiStripApvGainReader::SiStripApvGainReader(), SiStripCondVisualizer::SiStripCondVisualizer(), SiStripDB2Tree::SiStripDB2Tree(), SiStripHitEffFromCalibTree::SiStripHitEffFromCalibTree(), SiStripQualityHistory::SiStripQualityHistory(), SiStripSpyDisplayModule::SiStripSpyDisplayModule(), SplitVertexResolution::SplitVertexResolution(), StudyCaloGen::StudyCaloGen(), StudyCaloResponse::StudyCaloResponse(), StudyTriggerHLT::StudyTriggerHLT(), TestPythiaDecays::TestPythiaDecays(), TrackCount::TrackCount(), TrackerDpgAnalysis::TrackerDpgAnalysis(), TrackerOfflineValidation::TrackerOfflineValidation(), TrackerTreeGenerator::TrackerTreeGenerator(), TrackingNtuple::TrackingNtuple(), TreeProducerCalibSimul::TreeProducerCalibSimul(), TreeWriterForEcalCorrection::TreeWriterForEcalCorrection(), ValidIsoTrkCalib::ValidIsoTrkCalib(), l1tVertexFinder::VertexNTupler::VertexNTupler(), and XtalDedxAnalysis::XtalDedxAnalysis().
|
staticprivate |
Definition at line 79 of file TFileService.h.
Referenced by cd(), fullPath(), getBareDirectory(), getObject(), make(), mkdir(), setDirectoryName(), tFileDirectory(), and TFileService().