CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
TFileService Class Reference

#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 >
TgetObject (const std::string &objname, const std::string &subdir="")
 
template<typename T , typename... Args>
Tmake (const Args &... args) const
 make new ROOT object More...
 
TFileDirectory mkdir (const std::string &dir, const std::string &descr="")
 create a new subdirectory More...
 
TFileDirectorytFileDirectory ()
 
 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_
 

Detailed Description

Definition at line 30 of file TFileService.h.

Constructor & Destructor Documentation

◆ TFileService()

TFileService::TFileService ( const edm::ParameterSet cfg,
edm::ActivityRegistry r 
)

constructor

Definition at line 17 of file TFileService.cc.

18  : file_(nullptr),
19  fileName_(cfg.getParameter<std::string>("fileName")),
20  fileNameRecorded_(false),
21  closeFileFast_(cfg.getUntrackedParameter<bool>("closeFileFast", false)) {
22  tFileDirectory_ = TFileDirectory("", "", TFile::Open(fileName_.c_str(), "RECREATE"), "");
24 
25  // activities to monitor in order to set the proper directory
26  r.watchPreModuleConstruction(this, &TFileService::setDirectoryName);
27  r.watchPreModuleBeginJob(this, &TFileService::setDirectoryName);
28  r.watchPreModuleEndJob(this, &TFileService::setDirectoryName);
29  r.watchPreModuleEvent(this, &TFileService::preModuleEvent);
30  r.watchPostModuleEvent(this, &TFileService::postModuleEvent);
31 
32  r.watchPreModuleGlobalBeginRun(this, &TFileService::preModuleGlobal);
33  r.watchPostModuleGlobalBeginRun(this, &TFileService::postModuleGlobal);
34  r.watchPreModuleGlobalEndRun(this, &TFileService::preModuleGlobal);
35  r.watchPostModuleGlobalEndRun(this, &TFileService::postModuleGlobal);
36 
37  r.watchPreModuleGlobalBeginLumi(this, &TFileService::preModuleGlobal);
38  r.watchPostModuleGlobalBeginLumi(this, &TFileService::postModuleGlobal);
39  r.watchPreModuleGlobalEndLumi(this, &TFileService::preModuleGlobal);
40  r.watchPostModuleGlobalEndLumi(this, &TFileService::postModuleGlobal);
41 
42  // delay writing into JobReport after BeginJob
43  r.watchPostBeginJob(this, &TFileService::afterBeginJob);
44 }

References afterBeginJob(), file_, TFileDirectory::file_, fileName_, postModuleEvent(), postModuleGlobal(), preModuleEvent(), preModuleGlobal(), alignCSCRings::r, setDirectoryName(), and tFileDirectory_.

◆ ~TFileService()

TFileService::~TFileService ( )

destructor

Definition at line 46 of file TFileService.cc.

46  {
47  file_->Write();
48  if (closeFileFast_)
49  gROOT->GetListOfFiles()->Remove(file_);
50  file_->Close();
51  delete file_;
52 }

References closeFileFast_, and file_.

Member Function Documentation

◆ afterBeginJob()

void TFileService::afterBeginJob ( )

Hook for writing info into JR.

Definition at line 82 of file TFileService.cc.

82  {
83  if (!fileName_.empty()) {
84  if (!fileNameRecorded_) {
85  std::string fullName(1024, '\0');
86 
87  while (getcwd(&fullName[0], fullName.size()) == nullptr) {
88  if (errno != ERANGE) {
89  throw cms::Exception("TFileService")
90  << "Failed to get current directory (errno=" << errno << "): " << strerror(errno);
91  }
92  fullName.resize(fullName.size() * 2, '\0');
93  }
94  fullName.resize(fullName.find('\0'));
95 
96  fullName += "/" + fileName_;
97 
98  std::map<std::string, std::string> fileData;
99  fileData.insert(std::make_pair("Source", "TFileService"));
100 
102  reportSvc->reportAnalysisFile(fullName, fileData);
103  fileNameRecorded_ = true;
104  }
105  }
106 }

References Exception, fileName_, fileNameRecorded_, newFWLiteAna::fullName, edm::JobReport::reportAnalysisFile(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TFileService().

◆ cd()

bool TFileService::cd ( ) const
inline

◆ file()

TFile& TFileService::file ( ) const
inline

◆ fullPath()

std::string TFileService::fullPath ( ) const
inline

return the full path of the stored histograms

Definition at line 74 of file TFileService.h.

74 { return tFileDirectory_.fullPath(); }

References TFileDirectory::fullPath(), and tFileDirectory_.

◆ getBareDirectory()

TDirectory* TFileService::getBareDirectory ( const std::string &  subdir = "") const
inline

Definition at line 52 of file TFileService.h.

52  {
53  return tFileDirectory_.getBareDirectory(subdir);
54  }

References TFileDirectory::getBareDirectory(), and tFileDirectory_.

Referenced by FFTJetImageRecorder::analyze(), and FFTJetPileupAnalyzer::analyze().

◆ getObject()

template<typename T >
T* TFileService::getObject ( const std::string &  objname,
const std::string &  subdir = "" 
)
inline

Definition at line 58 of file TFileService.h.

58  {
59  return tFileDirectory_.getObject<T>(objname, subdir);
60  }

References TFileDirectory::getObject(), and tFileDirectory_.

◆ make()

template<typename T , typename... Args>
T* TFileService::make ( const Args &...  args) const
inline

make new ROOT object

Definition at line 64 of file TFileService.h.

64  {
65  return tFileDirectory_.make<T>(args...);
66  }

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(), HypothesisAnalyzer::beginJob(), PatZjetsElectronAnalyzer::beginJob(), PatZjetsJetAnalyzer::beginJob(), PatTauAnalyzer::beginJob(), PatMCMatching::beginJob(), PatMCMatchingExtended::beginJob(), PatTriggerTagAndProbe::beginJob(), PatTriggerAnalyzer::beginJob(), myRawAna::beginJob(), PatBJetTagAnalyzer::beginJob(), PatBTagAnalyzer::beginJob(), PatTopSelectionAnalyzer::beginJob(), MCPhotonAnalyzer::beginJob(), PhotonsWithConversionsAnalyzer::beginJob(), PatBasicAnalyzer::beginJob(), PatTrackAnalyzer::beginJob(), PatVertexAnalyzer::beginJob(), JetCorrectorDemo::beginJob(), FactorizedJetCorrectorDemo::beginJob(), ExampleMuonAnalyzer::beginJob(), PatBJetTrackAnalyzer::beginJob(), cms::MinBias::beginJob(), l1t::L1TStage2CaloAnalyzer::beginJob(), WMuNuSelector::beginJob(), PatBJetVertexAnalyzer::beginJob(), ResolutionCreator::beginJob(), SimAnalyzerMinbias::beginJob(), RecAnalyzerHF::beginJob(), HcalHBHEMuonSimAnalyzer::beginJob(), SiPixelDQMRocLevelAnalyzer::beginJob(), HGCalTimingAnalyzer::beginJob(), ContainmentCorrectionAnalyzer::beginJob(), MuonAlignmentAnalyzer::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(), RecAnalyzerMinbias::beginJob(), HcalHBHEMuonAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), IsoTrackCalibration::beginJob(), HcalHBHEMuonHighEtaAnalyzer::beginJob(), SplitVertexResolution::beginJob(), IsoTrackCalib::beginJob(), StudyCaloResponse::beginJob(), ErsatzMEt::beginJob(), HcalIsoTrkAnalyzer::beginJob(), IsoTrig::beginJob(), IsolatedTracksHcalScale::beginJob(), GeneralPurposeTrackAnalyzer::beginJob(), DMRChecker::beginJob(), HGCalBHValidation::beginRun(), HGCalTBAnalyzer::beginRun(), StudyTriggerHLT::beginRun(), RecAnalyzerMinbias::beginRun(), StudyCaloResponse::beginRun(), CSCTriggerPrimitivesReader::bookALCTHistos(), CSCTriggerPrimitivesReader::bookCLCTHistos(), CSCTriggerPrimitivesReader::bookCompHistos(), CSCTriggerPrimitivesReader::bookEfficHistos(), IsolatedParticlesGeneratedJets::bookHistograms(), StudyCaloGen::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(), gamma_radiative_analyzer::gamma_radiative_analyzer(), HcalTestHistoManager::HcalTestHistoManager(), HGCalTriggerNtupleManager::HGCalTriggerNtupleManager(), HIPTwoBodyDecayAnalyzer::HIPTwoBodyDecayAnalyzer(), HLTBitAnalyzer::HLTBitAnalyzer(), 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(), SiStripHitEffFromCalibTree::makeTKMap(), MCVerticesAnalyzer::MCVerticesAnalyzer(), MCvsRecoVerticesAnalyzer::MCvsRecoVerticesAnalyzer(), MultiplicityCorrelatorHistogramMaker::MultiplicityCorrelatorHistogramMaker(), MuTriggerAnalyzer::MuTriggerAnalyzer(), 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(), 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().

◆ mkdir()

TFileDirectory TFileService::mkdir ( const std::string &  dir,
const std::string &  descr = "" 
)
inline

create a new subdirectory

Definition at line 69 of file TFileService.h.

69  {
70  return tFileDirectory_.mkdir(dir, descr);
71  }

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(), BjetAnalysis::BjetAnalysis(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), BeamSpotHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), VertexHistogramMaker::book(), DigiBXCorrHistogramMaker< EventWithHistory >::book(), DigiLumiCorrHistogramMaker::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(), EWKSystUnc::EWKSystUnc(), MuonAlignmentFromReference::fitAndAlign(), GctErrorAnalyzer::GctErrorAnalyzer(), GlbMuQualityCutsAnalysis::GlbMuQualityCutsAnalysis(), WMuNuValidator::init_histograms(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), tmtt::Histos::plotTrackEffAfterFit(), tmtt::Histos::plotTrackEfficiency(), batchmanager.BatchManager::PrepareJob(), TrackCategoriesAnalyzer::TrackCategoriesAnalyzer(), TrackerDpgAnalysis::TrackerDpgAnalysis(), tmtt::Histos::trackerGeometryAnalysis(), 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().

◆ postModuleEvent()

void TFileService::postModuleEvent ( edm::StreamContext const &  ,
edm::ModuleCallingContext const &  mcc 
)
private

Definition at line 64 of file TFileService.cc.

64  {
65  edm::ModuleCallingContext const* previous_mcc = mcc.previousModuleOnThread();
66  if (previous_mcc) {
67  setDirectoryName(*previous_mcc->moduleDescription());
68  }
69 }

References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().

Referenced by TFileService().

◆ postModuleGlobal()

void TFileService::postModuleGlobal ( edm::GlobalContext const &  ,
edm::ModuleCallingContext const &  mcc 
)
private

Definition at line 75 of file TFileService.cc.

75  {
76  edm::ModuleCallingContext const* previous_mcc = mcc.previousModuleOnThread();
77  if (previous_mcc) {
78  setDirectoryName(*previous_mcc->moduleDescription());
79  }
80 }

References edm::ModuleCallingContext::moduleDescription(), edm::ModuleCallingContext::previousModuleOnThread(), and setDirectoryName().

Referenced by TFileService().

◆ preModuleEvent()

void TFileService::preModuleEvent ( edm::StreamContext const &  ,
edm::ModuleCallingContext const &  mcc 
)
private

Definition at line 60 of file TFileService.cc.

60  {
61  setDirectoryName(*mcc.moduleDescription());
62 }

References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().

Referenced by TFileService().

◆ preModuleGlobal()

void TFileService::preModuleGlobal ( edm::GlobalContext const &  ,
edm::ModuleCallingContext const &  mcc 
)
private

Definition at line 71 of file TFileService.cc.

71  {
72  setDirectoryName(*mcc.moduleDescription());
73 }

References edm::ModuleCallingContext::moduleDescription(), and setDirectoryName().

Referenced by TFileService().

◆ setDirectoryName()

void TFileService::setDirectoryName ( const edm::ModuleDescription desc)
private

◆ tFileDirectory()

TFileDirectory& TFileService::tFileDirectory ( )
inline

Member Data Documentation

◆ closeFileFast_

bool TFileService::closeFileFast_
private

Definition at line 84 of file TFileService.h.

Referenced by ~TFileService().

◆ file_

TFile* TFileService::file_
private

pointer to opened TFile

Definition at line 81 of file TFileService.h.

Referenced by file(), setDirectoryName(), TFileService(), and ~TFileService().

◆ fileName_

std::string TFileService::fileName_
private

Definition at line 82 of file TFileService.h.

Referenced by afterBeginJob(), and TFileService().

◆ fileNameRecorded_

bool TFileService::fileNameRecorded_
private

Definition at line 83 of file TFileService.h.

Referenced by afterBeginJob().

◆ kSharedResource

const std::string TFileService::kSharedResource = "TFileService"
static

Definition at line 76 of file TFileService.h.

Referenced by AlCaHOCalibProducer::AlCaHOCalibProducer(), cms::Analyzer_minbias::Analyzer_minbias(), 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(), 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().

◆ tFileDirectory_

thread_local TFileDirectory TFileService::tFileDirectory_
staticprivate
writedatasetfile.args
args
Definition: writedatasetfile.py:18
TFileService::afterBeginJob
void afterBeginJob()
Hook for writing info into JR.
Definition: TFileService.cc:82
TFileDirectory::mkdir
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileDirectory.cc:112
TFileDirectory::fullPath
std::string fullPath() const
return the full path of the stored histograms
Definition: TFileDirectory.cc:110
TFileDirectory::dir_
std::string dir_
Definition: TFileDirectory.h:86
TFileService::file_
TFile * file_
pointer to opened TFile
Definition: TFileService.h:81
TFileDirectory::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileDirectory.h:53
edm::JobReport::reportAnalysisFile
void reportAnalysisFile(std::string const &fileName, std::map< std::string, std::string > const &fileData)
Definition: JobReport.cc:473
TFileService::tFileDirectory_
static thread_local TFileDirectory tFileDirectory_
Definition: TFileService.h:79
TFileService::fileName_
std::string fileName_
Definition: TFileService.h:82
TFileDirectory::cd
bool cd() const
Definition: TFileDirectory.cc:12
TFileDirectory::getObject
T * getObject(const std::string &objname, const std::string &subdir="")
Definition: TFileDirectory.h:40
TFileDirectory
Definition: TFileDirectory.h:24
TFileDirectory::file_
TFile * file_
Definition: TFileDirectory.h:85
edm::ModuleCallingContext::moduleDescription
ModuleDescription const * moduleDescription() const
Definition: ModuleCallingContext.h:50
TFileDirectory::descr_
std::string descr_
Definition: TFileDirectory.h:86
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
newFWLiteAna.fullName
fullName
Definition: newFWLiteAna.py:122
TFileService::fileNameRecorded_
bool fileNameRecorded_
Definition: TFileService.h:83
edm::ModuleCallingContext::previousModuleOnThread
ModuleCallingContext const * previousModuleOnThread() const
Definition: ModuleCallingContext.h:75
TFileService::setDirectoryName
void setDirectoryName(const edm::ModuleDescription &desc)
Definition: TFileService.cc:54
edm::Service
Definition: Service.h:30
TFileService::closeFileFast_
bool closeFileFast_
Definition: TFileService.h:84
TFileDirectory::getBareDirectory
TDirectory * getBareDirectory(const std::string &subdir="") const
Definition: TFileDirectory.cc:10
looper.cfg
cfg
Definition: looper.py:297
alignCSCRings.r
r
Definition: alignCSCRings.py:93
TFileService::preModuleGlobal
void preModuleGlobal(edm::GlobalContext const &, edm::ModuleCallingContext const &)
Definition: TFileService.cc:71
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
T
long double T
Definition: Basic3DVectorLD.h:48
Exception
Definition: hltDiff.cc:246
TFileService::postModuleGlobal
void postModuleGlobal(edm::GlobalContext const &, edm::ModuleCallingContext const &)
Definition: TFileService.cc:75
TFileService::postModuleEvent
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: TFileService.cc:64
TFileService::preModuleEvent
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
Definition: TFileService.cc:60
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29