10 #include <boost/algorithm/string.hpp> 66 const std::vector<std::string>& lheOutputs = LHEAscii->
getStrings();
68 unsigned int iout = 0;
74 for (
unsigned int i = 0;
i < lheOutputs.size(); ++
i) {
79 std::stringstream
fname;
80 fname << basename <<
"_" << iout;
81 if (!extension.empty())
82 fname <<
"." << extension;
85 outfile << lheOutputs[
i];
95 std::stringstream
fname;
96 fname << basename <<
"_" << iout;
97 if (!extension.empty())
98 fname <<
"." << extension;
ExternalLHEAsciiDumper(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
const std::vector< std::string > & getStrings() const
const std::vector< std::vector< uint8_t > > & getCompressed() const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< LHEXMLStringProduct > LHEAsciiToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~ExternalLHEAsciiDumper() override
void writeCompressedContent(std::ostream &output, unsigned int i) const
void endRun(edm::Run const &, edm::EventSetup const &) override
edm::InputTag lheProduct_