13 #include <boost/algorithm/string.hpp>
53 lheProduct_( ps.getParameter<edm::InputTag>(
"lheProduct") ),
54 lheFileName_( ps.getParameter<std::string>(
"lheFileName") )
78 const std::vector<std::string>& lheOutputs = LHEAscii->getStrings();
82 std::string extension = lastdot != std::string::npos ?
lheFileName_.substr(lastdot+1, std::string::npos) :
"";
84 for (
unsigned int i = 0;
i < lheOutputs.size(); ++
i){
89 std::stringstream
fname;
90 fname << basename <<
"_" <<
i ;
92 fname <<
"." << extension;
95 outfile << lheOutputs[
i];
bool getByLabel(std::string const &label, Handle< PROD > &result) const
virtual void endRun(edm::Run const &, edm::EventSetup const &)
ExternalLHEAsciiDumper(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
~ExternalLHEAsciiDumper()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::InputTag lheProduct_