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 &)
#define DEFINE_FWK_MODULE(type)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
const std::vector< std::string > & getStrings() const
~ExternalLHEAsciiDumper()
const std::vector< std::vector< uint8_t > > & getCompressed() const
edm::EDGetTokenT< LHEXMLStringProduct > LHEAsciiToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void writeCompressedContent(std::ostream &output, unsigned int i) const
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
edm::InputTag lheProduct_