14 : theOutputDir(iConfig.getParameter<std::
string>(
"fileDir")),
15 theOutputFileName(iConfig.getParameter<std::
string>(
"outputBinaryFile")) {
29 if (theFileBlobCollection.
isValid()) {
31 int theVectorSize = theFileBlobCollection->size();
32 edm::LogInfo(
"MillePedeFileActions") <<
"Root file contains "
33 << theVectorSize <<
" FileBlob(s).";
35 for (std::vector<FileBlob>::const_iterator it =
36 theFileBlobCollection->begin();
37 it != theFileBlobCollection->end(); ++it) {
42 char theNumberedOutputFileName[200];
43 int theNumber = it - theFileBlobCollection->begin();
47 <<
"Writing FileBlob file to file "
56 <<
"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 "
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.");
82 descriptions.
add(
"millePedeFileExtractor", desc);
84 "This is the generic cfi file for the "
85 "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)