#include <MillePedeFileExtractor.h>
|
| MillePedeFileExtractor (const edm::ParameterSet &) |
|
| ~MillePedeFileExtractor () override |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 31 of file MillePedeFileExtractor.h.
MillePedeFileExtractor::~MillePedeFileExtractor |
( |
| ) |
|
|
override |
bool MillePedeFileExtractor::enoughBinaries |
( |
| ) |
|
|
inlineprivate |
Definition at line 95 of file MillePedeFileExtractor.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
100 "Keep the fileDir empty if you want to write to the current " 103 desc.
add<
std::string>(
"outputBinaryFile",
"milleBinary%04d.dat")->setComment(
104 "Base filename of the files that will be created. This must " 106 "a placeholder for an index number in the standard C formatting " 107 "style, like %04d.");
110 "Name of the module that should have generated the blob in the " 111 "root file. Make sure you overwrite this, if you have changed " 112 "this is the configuration of the MillePedeFileConverter.");
114 desc.
add<
int>(
"maxNumberOfBinaries", 1000)->setComment(
115 "Number of binaries to be extracted from the input files. " 116 "Use a negative value to apply no limit.");
118 descriptions.
add(
"millePedeFileExtractor", desc);
120 "This is the generic cfi file for the " 121 "MillePedeFileExtractor");
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool MillePedeFileExtractor::hasBinaryNumberLimit |
( |
| ) |
|
|
inlineprivate |
void MillePedeFileExtractor::writeGzipped |
( |
const FileBlob & |
blob, |
|
|
const std::string & |
fileName |
|
) |
| |
|
staticprivate |
Definition at line 69 of file MillePedeFileExtractor.cc.
References FileBlob::getUncompressedBlob(), and spu::zerr().
Referenced by endLuminosityBlock(), and hasBinaryNumberLimit().
74 gzFile fp = gzopen(
fileName.c_str(),
"wb");
77 <<
"Problem while opening gzipped file '" <<
fileName <<
"'.";
79 auto nBytes = gzwrite(fp, &uncompressedBlob->front(), uncompressedBlob->size());
81 nBytes !=
static_cast<decltype(nBytes)
>(uncompressedBlob->size())) {
83 <<
"Problem while writing FileBlob to gzipped file '" <<
fileName <<
"'.";
85 auto zerr = gzclose(fp);
88 <<
"Problem while closing gzipped file '" <<
fileName <<
"'.";
std::unique_ptr< std::vector< unsigned char > > getUncompressedBlob() const
i didn't want to do two copies ... hope this works.
const int MillePedeFileExtractor::maxNumberOfBinaries_ |
|
private |
int MillePedeFileExtractor::nBinaries_ {0} |
|
private |
const std::string MillePedeFileExtractor::outputDir_ |
|
private |
const std::string MillePedeFileExtractor::outputFileName_ |
|
private |