#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 BTagPerformaceRootProducerFromSQLITE::analyze(), HitEff::beginJob(), PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), HcalForwardLibWriter::endJob(), TrackerOfflineValidation::endJob(), HcalForwardLibWriter::HcalForwardLibWriter(), MuonAlignmentFromReference::MuonAlignmentFromReference(), OverlapValidation::OverlapValidation(), VariableNTupler::registerleaves(), StringBasedNTupler::registerleaves(), 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(), and tFileDirectory_.
Referenced by FFTJetImageRecorder::analyze(), FFTJetPileupAnalyzer::analyze(), TrackerRemapper::bookBins(), SiPixelPhase1Analyzer::BookHistograms(), SiPixelPhase1Analyzer::FillBarrelBinsRemap(), and SiPixelPhase1Analyzer::FillForwardBinsRemap().
|
inline |
Definition at line 58 of file TFileService.h.
References TFileDirectory::getObject(), and tFileDirectory_.
make new ROOT object
Definition at line 64 of file TFileService.h.
References writedatasetfile::args, TFileDirectory::make(), and tFileDirectory_.
Referenced by AlCaHOCalibProducer::AlCaHOCalibProducer(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromCalibTree::algoEndJob(), AlignmentMonitorMuonSystemMap1D::AlignmentMonitorMuonSystemMap1D(), AlignmentMuonHIPTrajectorySelector::AlignmentMuonHIPTrajectorySelector(), JetResolutionDemo::analyze(), MuonAlignmentAnalyzer::analyze(), EcalMipGraphs::analyze(), EcalDisplaysByEvent::analyze(), tnp::BaseTreeFiller::BaseTreeFiller(), PatZjetsElectronAnalyzer::beginJob(), PatZjetsJetAnalyzer::beginJob(), PatTauAnalyzer::beginJob(), PatMCMatching::beginJob(), PatMCMatchingExtended::beginJob(), PatTriggerAnalyzer::beginJob(), PatTriggerTagAndProbe::beginJob(), myRawAna::beginJob(), PatBTagAnalyzer::beginJob(), PatTopSelectionAnalyzer::beginJob(), PatBJetTagAnalyzer::beginJob(), PatBasicAnalyzer::beginJob(), PatTrackAnalyzer::beginJob(), PatVertexAnalyzer::beginJob(), JetCorrectorDemo::beginJob(), FactorizedJetCorrectorDemo::beginJob(), PatBJetTrackAnalyzer::beginJob(), cms::MinBias::beginJob(), l1t::L1TStage2CaloAnalyzer::beginJob(), ExampleMuonAnalyzer::beginJob(), MCPhotonAnalyzer::beginJob(), PatBJetVertexAnalyzer::beginJob(), ResolutionCreator::beginJob(), SimAnalyzerMinbias::beginJob(), PhotonsWithConversionsAnalyzer::beginJob(), RecAnalyzerHF::beginJob(), HcalHBHEMuonSimAnalyzer::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), HGCalTimingAnalyzer::beginJob(), MuonAlignmentAnalyzer::beginJob(), ContainmentCorrectionAnalyzer::beginJob(), BeamSpotRcdReader::beginJob(), BeamSpotOnlineHLTRcdReader::beginJob(), BeamSpotOnlineLegacyRcdReader::beginJob(), FFTJetImageRecorder::beginJob(), HitEff::beginJob(), HcalRaddamMuon::beginJob(), HGCalTBAnalyzer::beginJob(), HGCalSimHitStudy::beginJob(), StudyTriggerHLT::beginJob(), FFTJetPileupAnalyzer::beginJob(), cms::Analyzer_minbias::beginJob(), ValidIsoTrkCalib::beginJob(), PixelBaryCentreAnalyzer::beginJob(), RecAnalyzerMinbias::beginJob(), IsoTrackCalibration::beginJob(), HcalHBHEMuonAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), HcalHBHEMuonHighEtaAnalyzer::beginJob(), SplitVertexResolution::beginJob(), IsoTrackCalib::beginJob(), StudyCaloResponse::beginJob(), HcalIsoTrkAnalyzer::beginJob(), IsoTrig::beginJob(), IsolatedTracksHcalScale::beginJob(), GeneralPurposeTrackAnalyzer::beginJob(), DMRChecker::beginJob(), HGCalBHValidation::beginRun(), HGCalTBAnalyzer::beginRun(), StudyTriggerHLT::beginRun(), RecAnalyzerMinbias::beginRun(), StudyCaloResponse::beginRun(), CSCTriggerPrimitivesReader::bookALCTHistos(), TrackerRemapper::bookBins(), CSCTriggerPrimitivesReader::bookCLCTHistos(), CSCTriggerPrimitivesReader::bookCompHistos(), CSCTriggerPrimitivesReader::bookEfficHistos(), IsolatedParticlesGeneratedJets::bookHistograms(), StudyCaloGen::bookHistograms(), SiPixelPhase1Analyzer::BookHistograms(), IsolatedGenParticles::bookHistograms(), IsolatedTracksNxN::bookHistograms(), CSCTriggerPrimitivesReader::bookHotWireHistos(), CSCTriggerPrimitivesReader::bookLCTMPCHistos(), CSCTriggerPrimitivesReader::bookLCTTMBHistos(), MuonAlignmentFromReference::bookNtuple(), SVTagInfoValidationAnalyzer::bookRecoToSim(), CSCTriggerPrimitivesReader::bookResolHistos(), SVTagInfoValidationAnalyzer::bookSimToReco(), TreePerStub::bookTree(), MyStubComparison::bookTree(), IsolatedTracksCone::buildTree(), calcTopMass::calcTopMass(), CMSDAS11DijetAnalyzer::CMSDAS11DijetAnalyzer(), CMSDAS11DijetTestAnalyzer::CMSDAS11DijetTestAnalyzer(), CommonModeAnalyzer::CommonModeAnalyzer(), SiStripHitEffFromCalibTree::ComputeEff(), CSCPairResidualsConstraint::configure(), CosmicRateAnalyzer::CosmicRateAnalyzer(), CSCOverlapsAlignmentAlgorithm::CSCOverlapsAlignmentAlgorithm(), CSCOverlapsBeamSplashCut::CSCOverlapsBeamSplashCut(), EcalDisplaysByEvent::EcalDisplaysByEvent(), EcalMipGraphs::EcalMipGraphs(), JetCorrectorDemo::endJob(), FactorizedJetCorrectorDemo::endJob(), SplitVertexResolution::endJob(), IsoTrig::endJob(), TrackerOfflineValidation::endJob(), GeneralPurposeTrackAnalyzer::endJob(), DMRChecker::endJob(), TkLasBeamFitter::endRunProduce(), EopTreeWriter::EopTreeWriter(), G4StepStatistics::G4StepStatistics(), GEMPackingTester::GEMPackingTester(), HcalTestHistoManager::HcalTestHistoManager(), HGCalTriggerNtupleManager::HGCalTriggerNtupleManager(), HIPTwoBodyDecayAnalyzer::HIPTwoBodyDecayAnalyzer(), HLTBitAnalyzer::HLTBitAnalyzer(), HOCalibAnalyzer::HOCalibAnalyzer(), 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(), SiStripHitEffFromCalibTree::makeTKMap(), MCVerticesAnalyzer::MCVerticesAnalyzer(), MCvsRecoVerticesAnalyzer::MCvsRecoVerticesAnalyzer(), MultiplicityCorrelatorHistogramMaker::MultiplicityCorrelatorHistogramMaker(), OverlapProblemTPAnalyzer::OverlapProblemTPAnalyzer(), OverlapProblemTSOSAnalyzer::OverlapProblemTSOSAnalyzer(), PatJetAnalyzer::PatJetAnalyzer(), PatZToMuMuAnalyzer::PatZToMuMuAnalyzer(), PDFWeightsTest::PDFWeightsTest(), PFAnalysis::PFAnalysis(), CSCAlignmentCorrections::plot(), PUDumper::PUDumper(), VariableNTupler::registerleaves(), StringBasedNTupler::registerleaves(), EcalMipGraphs::selectDigi(), EcalDisplaysByEvent::selectDigi(), PatBTagCommonHistos::Set(), ZMuMuMassConstraintParameterFinder::DiMuonInfo::setupTree(), ShallowTree::ShallowTree(), SiPixelQualityHistory::SiPixelQualityHistory(), SiStripApvGainReader::SiStripApvGainReader(), SiStripQualityHistory::SiStripQualityHistory(), SiStripGainFromCalibTree::storeOnTree(), SVTagInfoValidationAnalyzer::SVTagInfoValidationAnalyzer(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackCount::TrackCount(), TrackingNtuple::TrackingNtuple(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), TreeWriterForEcalCorrection::TreeWriterForEcalCorrection(), and MuonMillepedeAlgorithm::updateInfo().
|
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(), SiStripSpyDisplayModule::analyze(), l1t::L1TStage2CaloAnalyzer::beginJob(), HFPMTHitAnalyzer::beginJob(), L1GctValidation::beginJob(), l1t::L1TGlobalAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), DMRChecker::beginJob(), BigEventsDebugger< T >::BigEventsDebugger(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), BeamSpotHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), DigiBXCorrHistogramMaker< EventWithHistory >::book(), DigiLumiCorrHistogramMaker::book(), VertexHistogramMaker::book(), BSvsPVHistogramMaker::book(), tmtt::Histos::bookEtaPhiSectors(), StudyCaloGen::bookHistograms(), L1GtDataEmulAnalyzer::bookHistograms(), IsolatedGenParticles::bookHistograms(), IsolatedTracksNxN::bookHistograms(), tmtt::Histos::bookInputData(), tmtt::Histos::bookRphiHT(), tmtt::Histos::bookRZfilters(), ApeEstimator::bookSectorHistsForAnalyzerMode(), ApeEstimator::bookSectorHistsForApeCalculation(), tmtt::Histos::bookTrackCands(), tmtt::Histos::bookTrackFitting(), ApeEstimator::bookTrackHists(), CosmicGenFilterHelix::createHistsEnd(), CosmicGenFilterHelix::createHistsStart(), TrackerOfflineValidation::DirectoryWrapper::DirectoryWrapper(), PatBTagAnalyzer::endJob(), TrackerTreeGenerator::endJob(), PrimaryVertexValidation::endJob(), SplitVertexResolution::endJob(), DMRChecker::endJob(), MuonAlignmentFromReference::fitAndAlign(), GctErrorAnalyzer::GctErrorAnalyzer(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), tmtt::Histos::plotTrackEffAfterFit(), tmtt::Histos::plotTrackEfficiency(), batchmanager.BatchManager::PrepareJob(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackerDpgAnalysis::TrackerDpgAnalysis(), tmtt::Histos::trackerGeometryAnalysis(), TrackerGeometryCompare::TrackerGeometryCompare(), TrackingParticleCategoriesAnalyzer::TrackingParticleCategoriesAnalyzer(), 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(), 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 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 AlCaHOCalibProducer::AlCaHOCalibProducer(), cms::Analyzer_minbias::Analyzer_minbias(), AnotherBeamSpotAnalyzer::AnotherBeamSpotAnalyzer(), AnotherPrimaryVertexAnalyzer::AnotherPrimaryVertexAnalyzer(), BSvsPVAnalyzer::BSvsPVAnalyzer(), CaloSimHitAnalysis::CaloSimHitAnalysis(), CaloSimHitStudy::CaloSimHitStudy(), CosmicGenFilterHelix::CosmicGenFilterHelix(), CosmicRateAnalyzer::CosmicRateAnalyzer(), CosmicSplitterValidation::CosmicSplitterValidation(), DMRChecker::DMRChecker(), EcalSimHitStudy::EcalSimHitStudy(), EopTreeWriter::EopTreeWriter(), GeneralPurposeTrackAnalyzer::GeneralPurposeTrackAnalyzer(), HcalHBHEMuonAnalyzer::HcalHBHEMuonAnalyzer(), HcalHBHEMuonHighEtaAnalyzer::HcalHBHEMuonHighEtaAnalyzer(), HcalHBHEMuonSimAnalyzer::HcalHBHEMuonSimAnalyzer(), HcalIsoTrkAnalyzer::HcalIsoTrkAnalyzer(), HcalRaddamMuon::HcalRaddamMuon(), HcalSimHitAnalysis::HcalSimHitAnalysis(), HFPMTHitAnalyzer::HFPMTHitAnalyzer(), HGCalBHValidation::HGCalBHValidation(), HGCalSimHitStudy::HGCalSimHitStudy(), HIPTwoBodyDecayAnalyzer::HIPTwoBodyDecayAnalyzer(), HitParentTest::HitParentTest(), HOSimHitStudy::HOSimHitStudy(), IsolatedGenParticles::IsolatedGenParticles(), IsolatedParticlesGeneratedJets::IsolatedParticlesGeneratedJets(), IsolatedTracksHcalScale::IsolatedTracksHcalScale(), IsolatedTracksNxN::IsolatedTracksNxN(), IsoTrackCalib::IsoTrackCalib(), IsoTrig::IsoTrig(), MuonAlignmentAnalyzer::MuonAlignmentAnalyzer(), PFAnalysis::PFAnalysis(), PrimaryVertexValidation::PrimaryVertexValidation(), ShallowTree::ShallowTree(), SimAnalyzerMinbias::SimAnalyzerMinbias(), SplitVertexResolution::SplitVertexResolution(), StudyCaloGen::StudyCaloGen(), StudyCaloResponse::StudyCaloResponse(), StudyTriggerHLT::StudyTriggerHLT(), TrackerOfflineValidation::TrackerOfflineValidation(), TrackerTreeGenerator::TrackerTreeGenerator(), TrackingNtuple::TrackingNtuple(), and ValidIsoTrkCalib::ValidIsoTrkCalib().
|
staticprivate |
Definition at line 79 of file TFileService.h.
Referenced by cd(), fullPath(), getBareDirectory(), getObject(), make(), mkdir(), setDirectoryName(), tFileDirectory(), and TFileService().