14 : inputDir_(iConfig.getParameter<
std::
string>(
"fileDir")),
15 inputFileName_(iConfig.getParameter<
std::
string>(
"inputBinaryFile")),
16 fileBlobLabel_(iConfig.getParameter<
std::
string>(
"fileBlobLabel")) {
18 produces<FileBlobCollection, edm::Transition::EndLuminosityBlock>(
fileBlobLabel_);
30 auto fileBlobCollection = std::make_unique<FileBlobCollection>();
36 if (fileBlob.size() > 0) {
38 fileBlobCollection->addFileBlob(fileBlob);
40 iLumi.
put(
std::move(fileBlobCollection), fileBlobLabel_);
50 "Keep the fileDir empty if you want to write to the current " 51 "directory. If you use it, it should end with a slash.");
53 desc.
add<
std::string>(
"inputBinaryFile",
"milleBinary.dat")->setComment(
54 "Filename of the file created by Mille in the AlignmentProducer");
56 desc.
add<
std::string>(
"fileBlobLabel",
"milleBinary.dat")->setComment(
57 "It's probably a good idea to keep the label the same as the " 58 "original filename(s). See configuration of " 59 "MillePedeFileExtractor, it should be the same there.");
61 descriptions.
add(
"millePedeFileConverter", desc);
63 "This is the generic cfi file for the " 64 "MillePedeFileConverter");
const std::string fileBlobLabel_
MillePedeFileConverter(const edm::ParameterSet &)
void endLuminosityBlockProduce(edm::LuminosityBlock &, const edm::EventSetup &) final
~MillePedeFileConverter() override
void put(std::unique_ptr< PROD > product)
Put a new product.
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)