LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4Event.cc File Reference
#include <boost/python.hpp>
#include "G4Event.hh"

Go to the source code of this file.

Namespaces

 pyG4Event
 

Functions

void export_G4Event ()
 

Function Documentation

void export_G4Event ( )

Definition at line 50 of file pyG4Event.cc.

References Draw(), and pyG4Element::Print().

Referenced by BOOST_PYTHON_MODULE().

51 {
52  class_<G4Event, G4Event*, boost::noncopyable>("G4Event", "event class")
53  .def(init<G4int>())
54  // ---
55  .def("Print", &G4Event::Print)
56  .def("Draw", &G4Event::Draw)
57  .def("SetEventID", &G4Event::SetEventID)
58  .def("GetEventID", &G4Event::GetEventID)
59  .def("SetEventAborted", &G4Event::SetEventAborted)
60  .def("IsAborted", &G4Event::IsAborted)
61  // ---
62  .def("AddPrimaryVertex", &G4Event::AddPrimaryVertex)
63  .def("GetNumberOfPrimaryVertex", &G4Event::GetNumberOfPrimaryVertex)
64  .def("GetPrimaryVertex", &G4Event::GetPrimaryVertex,
65  f_GetPrimaryVertex()[return_internal_reference<>()])
66  // ---
67  .def("GetTrajectoryContainer", &G4Event::GetTrajectoryContainer,
68  return_internal_reference<>())
69  .def("SetUserInformation", &G4Event::SetUserInformation)
70  .def("GetUserInformation", &G4Event::GetUserInformation,
71  return_internal_reference<>())
72  ;
73 
74  // reduced functionality...
75  //.def("SetHCofThisEvent", &G4Event::SetHCofThisEvent)
76  //.def("GetHCofThisEvent", &G4Event::SetHCofThisEvent,
77  // return_internal_reference<>())
78  //.def("SetDCofThisEvent", &G4Event::SetHCofThisEvent)
79  //.def("GetDCofThisEvent", &G4Event::SetHCofThisEvent,
80  // return_internal_reference<>())
81 
82 }
hist1 Draw("HIST")
void Print(G4Element &ele)
Definition: pyG4Element.cc:55