#include <MillePedeFileExtractor.h>
|
| MillePedeFileExtractor (const edm::ParameterSet &) |
|
| ~MillePedeFileExtractor () |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| 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 & | itemsToGetFromEvent () 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 |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
|
inlineoverrideprivatevirtual |
bool MillePedeFileExtractor::enoughBinaries |
( |
| ) |
|
|
inlineprivate |
Definition at line 94 of file MillePedeFileExtractor.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_FULL_cff::InputTag, edm::ConfigurationDescriptions::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
99 "Keep the fileDir empty if you want to write to the current "
102 desc.
add<
std::string>(
"outputBinaryFile",
"milleBinary%04d.dat")->setComment(
103 "Base filename of the files that will be created. This must "
105 "a placeholder for an index number in the standard C formatting "
106 "style, like %04d.");
109 "Name of the module that should have generated the blob in the "
110 "root file. Make sure you overwrite this, if you have changed "
111 "this is the configuration of the MillePedeFileConverter.");
113 desc.
add<
int>(
"maxNumberOfBinaries", 1000)->setComment(
114 "Number of binaries to be extracted from the input files. "
115 "Use a negative value to apply no limit.");
117 descriptions.
add(
"millePedeFileExtractor", desc);
119 "This is the generic cfi file for the "
120 "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 68 of file MillePedeFileExtractor.cc.
References personalPlayback::fp, FileBlob::getUncompressedBlob(), NULL, and spu::zerr().
Referenced by endLuminosityBlock().
76 <<
"Problem while opening gzipped file '" <<
fileName <<
"'.";
78 auto nBytes = gzwrite(fp, &uncompressedBlob->front(), uncompressedBlob->size());
80 nBytes !=
static_cast<decltype(nBytes)
>(uncompressedBlob->size())) {
82 <<
"Problem while writing FileBlob to gzipped file '" <<
fileName <<
"'.";
84 auto zerr = gzclose(fp);
87 <<
"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 |