11 #include <boost/algorithm/string.hpp>
50 lheProduct_( ps.getParameter<edm::
InputTag>(
"lheProduct") ),
51 lheFileName_( ps.getParameter<std::
string>(
"lheFileName") )
75 const std::vector<std::string>& lheOutputs = LHEAscii->getStrings();
77 unsigned int iout = 0;
83 for (
unsigned int i = 0;
i < lheOutputs.size(); ++
i){
88 std::stringstream
fname;
89 fname << basename <<
"_" << iout ;
91 fname <<
"." << extension;
94 outfile << lheOutputs[
i];
99 for (
unsigned int i = 0;
i < LHEAscii->getCompressed().size(); ++
i){
104 std::stringstream
fname;
105 fname << basename <<
"_" << iout ;
107 fname <<
"." << extension;
110 LHEAscii->writeCompressedContent(outfile,
i);
bool getByLabel(std::string const &label, Handle< PROD > &result) const
ExternalLHEAsciiDumper(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
~ExternalLHEAsciiDumper()
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
edm::InputTag lheProduct_