48 : lheProduct_(ps.getParameter<edm::
InputTag>(
"lheProduct")),
49 lheFileName_(ps.getParameter<std::
string>(
"lheFileName")) {
65 const std::vector<std::string>& lheOutputs = LHEAscii->getStrings();
67 unsigned int iout = 0;
73 for (
unsigned int i = 0;
i < lheOutputs.size(); ++
i) {
78 std::stringstream
fname;
79 fname << basename <<
"_" << iout;
80 if (!extension.empty())
81 fname <<
"." << extension;
84 outfile << lheOutputs[
i];
89 for (
unsigned int i = 0;
i < LHEAscii->getCompressed().size(); ++
i) {
94 std::stringstream
fname;
95 fname << basename <<
"_" << iout;
96 if (!extension.empty())
97 fname <<
"." << extension;
100 LHEAscii->writeCompressedContent(outfile,
i);
ExternalLHEAsciiDumper(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< LHEXMLStringProduct > LHEAsciiToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~ExternalLHEAsciiDumper() override
void endRun(edm::Run const &, edm::EventSetup const &) override
edm::InputTag lheProduct_