#include <TFileDirectory.h>
Public Member Functions | |
bool | cd () const |
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 () | |
virtual | ~TFileDirectory () |
descructor More... | |
Private Member Functions | |
TDirectory * | _cd (const std::string &subdir="", bool createNeededDirectories=true) const |
TObject * | _getObj (const std::string &objname, const std::string &subdir="") const |
TDirectory * | _mkdir (TDirectory *dirPtr, const std::string &dir, const std::string &description) const |
TFileDirectory (const std::string &dir, const std::string &descr, TFile *file, const std::string &path) | |
Private Attributes | |
std::string | descr_ |
std::string | dir_ |
TFile * | file_ |
std::string | path_ |
Friends | |
class | fwlite::TFileService |
class | TFileService |
Output file. More... | |
Definition at line 24 of file TFileDirectory.h.
|
inline |
Definition at line 26 of file TFileDirectory.h.
|
inlinevirtual |
|
inlineprivate |
Definition at line 81 of file TFileDirectory.h.
|
private |
Definition at line 17 of file TFileDirectory.cc.
References gather_cfg::cout, DeadROC_duringRun::dir, sistrip::dir_, Exception, contentValuesFiles::fullPath, convertSQLiteXML::ok, path_, and mkLumiAveragedPlots::subdir.
Referenced by make().
|
private |
Definition at line 97 of file TFileDirectory.cc.
References Exception, and mkLumiAveragedPlots::subdir.
Referenced by getObject().
|
private |
Definition at line 69 of file TFileDirectory.cc.
References makeListRunsInFiles::description, sistrip::dir_, Exception, oniaPATMuonsWithTrigger_cff::matches, and path_.
bool TFileDirectory::cd | ( | ) | const |
Definition at line 12 of file TFileDirectory.cc.
Referenced by TFileService::cd(), 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().
std::string TFileDirectory::fullPath | ( | ) | const |
return the full path of the stored histograms
Definition at line 110 of file TFileDirectory.cc.
References sistrip::dir_, path_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TFileService::fullPath().
TDirectory * TFileDirectory::getBareDirectory | ( | const std::string & | subdir = "" | ) | const |
Definition at line 10 of file TFileDirectory.cc.
References mkLumiAveragedPlots::subdir.
Referenced by TFileService::getBareDirectory().
|
inline |
Definition at line 40 of file TFileDirectory.h.
References _getObj(), Exception, and mkLumiAveragedPlots::subdir.
Referenced by TFileService::getObject().
|
inline |
make new ROOT object
Definition at line 53 of file TFileDirectory.h.
References _cd(), writedatasetfile::args, HLT_2024v14_cff::Class, ztail::d, EcalMonitorTask_cff::func, and submitPVValidationJobs::t.
Referenced by cms::SiPixelCondObjOfflineReader::analyze(), cms::SiPixelCondObjReader::analyze(), cms::SiPixelCondObjAllPayloadsReader::analyze(), cms::SiPixelCondObjForHLTReader::analyze(), HFPMTHitAnalyzer::beginJob(), L1GctValidation::beginJob(), l1t::L1TGlobalAnalyzer::beginJob(), NearbyPixelClustersAnalyzer::beginJob(), PrimaryVertexValidation::beginJob(), SplitVertexResolution::beginJob(), HistoParams< T >::beginRun(), HistoParams< TH2F >::beginRun(), HistoParams< TProfile2D >::beginRun(), BigEventsDebugger< T >::BigEventsDebugger(), AlignmentMonitorSurvey::book(), DigiBXCorrHistogramMaker< EventWithHistory >::book(), VertexHistogramMaker::book(), BSvsPVHistogramMaker::book(), AlignmentMonitorMuonResiduals::book(), AlignmentMonitorBase::book1D(), AlignmentMonitorBase::book2D(), tmtt::Histos::bookEtaPhiSectors(), L1GtDataEmulAnalyzer::bookHistograms(), tmtt::Histos::bookInputData(), AlignmentMonitorBase::bookProfile(), ApeEstimator::bookSectorHistsForAnalyzerMode(), ApeEstimator::bookSectorHistsForApeCalculation(), tmtt::Histos::bookTrackCands(), tmtt::Histos::bookTrackFitting(), ApeEstimator::bookTrackHists(), ECalSD::ECalSD(), TrackerTreeGenerator::endJob(), PrimaryVertexValidation::endJob(), SplitVertexResolution::endJob(), DMRChecker::endJob(), GctErrorAnalyzer::GctErrorAnalyzer(), HCalSD::HCalSD(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), main(), TFileService::make(), tmtt::Histos::makeEfficiencyPlot(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), GctErrorAnalyzer::plotEGErrors(), GctErrorAnalyzer::plotHFErrors(), GctErrorAnalyzer::plotJetErrors(), GctErrorAnalyzer::plotMissingEErrors(), GctErrorAnalyzer::plotTotalEErrors(), TestPythiaDecays::TestPythiaDecays(), tmtt::Histos::trackerGeometryAnalysis(), and TrackerGeometryCompare::TrackerGeometryCompare().
TFileDirectory TFileDirectory::mkdir | ( | const std::string & | dir, |
const std::string & | descr = "" |
||
) |
create a new subdirectory
Definition at line 112 of file TFileDirectory.cc.
References DeadROC_duringRun::dir, and contentValuesFiles::fullPath.
Referenced by l1t::L1TStage2CaloAnalyzer::analyze(), SiStripSpyDisplayModule::analyze(), fwlite::AnalyzerWrapper< T >::AnalyzerWrapper(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), ApeEstimator::bookSectorHistsForApeCalculation(), VariablePlotter::fill(), GctErrorAnalyzer::GctErrorAnalyzer(), TFileService::mkdir(), and batchmanager.BatchManager::PrepareJob().
|
friend |
Definition at line 84 of file TFileDirectory.h.
|
friend |
Output file.
Definition at line 83 of file TFileDirectory.h.
|
private |
Definition at line 86 of file TFileDirectory.h.
Referenced by TFileService::setDirectoryName().
|
private |
Definition at line 86 of file TFileDirectory.h.
Referenced by TFileService::setDirectoryName().
|
private |
Definition at line 85 of file TFileDirectory.h.
Referenced by TFileService::setDirectoryName(), and TFileService::TFileService().
|
private |
Definition at line 86 of file TFileDirectory.h.