#include <InputFile.h>
Public Member Functions | |
void | Close () |
void | eventReadFromFile () const |
TObject * | Get (char const *name) |
TFileCacheRead * | GetCacheRead () const |
InputFile (char const *fileName, char const *msg, InputType inputType) | |
InputFile (InputFile const &)=delete | |
void | inputFileOpened (std::string const &logicalFileName, std::string const &inputType, std::string const &moduleName, std::string const &label, std::string const &fid, std::vector< std::string > const &branchNames) |
void | logFileAction (char const *msg, char const *fileName) const |
InputFile & | operator= (InputFile const &)=delete |
void | reportInputLumiSection (unsigned int run, unsigned int lumi) const |
void | reportInputRunNumber (unsigned int run) const |
void | SetCacheRead (TFileCacheRead *tfcr) |
~InputFile () | |
Static Public Member Functions | |
static void | reportFallbackAttempt (std::string const &pfn, std::string const &logicalFileName, std::string const &errorMessage) |
static void | reportReadBranch (InputType inputType, std::string const &branchname) |
static void | reportReadBranches () |
static void | reportSkippedFile (std::string const &fileName, std::string const &logicalFileName) |
Private Attributes | |
edm::propagate_const< std::unique_ptr< TFile > > | file_ |
std::string | fileName_ |
InputType | inputType_ |
JobReport::Token | reportToken_ |
Definition at line 21 of file InputFile.h.
|
explicit |
Definition at line 18 of file InputFile.cc.
References MillePedeFileConverter_cfg::e, file_, MillePedeFileConverter_cfg::fileName, edm::threadLocalException::getException(), logFileAction(), mps_check::msg, and edm::threadLocalException::setException().
InputFile::~InputFile | ( | ) |
|
delete |
void InputFile::Close | ( | ) |
Definition at line 87 of file InputFile.cc.
References cppFunctionSkipper::exception, file_, fileName_, inputType_, logFileAction(), and reportToken_.
Referenced by ~InputFile().
void InputFile::eventReadFromFile | ( | ) | const |
|
inline |
Definition at line 48 of file InputFile.h.
References file_, and Skims_PA_cff::name.
|
inline |
Definition at line 49 of file InputFile.h.
References file_.
void InputFile::inputFileOpened | ( | std::string const & | logicalFileName, |
std::string const & | inputType, | ||
std::string const & | moduleName, | ||
std::string const & | label, | ||
std::string const & | fid, | ||
std::vector< std::string > const & | branchNames | ||
) |
Definition at line 49 of file InputFile.cc.
References haddnano::branchNames, fileName_, label, edm::moduleName(), reportToken_, and AlCaHLTBitMon_QueryRunRegistry::string.
void InputFile::logFileAction | ( | char const * | msg, |
char const * | fileName | ||
) | const |
Definition at line 101 of file InputFile.cc.
References MillePedeFileConverter_cfg::fileName, edm::FlushMessageLog(), and mps_check::msg.
Referenced by Close(), and InputFile().
|
static |
Definition at line 80 of file InputFile.cc.
void InputFile::reportInputLumiSection | ( | unsigned int | run, |
unsigned int | lumi | ||
) | const |
Definition at line 70 of file InputFile.cc.
References writedatasetfile::run.
void InputFile::reportInputRunNumber | ( | unsigned int | run | ) | const |
|
static |
Definition at line 111 of file InputFile.cc.
References electrons_cff::branchName.
Referenced by edm::RootDelayedReader::getProduct_().
|
static |
Definition at line 106 of file InputFile.cc.
Referenced by edm::EmbeddedRootSource::endJob(), and edm::PoolSource::endJob().
|
static |
Definition at line 75 of file InputFile.cc.
References MillePedeFileConverter_cfg::fileName.
Referenced by edm::RootInputFileSequence::initTheFile().
|
inline |
Definition at line 50 of file InputFile.h.
References file_.
|
private |
Definition at line 54 of file InputFile.h.
Referenced by Close(), Get(), GetCacheRead(), InputFile(), and SetCacheRead().
|
private |
Definition at line 55 of file InputFile.h.
Referenced by Close(), and inputFileOpened().
|
private |
Definition at line 57 of file InputFile.h.
Referenced by Close(), and eventReadFromFile().
|
private |
Definition at line 56 of file InputFile.h.
Referenced by Close(), eventReadFromFile(), and inputFileOpened().