13 : theInputDir(iConfig.getParameter<std::
string>(
"fileDir")),
14 theInputFileName(iConfig.getParameter<std::
string>(
"inputBinaryFile")),
15 theFileBlobLabel(iConfig.getParameter<std::
string>(
"fileBlobLabel")) {
29 std::unique_ptr<FileBlobCollection> theFileBlobCollection(
40 <<
"Error: No FileBlob could be created from the file \""
44 if (theFileBlob.
size() > 0) {
46 theFileBlobCollection->addFileBlob(theFileBlob);
47 iRun.
put(std::move(theFileBlobCollection), theFileBlobLabel);
58 "Keep the fileDir empty if you want to write to the current "
59 "directory. If you use it, it should end with a slash.");
61 desc.
add<
std::string>(
"inputBinaryFile",
"milleBinary.dat")->setComment(
62 "Filename of the file created by Mille in the AlignmentProducer");
64 desc.
add<
std::string>(
"fileBlobLabel",
"milleBinary.dat")->setComment(
65 "It's probably a good idea to keep the label the same as the "
66 "original filename(s). See configuration of "
67 "MillePedeFileExtractor, it should be the same there.");
69 descriptions.
add(
"millePedeFileConverter", desc);
71 "This is the generic cfi file for the "
72 "MillePedeFileConverter");
~MillePedeFileConverter()
MillePedeFileConverter(const edm::ParameterSet &)
virtual void endRunProduce(edm::Run &run, const edm::EventSetup &iSetup) overridefinal
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string theFileBlobLabel
void put(std::auto_ptr< PROD > product)
Put a new product.
std::string theInputFileName