LDMX Software
ldmx::HepMC3GenEvent Class Reference

Public Member Functions

void clear ()
 
void print () const
 
HepMC3::GenEvent getHepMCGenEvent () const
 
std::string getAsString () const
 
 ClassDef (HepMC3GenEvent, 1)
 

Detailed Description

Definition at line 17 of file HepMC3GenEvent.h.

Member Function Documentation

◆ clear()

void ldmx::HepMC3GenEvent::clear ( )

Definition at line 15 of file HepMC3GenEvent.cxx.

15 {
16 this->particles.clear();
17 this->vertices.clear();
18 this->links1.clear();
19 this->links2.clear();
20 this->attribute_id.clear();
21 this->attribute_name.clear();
22 this->attribute_string.clear();
23}

◆ getAsString()

std::string ldmx::HepMC3GenEvent::getAsString ( ) const

Definition at line 37 of file HepMC3GenEvent.cxx.

37 {
38 HepMC3::GenEvent ev;
39 ev.read_data(*this);
40
41 std::stringstream ss;
42 HepMC3::WriterAscii writer(ss);
43
44 writer.write_event(ev);
45 return ss.str();
46}

◆ getHepMCGenEvent()

HepMC3::GenEvent ldmx::HepMC3GenEvent::getHepMCGenEvent ( ) const

Definition at line 31 of file HepMC3GenEvent.cxx.

31 {
32 HepMC3::GenEvent ev;
33 ev.read_data(*this);
34 return ev;
35}

◆ print()

void ldmx::HepMC3GenEvent::print ( ) const

Definition at line 25 of file HepMC3GenEvent.cxx.

25 {
26 HepMC3::GenEvent ev;
27 ev.read_data(*this);
28 HepMC3::Print::line(ev, true); // print attributes
29}

The documentation for this class was generated from the following files: