LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::TFileService Class Reference

#include "TFileService.h"

Inheritance diagram for art::TFileService:
art::TFileDirectory

Classes

struct  Config
 

Public Types

using Parameters = ServiceTable< Config >
 
using Callback_t = TFileDirectory::Callback_t
 

Public Member Functions

 TFileService (ServiceTable< Config > const &config, art::ActivityRegistry &r)
 
 ~TFileService ()
 
void registerFileSwitchCallback (Callback_t c)
 
template<typename T >
void registerFileSwitchCallback (T *provider, void(T::*)())
 
TFile & file () const
 
template<typename T , typename... ARGS>
T * make (ARGS...args) const
 
template<typename T , typename... ARGS>
T * makeAndRegister (char const *name, char const *title, ARGS...args) const
 
template<typename T , typename... ARGS>
T * makeAndRegister (std::string const &name, std::string const &title, ARGS...args) const
 
TFileDirectory mkdir (std::string const &dir, std::string const &descr="")
 

Static Public Attributes

static constexpr const char * default_tmpDir = "<parent-path-of-filename>"
 

Protected Member Functions

void invokeCallbacks ()
 
void registerCallback (Callback_t)
 
std::string fullPath () const
 

Protected Attributes

TFile * file_
 
std::string dir_
 
std::string descr_
 
bool requireCallback_ {false}
 

Private Member Functions

 TFileService (TFileService const &)=delete
 
TFileService operator= (TFileService const &)=delete
 
void setDirectoryName_ (art::ModuleDescription const &desc)
 
void openFile_ ()
 
void closeFile_ ()
 
void maybeSwitchFiles_ ()
 
bool requestsToCloseFile_ ()
 
std::string fileNameAtOpen_ ()
 
std::string fileNameAtClose_ (std::string const &)
 

Private Attributes

bool const closeFileFast_
 
FileStatsCollector fstats_
 
PostCloseFileRenamer fRenamer_ {fstats_}
 
std::string filePattern_
 
std::string uniqueFilename_
 
std::string tmpDir_
 
std::string lastClosedFile_ {}
 
Granularity currentGranularity_ {Granularity::Unset}
 
std::chrono::steady_clock::time_point beginTime_ {}
 
ClosingCriteria fileSwitchCriteria_ {ClosingCriteria::Config{}}
 
OutputFileStatus status_ {OutputFileStatus::Closed}
 
FileProperties fp_ {}
 

Detailed Description

Definition at line 31 of file TFileService.h.

Member Typedef Documentation

Definition at line 48 of file TFileService.h.

Constructor & Destructor Documentation

art::TFileService::TFileService ( TFileService const &  )
privatedelete
TFileService::TFileService ( ServiceTable< Config > const &  config,
art::ActivityRegistry r 
)

Definition at line 37 of file TFileService_service.cc.

References closeFileFast_, currentGranularity_, e, art::Granularity::Event, filePattern_, fileSwitchCriteria_, fp_, fstats_, art::Run::id(), art::SubRun::id(), art::Event::id(), art::Granularity::InputFile, maybeSwitchFiles_(), openFile_(), art::FileStatsCollector::recordEvent(), art::FileStatsCollector::recordInputFile(), art::FileStatsCollector::recordRun(), art::FileStatsCollector::recordSubRun(), requestsToCloseFile_(), art::TFileDirectory::requireCallback_, art::Granularity::Run, setDirectoryName_(), status_, art::Granularity::SubRun, tmpDir_, art::FileProperties::update(), and art::detail::validateFileNamePattern().

39  : TFileDirectory{"", "", nullptr, ""}
40  , closeFileFast_{config().closeFileFast()}
41  , fstats_{config.get_PSet().get<std::string>("service_type"),
42  ServiceHandle<TriggerNamesService const>{}->getProcessName()}
43  , filePattern_{config().fileName()}
44  , tmpDir_{config().tmpDir()}
45 {
46  ClosingCriteria::Config fpConfig;
47  requireCallback_ = config().fileProperties(fpConfig);
48  if (requireCallback_) {
50  fileSwitchCriteria_ = ClosingCriteria{fpConfig};
51  }
52  openFile_();
53 
54  // Activities to monitor in order to set the proper directory.
55  r.sPostOpenFile.watch(
56  [this](std::string const& fileName) { fstats_.recordInputFile(fileName); });
57 
60 
70 
73 
76 
78 
79  // Activities to monitor to keep track of events, subruns and runs seen.
80  r.sPostProcessEvent.watch([this](Event const& e) {
83  fstats_.recordEvent(e.id());
84  if (requestsToCloseFile_()) {
86  }
87  });
88  r.sPostEndSubRun.watch([this](SubRun const& sr) {
91  fstats_.recordSubRun(sr.id());
92  if (requestsToCloseFile_()) {
94  }
95  });
96  r.sPostEndRun.watch([this](Run const& r) {
99  fstats_.recordRun(r.id());
100  if (requestsToCloseFile_()) {
102  }
103  });
104  r.sPostCloseFile.watch([this] {
107  if (requestsToCloseFile_()) {
109  }
110  });
111 }
std::string tmpDir_
Definition: TFileService.h:74
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleConstruction
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleEndSubRun
void recordRun(RunID const &id)
void validateFileNamePattern(bool do_check, std::string const &pattern)
void recordEvent(EventID const &id)
bool const closeFileFast_
Definition: TFileService.h:69
FileStatsCollector fstats_
Definition: TFileService.h:70
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleBeginSubRun
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleBeginJob
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleRespondToOpenInputFile
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleBeginRun
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleEndRun
ClosingCriteria fileSwitchCriteria_
Definition: TFileService.h:83
void recordSubRun(SubRunID const &id)
Granularity currentGranularity_
Definition: TFileService.h:78
void recordInputFile(std::string const &inputFileName)
std::string filePattern_
Definition: TFileService.h:72
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleEndJob
void setDirectoryName_(art::ModuleDescription const &desc)
GlobalSignal< detail::SignalResponseType::LIFO, void(Run const &)> sPostEndRun
std::enable_if_t< B!=Granularity::InputFile > update(OutputFileStatus const status)
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleRespondToOpenOutputFiles
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModule
OutputFileStatus status_
Definition: TFileService.h:84
GlobalSignal< detail::SignalResponseType::LIFO, void(std::string const &)> sPostOpenFile
GlobalSignal< detail::SignalResponseType::LIFO, void(Event const &)> sPostProcessEvent
Float_t e
Definition: plot.C:34
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleRespondToCloseOutputFiles
GlobalSignal< detail::SignalResponseType::FIFO, void(ModuleDescription const &)> sPreModuleRespondToCloseInputFile
FileProperties fp_
Definition: TFileService.h:85
GlobalSignal< detail::SignalResponseType::LIFO, void(SubRun const &)> sPostEndSubRun
TFileDirectory(std::string const &dir, std::string const &descr, TFile *file, std::string const &path)
Create a new TFileDirectory object.
TFileService::~TFileService ( )

Definition at line 113 of file TFileService_service.cc.

References closeFile_().

114 {
115  closeFile_();
116 }

Member Function Documentation

void TFileService::closeFile_ ( )
private

Definition at line 165 of file TFileService_service.cc.

References art::Closed, closeFileFast_, art::TFileDirectory::file_, fileNameAtClose_(), fstats_, lastClosedFile_, art::FileStatsCollector::recordFileClose(), status_, and uniqueFilename_.

Referenced by maybeSwitchFiles_(), and ~TFileService().

166 {
167  file_->Write();
168  if (closeFileFast_) {
169  gROOT->GetListOfFiles()->Remove(file_);
170  }
171  file_->Close();
172  delete file_;
173  file_ = nullptr;
177 }
std::string lastClosedFile_
Definition: TFileService.h:77
bool const closeFileFast_
Definition: TFileService.h:69
FileStatsCollector fstats_
Definition: TFileService.h:70
std::string uniqueFilename_
Definition: TFileService.h:73
OutputFileStatus status_
Definition: TFileService.h:84
std::string fileNameAtClose_(std::string const &)
TFile& art::TFileService::file ( ) const
inline

Definition at line 63 of file TFileService.h.

64  {
65  return *file_;
66  }
std::string TFileService::fileNameAtClose_ ( std::string const &  filename)
private

Definition at line 146 of file TFileService_service.cc.

References filePattern_, fRenamer_, and art::PostCloseFileRenamer::maybeRenameFile().

Referenced by closeFile_().

147 {
148  return filePattern_ == dev_null ?
149  dev_null :
151 }
PostCloseFileRenamer fRenamer_
Definition: TFileService.h:71
std::string filePattern_
Definition: TFileService.h:72
std::string maybeRenameFile(std::string const &inPath, std::string const &toPattern)
std::string TFileService::fileNameAtOpen_ ( )
private

Definition at line 136 of file TFileService_service.cc.

References default_tmpDir, filePattern_, art::parent_path(), tmpDir_, and art::unique_filename().

Referenced by openFile_().

137 {
138  if (filePattern_ == dev_null)
139  return dev_null;
140  return unique_filename(
142  "/TFileService");
143 }
std::string tmpDir_
Definition: TFileService.h:74
std::string unique_filename(std::string stem, std::string extension=".root")
static constexpr const char * default_tmpDir
Definition: TFileService.h:37
std::string filePattern_
Definition: TFileService.h:72
std::string parent_path(std::string const &path)
Definition: parent_path.cc:15
std::string art::TFileDirectory::fullPath ( ) const
protectedinherited

Return the full pathname of the current directory, formed from appending 'dir' to the end of 'path'.

Definition at line 80 of file TFileDirectory.cc.

References art::TFileDirectory::dir_, and art::TFileDirectory::path_.

Referenced by art::TFileDirectory::cd(), and art::TFileDirectory::mkdir().

81 {
82  return path_.empty() ? dir_ : path_ + "/" + dir_;
83 }
void art::TFileDirectory::invokeCallbacks ( )
protectedinherited

Definition at line 19 of file TFileDirectory.cc.

References art::TFileDirectory::callbacks_, art::TFileDirectory::dir_, and f.

Referenced by maybeSwitchFiles_().

20 {
21  for (auto const& pr : callbacks_) {
22  dir_ = pr.first;
23  for (auto f : pr.second) {
24  f();
25  }
26  }
27 }
TFile f
Definition: plotHisto.C:6
std::map< std::string, std::vector< Callback_t > > callbacks_
template<typename T , typename... ARGS>
T * art::TFileDirectory::make ( ARGS...  args) const
inherited

make new ROOT object of type T, using constructor parameters args. It will be made in the 'current directory', as established with a call to 'cd'.

Definition at line 82 of file TFileDirectory.h.

References art::TFileDirectory::cd().

Referenced by opdet::OpHitAna::analyze(), opdet::OpDigiAna::analyze(), opdet::OpFlashAna::analyze(), mvapid::MVAPID::beginJob(), lar_pandora::PFParticleTrackAna::beginJob(), lar_pandora::PFParticleCosmicAna::beginJob(), lar_pandora::PFParticleHitDumper::beginJob(), lar_pandora::PFParticleMonitoring::beginJob(), lar_pandora::PFParticleAnalysis::beginJob(), pid::PIDAAnalyzer::beginJob(), opdet::OpFlashSimpleAna::beginJob(), phot::PhotonLibraryAnalyzer::beginJob(), filt::FinalStateParticleFilter::beginJob(), opreco::OpticalRecoAna::beginJob(), filt::FinalStateSelectFilter::beginJob(), spacecharge::ShiftEdepSCE::beginJob(), opdet::FlashHypothesisAna::beginJob(), cluster::ClusterPCA::beginJob(), larg4::ISCalculationAna::beginJob(), vertex::AggregateVertexAna::beginJob(), evgen::CosmicsGen::beginJob(), DUNE::NeutrinoShowerEff::beginJob(), ShowerQuality::beginJob(), filt::EmptyFilter::beginJob(), hit::HitAnaModule::beginJob(), cluster::TrajCluster::beginJob(), cluster::DBcluster::beginJob(), shower::TCShowerTemplateMaker::beginJob(), rwgt::ReweightAna::beginJob(), shower::TCShowerElectronLikelihood::beginJob(), shower::TCShowerAnalysis::beginJob(), caldata::CalWireAna::beginJob(), cluster::fuzzyCluster::beginJob(), microboone::CosmicRemovalAna::beginJob(), detsim::SimWireAna::beginJob(), evgen::NUANCEGen::beginJob(), larg4::LArG4Ana::beginJob(), DUNE::NeutrinoTrackingEff::beginJob(), trkf::TrackKalmanCheater::beginJob(), pfpf::PFPAna::beginJob(), vertex::PrimaryVertexFinder::beginJob(), cluster::ClusterAna::beginJob(), DUNE::MuonTrackingEff::beginJob(), vertex::HarrisVertexFinder::beginJob(), detsim::WienerFilterAna::beginJob(), evgen::NDKGen::beginJob(), cluster::DBclusterAna::beginJob(), hit::GausHitFinderAna::beginJob(), hit::HitFinderAna::beginJob(), hit::GausHitFinder::beginJob(), cluster::HoughLineFinderAna::beginJob(), trkf::Track3DKalmanHit::beginJob(), NuShowerEff::beginJob(), vertex::VertexFinder2D::beginJob(), evgen::GaisserParam::beginJob(), opdet::SimPhotonCounter::beginJob(), shwf::ShowerReco::beginJob(), detsim::SimWire::beginJob(), hit::DPRawHitFinder::beginJob(), vertex::FeatureVertexFinderAna::beginJob(), trkf::Track3DKalman::beginJob(), evgen::GENIEGen::beginJob(), lbne::PhotonCounterT0Matching::beginJob(), trkf::Track3DKalmanSPS::beginJob(), t0::MCTruthT0Matching::beginJob(), evgen::MUSUN::beginJob(), ems::MultiEMShowers::beginJob(), lar::example::AnalysisExample::beginJob(), ems::MergeEMShower3D::beginJob(), cheat::RecoCheckAna::beginRun(), trkf::SpacePointAna::bookHistograms(), reco_tool::CandHitDerivative::configure(), reco_tool::CandHitMorphological::configure(), detsim::SimWire::ConvoluteResponseFunctions(), tca::HistStuff::CreateHists(), DUNE::NeutrinoShowerEff::doEfficiencies(), DUNE::NeutrinoTrackingEff::doEfficiencies(), NuShowerEff::doEfficiencies(), shower::EMShowerAlg::EMShowerAlg(), opdet::LEDCalibrationAna::endJob(), larg::LArSimChannelAna::ensureHists(), hit::MagDriftAna::ensureHists(), reco_tool::CandHitDerivative::findHitCandidates(), reco_tool::CandHitMorphological::findHitCandidates(), lar_cluster3d::ConvexHullPathFinder::initializeHistograms(), lar_cluster3d::VoronoiPathFinder::initializeHistograms(), lar_cluster3d::Cluster3D::InitializeMonitoring(), larg4::IonizationAndScintillation::IonizationAndScintillation(), opdet::LEDCalibrationAna::LEDCalibrationAna(), evgen::LightSource::LightSource(), evgen::MarleyTimeGen::make_nu_emission_histograms(), evgen::MarleyGen::MarleyGen(), evgen::MarleyTimeGen::MarleyTimeGen(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), cluster::MergeClusterAlg::MergeClusterAlg(), opdet::OpFlashAna::OpFlashAna(), opdet::OpHitAna::OpHitAna(), trkf::PMAlgTrackMaker::PMAlgTrackMaker(), cluster::ClusterMatchAlg::PrepareTTree(), trkf::SeedAna::RecoHists::RecoHists(), trkf::TrackAna::RecoHists::RecoHists(), detsim::SimWire::SetElectResponse(), detsim::SimWire::SetFieldResponse(), phot::PhotonLibrary::StoreLibraryToFile(), trk::TrackContainmentAnalyzer::TrackContainmentAnalyzer(), and trk::TrackContainmentTagger::TrackContainmentTagger().

83  {
84  detail::RootDirectorySentry sentry;
85  cd();
86  return new T(args...);
87  }
template<typename T , typename... ARGS>
T * art::TFileDirectory::makeAndRegister ( char const *  name,
char const *  title,
ARGS...  args 
) const
inherited

make and register a new ROOT object of type T, giving it the specified name and title, using constructor parameters 'args'. The type must be registerable, and must support naming and titling.

Definition at line 91 of file TFileDirectory.h.

References art::TFileDirectory::cd().

Referenced by art::TFileDirectory::makeAndRegister().

94  {
95  detail::RootDirectorySentry sentry;
96  cd();
97  T* p = new T(args...);
98  p->SetName(name);
99  p->SetTitle(title);
100  gDirectory->Append(p);
101  return p;
102  }
template<typename T , typename... ARGS>
T * art::TFileDirectory::makeAndRegister ( std::string const &  name,
std::string const &  title,
ARGS...  args 
) const
inherited

Definition at line 106 of file TFileDirectory.h.

References art::TFileDirectory::makeAndRegister().

109  {
110  return makeAndRegister(name.c_str(), title.c_str(), args...);
111  }
T * makeAndRegister(char const *name, char const *title, ARGS...args) const
void TFileService::maybeSwitchFiles_ ( )
private

Definition at line 180 of file TFileService_service.cc.

References closeFile_(), currentGranularity_, filePattern_, fileSwitchCriteria_, fp_, art::ClosingCriteria::granularity(), art::TFileDirectory::invokeCallbacks(), lastClosedFile_, art::detail::logFileAction(), openFile_(), status_, and art::Switching.

Referenced by TFileService().

181 {
182  // FIXME: Should maybe include the granularity check in
183  // requestsToCloseFile_().
185  return;
186 
188  closeFile_();
189  detail::logFileAction("Closed TFileService file ", lastClosedFile_);
190  detail::logFileAction("Switching to new TFileService file with pattern ",
191  filePattern_);
192  fp_ = FileProperties{};
193  openFile_();
194  invokeCallbacks();
195 }
std::string lastClosedFile_
Definition: TFileService.h:77
void logFileAction(const char *msg, std::string const &file)
Definition: logFileAction.cc:9
ClosingCriteria fileSwitchCriteria_
Definition: TFileService.h:83
auto granularity() const
Granularity currentGranularity_
Definition: TFileService.h:78
std::string filePattern_
Definition: TFileService.h:72
OutputFileStatus status_
Definition: TFileService.h:84
FileProperties fp_
Definition: TFileService.h:85
art::TFileDirectory art::TFileDirectory::mkdir ( std::string const &  dir,
std::string const &  descr = "" 
)
inherited

Create a new TFileDirectory, sharing the same TFile as this one, but with an additional 'dir', and with 'path' being the fullPath() of this one.

Definition at line 86 of file TFileDirectory.cc.

References art::TFileDirectory::cd(), dir, art::TFileDirectory::file_, and art::TFileDirectory::fullPath().

Referenced by opdet::FIFOHistogramAna::analyze(), trkf::TrackKalmanCheater::beginJob(), trkf::Track3DKalmanHit::beginJob(), trkf::SpacePointAna::bookHistograms(), reco_tool::CandHitMorphological::configure(), reco_tool::CandHitDerivative::configure(), reco_tool::CandHitDerivative::findHitCandidates(), reco_tool::CandHitMorphological::findHitCandidates(), lar_cluster3d::ConvexHullPathFinder::initializeHistograms(), lar_cluster3d::VoronoiPathFinder::initializeHistograms(), trkf::SeedAna::MCHists::MCHists(), trkf::TrackAna::MCHists::MCHists(), trkf::SeedAna::RecoHists::RecoHists(), and trkf::TrackAna::RecoHists::RecoHists().

87 {
88  detail::RootDirectorySentry sentry;
89  cd();
90  return TFileDirectory{dir, descr, file_, fullPath()};
91 }
TDirectory * dir
Definition: macro.C:5
std::string fullPath() const
TFileDirectory(std::string const &dir, std::string const &descr, TFile *file, std::string const &path)
Create a new TFileDirectory object.
void TFileService::openFile_ ( )
private

Definition at line 154 of file TFileService_service.cc.

References beginTime_, art::TFileDirectory::file_, fileNameAtOpen_(), fstats_, art::Open, art::FileStatsCollector::recordFileOpen(), status_, and uniqueFilename_.

Referenced by maybeSwitchFiles_(), and TFileService().

155 {
157  assert(file_ == nullptr && "TFile pointer should always be zero here!");
158  beginTime_ = std::chrono::steady_clock::now();
159  file_ = new TFile{uniqueFilename_.c_str(), "RECREATE"};
162 }
FileStatsCollector fstats_
Definition: TFileService.h:70
std::string uniqueFilename_
Definition: TFileService.h:73
std::chrono::steady_clock::time_point beginTime_
Definition: TFileService.h:79
OutputFileStatus status_
Definition: TFileService.h:84
std::string fileNameAtOpen_()
TFileService art::TFileService::operator= ( TFileService const &  )
privatedelete
void art::TFileDirectory::registerCallback ( Callback_t  cb)
protectedinherited

Definition at line 30 of file TFileDirectory.cc.

References art::TFileDirectory::callbacks_, and art::TFileDirectory::dir_.

Referenced by registerFileSwitchCallback().

31 {
32  callbacks_[dir_].push_back(cb);
33 }
std::map< std::string, std::vector< Callback_t > > callbacks_
void TFileService::registerFileSwitchCallback ( Callback_t  c)

Definition at line 119 of file TFileService_service.cc.

References art::TFileDirectory::registerCallback().

120 {
121  registerCallback(cb);
122 }
void registerCallback(Callback_t)
template<typename T >
void art::TFileService::registerFileSwitchCallback ( T *  provider,
void(T::*)()  f 
)

Definition at line 102 of file TFileService.h.

References DECLARE_ART_SERVICE, f, and art::LEGACY.

103 {
104  auto cb = [provider, f] { return (provider->*f)(); };
106 }
void registerFileSwitchCallback(Callback_t c)
TFile f
Definition: plotHisto.C:6
bool TFileService::requestsToCloseFile_ ( )
private

Definition at line 198 of file TFileService_service.cc.

References beginTime_, DEFINE_ART_SERVICE, art::TFileDirectory::file_, fileSwitchCriteria_, fp_, art::ClosingCriteria::should_close(), art::FileProperties::updateAge(), and art::FileProperties::updateSize().

Referenced by TFileService().

199 {
200  using namespace std::chrono;
201  unsigned int constexpr oneK{1024u};
202  fp_.updateSize(file_->GetSize() / oneK);
203  fp_.updateAge(duration_cast<seconds>(steady_clock::now() - beginTime_));
205 }
ClosingCriteria fileSwitchCriteria_
Definition: TFileService.h:83
bool should_close(FileProperties const &) const
void updateAge(std::chrono::seconds const age)
std::chrono::steady_clock::time_point beginTime_
Definition: TFileService.h:79
void updateSize(unsigned const size)
FileProperties fp_
Definition: TFileService.h:85
void TFileService::setDirectoryName_ ( art::ModuleDescription const &  desc)
private

Definition at line 125 of file TFileService_service.cc.

References art::TFileDirectory::descr_, art::TFileDirectory::dir_, art::ModuleDescription::moduleLabel(), and art::ModuleDescription::moduleName().

Referenced by TFileService().

126 {
127  CET_ASSERT_ONLY_ONE_THREAD();
128  dir_ = desc.moduleLabel();
129  descr_ = dir_;
130  descr_ += " (";
131  descr_ += desc.moduleName();
132  descr_ += ") folder";
133 }

Member Data Documentation

std::chrono::steady_clock::time_point art::TFileService::beginTime_ {}
private

Definition at line 79 of file TFileService.h.

Referenced by openFile_(), and requestsToCloseFile_().

bool const art::TFileService::closeFileFast_
private

Definition at line 69 of file TFileService.h.

Referenced by closeFile_(), and TFileService().

Granularity art::TFileService::currentGranularity_ {Granularity::Unset}
private

Definition at line 78 of file TFileService.h.

Referenced by maybeSwitchFiles_(), and TFileService().

constexpr const char* art::TFileService::default_tmpDir = "<parent-path-of-filename>"
static

Definition at line 37 of file TFileService.h.

Referenced by fileNameAtOpen_().

std::string art::TFileDirectory::descr_
protectedinherited
TFile* art::TFileDirectory::file_
protectedinherited
std::string art::TFileService::filePattern_
private

Definition at line 72 of file TFileService.h.

Referenced by fileNameAtClose_(), fileNameAtOpen_(), maybeSwitchFiles_(), and TFileService().

ClosingCriteria art::TFileService::fileSwitchCriteria_ {ClosingCriteria::Config{}}
private

Definition at line 83 of file TFileService.h.

Referenced by maybeSwitchFiles_(), requestsToCloseFile_(), and TFileService().

FileProperties art::TFileService::fp_ {}
private

Definition at line 85 of file TFileService.h.

Referenced by maybeSwitchFiles_(), requestsToCloseFile_(), and TFileService().

PostCloseFileRenamer art::TFileService::fRenamer_ {fstats_}
private

Definition at line 71 of file TFileService.h.

Referenced by fileNameAtClose_().

FileStatsCollector art::TFileService::fstats_
private

Definition at line 70 of file TFileService.h.

Referenced by closeFile_(), openFile_(), and TFileService().

std::string art::TFileService::lastClosedFile_ {}
private

Definition at line 77 of file TFileService.h.

Referenced by closeFile_(), and maybeSwitchFiles_().

bool art::TFileDirectory::requireCallback_ {false}
protectedinherited

Definition at line 70 of file TFileDirectory.h.

Referenced by art::TFileDirectory::cd(), and TFileService().

OutputFileStatus art::TFileService::status_ {OutputFileStatus::Closed}
private

Definition at line 84 of file TFileService.h.

Referenced by closeFile_(), maybeSwitchFiles_(), openFile_(), and TFileService().

std::string art::TFileService::tmpDir_
private

Definition at line 74 of file TFileService.h.

Referenced by fileNameAtOpen_(), and TFileService().

std::string art::TFileService::uniqueFilename_
private

Definition at line 73 of file TFileService.h.

Referenced by closeFile_(), and openFile_().


The documentation for this class was generated from the following files: