12 : outputDir_(iConfig.getParameter<std::
string>(
"fileDir")),
13 outputFileName_(iConfig.getParameter<std::
string>(
"outputBinaryFile")),
14 maxNumberOfBinaries_(iConfig.getParameter<int>(
"maxNumberOfBinaries")) {
20 <<
"Limiting the number of extracted binary files to "
35 if (fileBlobCollection.
isValid()) {
38 <<
"Root file contains " << fileBlobCollection->size() <<
" FileBlob(s).";
40 for (
const auto& blob: *fileBlobCollection) {
46 char theNumberedOutputFileName[200];
50 <<
"Writing FileBlob file to file "
51 <<
outputDir_ + theNumberedOutputFileName <<
".";
53 blob.write(
outputDir_ + theNumberedOutputFileName);
60 <<
"Error: The root file does not contain any vector of FileBlob.";
72 "Keep the fileDir empty if you want to write to the current "
75 desc.
add<
std::string>(
"outputBinaryFile",
"milleBinary%04d.dat")->setComment(
76 "Base filename of the files that will be created. This must "
78 "a placeholder for an index number in the standard C formatting "
82 "Name of the module that should have generated the blob in the "
83 "root file. Make sure you overwrite this, if you have changed "
84 "this is the configuration of the MillePedeFileConverter.");
86 desc.
add<
int>(
"maxNumberOfBinaries", 1000)->setComment(
87 "Number of binaries to be extracted from the input files. "
88 "Use a negative value to apply no limit.");
90 descriptions.
add(
"millePedeFileExtractor", desc);
92 "This is the generic cfi file for the "
93 "MillePedeFileExtractor");
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)