13 : theOutputDir(iConfig.getParameter<std::
string>(
"fileDir")),
14 theOutputFileName(iConfig.getParameter<std::
string>(
"outputBinaryFile")),
15 theFileBlobModule(iConfig.getParameter<std::
string>(
"fileBlobModule")),
16 theFileBlobLabel(iConfig.getParameter<std::
string>(
"fileBlobLabel")) {
27 if (theFileBlobCollection.
isValid()) {
29 int theVectorSize = theFileBlobCollection->size();
30 edm::LogInfo(
"MillePedeFileActions") <<
"Root file contains "
31 << theVectorSize <<
" FileBlob(s).";
33 for (std::vector<FileBlob>::const_iterator it =
34 theFileBlobCollection->begin();
35 it != theFileBlobCollection->end(); ++it) {
40 char theNumberedOutputFileName[200];
41 int theNumber = it - theFileBlobCollection->begin();
45 <<
"Writing FileBlob file to file "
54 <<
"Error: The root file does not contain any vector of FileBlob "
67 "Keep the fileDir empty if you want to write to the current "
70 desc.
add<
std::string>(
"outputBinaryFile",
"milleBinary%04d.dat")->setComment(
71 "Base filename of the files that will be created. This must "
73 "a placeholder for an index number in the standard C formatting "
76 desc.
add<
std::string>(
"fileBlobModule",
"millePedeFileConverter")->setComment(
77 "Name of the module that should have generated the blob in the "
78 "root file. Make sure you overwrite this, if you have changed "
79 "this is the configuration of the MillePedeFileConverter.");
81 desc.
add<
std::string>(
"fileBlobLabel",
"milleBinary.dat")->setComment(
82 "It's probably a good idea to keep the label the same as the "
83 "original filename(s). See configuration of "
84 "MillePedeFileConverter, it should be the same there.");
86 descriptions.
add(
"millePedeFileExtractor", desc);
88 "This is the generic cfi file for the "
89 "MillePedeFileExtractor");
bool getByLabel(std::string const &label, 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)