#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 |
Definition at line 24 of file TFileDirectory.h.
|
inline |
|
inlinevirtual |
|
inlineprivate |
|
private |
Definition at line 17 of file TFileDirectory.cc.
References gather_cfg::cout, DeadROC_duringRun::dir, sistrip::dir_, Exception, contentValuesFiles::fullPath, convertSQLiteXML::ok, and path_.
Referenced by make().
|
private |
Definition at line 97 of file TFileDirectory.cc.
References Exception.
Referenced by getObject().
|
private |
Definition at line 69 of file TFileDirectory.cc.
References edmLumisInFiles::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 |
|
inline |
Definition at line 40 of file TFileDirectory.h.
References _getObj(), and Exception.
Referenced by TFileService::getObject().
|
inline |
make new ROOT object
Definition at line 53 of file TFileDirectory.h.
References _cd(), writedatasetfile::args, HLT_FULL_cff::Class, ztail::d, TrackCollections2monitor_cff::func, and submitPVValidationJobs::t.
Referenced by AnalysisTasksAnalyzerBTag::AnalysisTasksAnalyzerBTag(), AnalysisTasksAnalyzerJEC::AnalysisTasksAnalyzerJEC(), BasicMuonAnalyzer::BasicMuonAnalyzer(), HFPMTHitAnalyzer::beginJob(), L1GctValidation::beginJob(), l1t::L1TGlobalAnalyzer::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(), PatBTagAnalyzer::endJob(), TrackerTreeGenerator::endJob(), PrimaryVertexValidation::endJob(), SplitVertexResolution::endJob(), DMRChecker::endJob(), GctErrorAnalyzer::GctErrorAnalyzer(), HCalSD::HCalSD(), HFGflash::HFGflash(), HFShowerParam::HFShowerParam(), ExpressionHisto< T >::initialize(), main(), TFileService::make(), tmtt::Histos::makeEfficiencyPlot(), MultiplicityTimeCorrelations::MultiplicityTimeCorrelations(), PatMuonAnalyzer::PatMuonAnalyzer(), GctErrorAnalyzer::plotEGErrors(), GctErrorAnalyzer::plotHFErrors(), GctErrorAnalyzer::plotJetErrors(), GctErrorAnalyzer::plotMissingEErrors(), GctErrorAnalyzer::plotTotalEErrors(), tmtt::Histos::trackerGeometryAnalysis(), TrackerGeometryCompare::TrackerGeometryCompare(), and TSOSHistogramMaker::TSOSHistogramMaker().
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(), RunHistogramManager::beginRun(), DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), ApeEstimator::bookSectorHistsForApeCalculation(), VariablePlotter::fill(), GctErrorAnalyzer::GctErrorAnalyzer(), main(), TFileService::mkdir(), and batchmanager.BatchManager::PrepareJob().
|
friend |
Definition at line 84 of file TFileDirectory.h.
|
friend |
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.
Referenced by valtools.comparison::comparisonOnWebSite(), valtools.comparison::comparisonUrl(), and valtools.comparison::submit().