CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

ExternalLHEAsciiDumper Class Reference

Inheritance diagram for ExternalLHEAsciiDumper:
edm::EDAnalyzer

List of all members.

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_

Detailed Description

Definition at line 30 of file ExternalLHEAsciiDumper.cc.


Constructor & Destructor Documentation

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.

{
}

Member Function Documentation

void ExternalLHEAsciiDumper::analyze ( const edm::Event ,
const edm::EventSetup  
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 62 of file ExternalLHEAsciiDumper.cc.

{
}
void ExternalLHEAsciiDumper::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 82 of file ExternalLHEAsciiDumper.cc.

                                    {
}
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();

}

Member Data Documentation

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().