13 : inputDir_(iConfig.getParameter<std::
string>(
"fileDir")),
14 inputFileName_(iConfig.getParameter<std::
string>(
"inputBinaryFile")),
15 fileBlobLabel_(iConfig.getParameter<std::
string>(
"fileBlobLabel")) {
29 auto fileBlobCollection = std::make_unique<FileBlobCollection>();
39 <<
"Error: No FileBlob could be created from the file \""
43 if (fileBlob.size() > 0) {
45 fileBlobCollection->addFileBlob(fileBlob);
47 iLumi.
put(
std::move(fileBlobCollection), fileBlobLabel_);
57 "Keep the fileDir empty if you want to write to the current "
58 "directory. If you use it, it should end with a slash.");
60 desc.
add<
std::string>(
"inputBinaryFile",
"milleBinary.dat")->setComment(
61 "Filename of the file created by Mille in the AlignmentProducer");
63 desc.
add<
std::string>(
"fileBlobLabel",
"milleBinary.dat")->setComment(
64 "It's probably a good idea to keep the label the same as the "
65 "original filename(s). See configuration of "
66 "MillePedeFileExtractor, it should be the same there.");
68 descriptions.
add(
"millePedeFileConverter", desc);
70 "This is the generic cfi file for the "
71 "MillePedeFileConverter");
const std::string fileBlobLabel_
~MillePedeFileConverter()
MillePedeFileConverter(const edm::ParameterSet &)
const std::string inputFileName_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
const std::string inputDir_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void endLuminosityBlockProduce(edm::LuminosityBlock &, const edm::EventSetup &) overridefinal
void put(std::auto_ptr< PROD > product)
Put a new product.