Public Member Functions | |
ExternalLHEAsciiDumper (const edm::ParameterSet &) | |
~ExternalLHEAsciiDumper () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | endJob () |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) |
Private Attributes | |
std::string | lheFileName_ |
edm::InputTag | lheProduct_ |
Definition at line 30 of file ExternalLHEAsciiDumper.cc.
ExternalLHEAsciiDumper::ExternalLHEAsciiDumper | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 48 of file ExternalLHEAsciiDumper.cc.
: lheProduct_( ps.getParameter<edm::InputTag>("lheProduct") ), lheFileName_( ps.getParameter<std::string>("lheFileName") ) { return; }
ExternalLHEAsciiDumper::~ExternalLHEAsciiDumper | ( | ) |
Definition at line 57 of file ExternalLHEAsciiDumper.cc.
{ }
void ExternalLHEAsciiDumper::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [private, virtual] |
void ExternalLHEAsciiDumper::endJob | ( | void | ) | [private, virtual] |
void ExternalLHEAsciiDumper::endRun | ( | edm::Run const & | iRun, |
edm::EventSetup const & | |||
) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 69 of file ExternalLHEAsciiDumper.cc.
References edm::Run::getByLabel(), lheFileName_, lheProduct_, dbtoconf::out, and EdgesToViz::outfile.
{ edm::Handle< std::string > LHEAscii; iRun.getByLabel(lheProduct_,LHEAscii); const char * theName(lheFileName_.c_str()); std::ofstream outfile; outfile.open (theName, std::ofstream::out | std::ofstream::app); outfile << (*LHEAscii); outfile.close(); }
std::string ExternalLHEAsciiDumper::lheFileName_ [private] |
Definition at line 42 of file ExternalLHEAsciiDumper.cc.
Referenced by endRun().
Definition at line 41 of file ExternalLHEAsciiDumper.cc.
Referenced by endRun().