11 #include <boost/algorithm/string.hpp> 79 const std::vector<std::string>& lheOutputs = LHEAscii->
getStrings();
81 unsigned int iout = 0;
87 for (
unsigned int i = 0;
i < lheOutputs.size(); ++
i){
92 std::stringstream
fname;
93 fname << basename <<
"_" << iout ;
94 if (!extension.empty())
95 fname <<
"." << extension;
98 outfile << lheOutputs[
i];
108 std::stringstream
fname;
109 fname << basename <<
"_" << iout ;
110 if (!extension.empty())
111 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_