Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Event.cc File Reference
#include <boost/python.hpp>
#include "G4Event.hh"
Include dependency graph for pyG4Event.cc:

Go to the source code of this file.

Namespaces

 pyG4Event
 

Functions

void export_G4Event ()
 

Function Documentation

void export_G4Event ( )

Definition at line 51 of file pyG4Event.cc.

52 {
53  class_<G4Event, G4Event*, boost::noncopyable>("G4Event", "event class")
54  .def(init<G4int>())
55  // ---
56  .def("Print", &G4Event::Print)
57  .def("Draw", &G4Event::Draw)
58  .def("SetEventID", &G4Event::SetEventID)
59  .def("GetEventID", &G4Event::GetEventID)
60  .def("SetEventAborted", &G4Event::SetEventAborted)
61  .def("IsAborted", &G4Event::IsAborted)
62  // ---
63  .def("AddPrimaryVertex", &G4Event::AddPrimaryVertex)
64  .def("GetNumberOfPrimaryVertex", &G4Event::GetNumberOfPrimaryVertex)
65  .def("GetPrimaryVertex", &G4Event::GetPrimaryVertex,
66  f_GetPrimaryVertex()[return_internal_reference<>()])
67  // ---
68  .def("GetTrajectoryContainer", &G4Event::GetTrajectoryContainer,
69  return_internal_reference<>())
70  .def("SetUserInformation", &G4Event::SetUserInformation)
71  .def("GetUserInformation", &G4Event::GetUserInformation,
72  return_internal_reference<>())
73  ;
74 
75  // reduced functionality...
76  //.def("SetHCofThisEvent", &G4Event::SetHCofThisEvent)
77  //.def("GetHCofThisEvent", &G4Event::SetHCofThisEvent,
78  // return_internal_reference<>())
79  //.def("SetDCofThisEvent", &G4Event::SetHCofThisEvent)
80  //.def("GetDCofThisEvent", &G4Event::SetHCofThisEvent,
81  // return_internal_reference<>())
82 
83 }
G4VUserEventInformation * GetUserInformation() const
Definition: G4Event.hh:199
G4int GetNumberOfPrimaryVertex() const
Definition: G4Event.hh:164
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
Definition: G4Event.hh:154
void Print() const
Definition: G4Event.cc:97
G4TrajectoryContainer * GetTrajectoryContainer() const
Definition: G4Event.hh:189
G4int GetEventID() const
Definition: G4Event.hh:151
void SetUserInformation(G4VUserEventInformation *anInfo)
Definition: G4Event.hh:198
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
Definition: G4Event.hh:167
void SetEventAborted()
Definition: G4Event.hh:123
void Draw() const
Definition: G4Event.cc:102
void SetEventID(G4int i)
Definition: G4Event.hh:115
G4bool IsAborted() const
Definition: G4Event.hh:195

Here is the call graph for this function:

Here is the caller graph for this function: