LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FileCatalogMetadataExtras.h"
Classes | |
struct | PerFileMetadata |
Public Member Functions | |
FileCatalogMetadataExtras (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
~FileCatalogMetadataExtras () | |
void | reconfigure (fhicl::ParameterSet const &p) |
Private Member Functions | |
void | postBeginJob () |
void | postEndJob () |
void | postOpenFile (std::string const &fn) |
void | postCloseFile () |
void | preEvent (art::Event const &ev) |
void | postEvent (art::Event const &ev) |
void | postOpenOutputFile (std::string const &fn) |
void | postCloseOutputFile (art::OutputFileInfo const &finfo) |
void | checkOutputFiles () |
void | addPerFileMetadata (std::string const &fn) |
void | renameOutputFile (std::string const &fn) |
std::string | expandTemplate () const |
Static Private Member Functions | |
static bool | isArtFile (std::string const &fn) |
Private Attributes | |
std::multimap< std::string, std::string > | fPerJobMetadata |
bool | fGeneratePerFileMetadata |
std::vector< std::string > | fCopyMetadataAttributes |
std::string | fRenameTemplate |
bool | fRenameOverwrite |
std::map< std::string, PerFileMetadata > | fPerFileMetadataMap |
std::vector< std::string > | fOutputFiles |
std::string | fLastInputFile |
unsigned int | fOutputFileCount |
Definition at line 98 of file FileCatalogMetadataExtras.h.
util::FileCatalogMetadataExtras::FileCatalogMetadataExtras | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 26 of file FileCatalogMetadataExtras_service.cc.
References postBeginJob(), postCloseFile(), postCloseOutputFile(), postEndJob(), postEvent(), postOpenFile(), preEvent(), reconfigure(), art::ActivityRegistry::sPostBeginJob, art::ActivityRegistry::sPostCloseFile, art::ActivityRegistry::sPostCloseOutputFile, art::ActivityRegistry::sPostEndJob, art::ActivityRegistry::sPostOpenFile, art::ActivityRegistry::sPostProcessEvent, and art::ActivityRegistry::sPreProcessEvent.
util::FileCatalogMetadataExtras::~FileCatalogMetadataExtras | ( | ) |
Definition at line 48 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles().
|
private |
Definition at line 371 of file FileCatalogMetadataExtras_service.cc.
References util::FileCatalogMetadataExtras::PerFileMetadata::fEndTime, fGeneratePerFileMetadata, file, util::FileCatalogMetadataExtras::PerFileMetadata::fillMetadata(), fPerFileMetadataMap, isArtFile(), and art::SQLErrMsg::throwIfError().
Referenced by util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata(), and postCloseOutputFile().
|
private |
Definition at line 320 of file FileCatalogMetadataExtras_service.cc.
References fGeneratePerFileMetadata, file, fOutputFiles, and postOpenOutputFile().
Referenced by util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata(), postBeginJob(), postCloseFile(), postEndJob(), postEvent(), postOpenFile(), preEvent(), and ~FileCatalogMetadataExtras().
|
private |
Definition at line 642 of file FileCatalogMetadataExtras_service.cc.
References DEFINE_ART_SERVICE, f, fLastInputFile, fOutputFileCount, fRenameTemplate, and n.
Referenced by util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata(), and renameOutputFile().
|
staticprivate |
Definition at line 278 of file FileCatalogMetadataExtras_service.cc.
References file.
Referenced by addPerFileMetadata(), util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata(), postOpenOutputFile(), and renameOutputFile().
|
private |
Definition at line 81 of file FileCatalogMetadataExtras_service.cc.
References art::FileCatalogMetadata::addMetadata(), checkOutputFiles(), fPerJobMetadata, art::FileCatalogMetadata::getMetadata(), and fhicl::detail::atom::value().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 142 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 261 of file FileCatalogMetadataExtras_service.cc.
References addPerFileMetadata(), art::OutputFileInfo::fileName(), and renameOutputFile().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 127 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 156 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles(), art::Event::event(), util::FileCatalogMetadataExtras::PerFileMetadata::fEventCount, util::FileCatalogMetadataExtras::PerFileMetadata::fFirstEvent, util::FileCatalogMetadataExtras::PerFileMetadata::fLastEvent, fLastInputFile, fOutputFiles, util::FileCatalogMetadataExtras::PerFileMetadata::fParents, fPerFileMetadataMap, util::FileCatalogMetadataExtras::PerFileMetadata::fRunNumbers, util::FileCatalogMetadataExtras::PerFileMetadata::fSubRunNumbers, art::Event::run(), and art::Event::subRun().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 134 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles(), and fLastInputFile.
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 189 of file FileCatalogMetadataExtras_service.cc.
References fCopyMetadataAttributes, util::FileCatalogMetadataExtras::PerFileMetadata::fEndTime, file, fLastInputFile, util::FileCatalogMetadataExtras::PerFileMetadata::fNVPairs, util::FileCatalogMetadataExtras::PerFileMetadata::fParents, fPerFileMetadataMap, util::FileCatalogMetadataExtras::PerFileMetadata::fStartTime, isArtFile(), and fhicl::detail::atom::value().
Referenced by checkOutputFiles(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
|
private |
Definition at line 149 of file FileCatalogMetadataExtras_service.cc.
References checkOutputFiles().
Referenced by FileCatalogMetadataExtras(), and util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata().
void util::FileCatalogMetadataExtras::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 59 of file FileCatalogMetadataExtras_service.cc.
References fCopyMetadataAttributes, fGeneratePerFileMetadata, fPerJobMetadata, fRenameOverwrite, fRenameTemplate, and fhicl::ParameterSet::get().
Referenced by FileCatalogMetadataExtras().
|
private |
Definition at line 576 of file FileCatalogMetadataExtras_service.cc.
References expandTemplate(), file, fOutputFileCount, fRenameOverwrite, fRenameTemplate, and isArtFile().
Referenced by util::FileCatalogMetadataExtras::PerFileMetadata::PerFileMetadata(), and postCloseOutputFile().
|
private |
Definition at line 163 of file FileCatalogMetadataExtras.h.
Referenced by postOpenOutputFile(), and reconfigure().
|
private |
Definition at line 162 of file FileCatalogMetadataExtras.h.
Referenced by addPerFileMetadata(), checkOutputFiles(), and reconfigure().
|
private |
Definition at line 177 of file FileCatalogMetadataExtras.h.
Referenced by expandTemplate(), postEvent(), postOpenFile(), and postOpenOutputFile().
|
private |
Definition at line 181 of file FileCatalogMetadataExtras.h.
Referenced by expandTemplate(), and renameOutputFile().
|
private |
Definition at line 173 of file FileCatalogMetadataExtras.h.
Referenced by checkOutputFiles(), and postEvent().
|
private |
Definition at line 169 of file FileCatalogMetadataExtras.h.
Referenced by addPerFileMetadata(), postEvent(), and postOpenOutputFile().
|
private |
Definition at line 161 of file FileCatalogMetadataExtras.h.
Referenced by postBeginJob(), and reconfigure().
|
private |
Definition at line 165 of file FileCatalogMetadataExtras.h.
Referenced by reconfigure(), and renameOutputFile().
|
private |
Definition at line 164 of file FileCatalogMetadataExtras.h.
Referenced by expandTemplate(), reconfigure(), and renameOutputFile().