#include <VisExamples/VisG4ExN02/src/VisG4ExampleHit.h>
Public Member Functions | |
int | chamber (void) const |
virtual void | Draw (void) |
double | energy (void) const |
void | operator delete (void *p) |
void * | operator new (size_t sz) |
G4ThreeVector | position (void) const |
virtual void | Print (void) |
void | setChamber (int n) |
void | setEnergy (double energy) |
void | setPosition (G4ThreeVector pos) |
void | setTrackId (int n) |
int | trackId (void) const |
VisG4ExampleHit (void) | |
Private Attributes | |
int | m_chamber |
double | m_energy |
G4ThreeVector | m_position |
int | m_trackId |
Definition at line 19 of file VisG4ExampleHit.h.
VisG4ExampleHit::VisG4ExampleHit | ( | void | ) |
Definition at line 24 of file VisG4ExampleHit.cc.
00025 : m_trackId (-1), 00026 m_chamber (-1), 00027 m_energy (0.), 00028 m_position (G4ThreeVector ()) 00029 {}
Definition at line 32 of file VisG4ExampleHit.cc.
References m_position.
00033 { 00034 if (G4VVisManager *pVVisManager = G4VVisManager::GetConcreteInstance ()) 00035 { 00036 G4Circle circle (m_position); 00037 circle.SetScreenSize (0.04); 00038 circle.SetFillStyle (G4Circle::filled); 00039 circle.SetVisAttributes (G4VisAttributes (G4Colour (1.,0.,0.))); 00040 00041 pVVisManager->Draw (circle); 00042 } 00043 }
double VisG4ExampleHit::energy | ( | void | ) | const [inline] |
Definition at line 104 of file VisG4ExampleHit.h.
References VisG4ExampleHitAllocator.
00105 { VisG4ExampleHitAllocator.FreeSingle ((VisG4ExampleHit *) hit); }
void * VisG4ExampleHit::operator new | ( | size_t | sz | ) | [inline] |
Definition at line 100 of file VisG4ExampleHit.h.
References VisG4ExampleHitAllocator.
00101 { return VisG4ExampleHitAllocator.MallocSingle (); }
G4ThreeVector VisG4ExampleHit::position | ( | void | ) | const [inline] |
Definition at line 90 of file VisG4ExampleHit.h.
References m_position.
00091 { return m_position; }
Definition at line 46 of file VisG4ExampleHit.cc.
References GenMuonPlsPt100GeV_cfg::cout, m_chamber, m_energy, m_position, and m_trackId.
00047 { 00048 std::cout << " track id: " << m_trackId 00049 << " chamber: " << m_chamber 00050 << " energy: " << m_energy 00051 << " position: " << m_position; 00052 }
Definition at line 76 of file VisG4ExampleHit.h.
References m_chamber.
Referenced by VisG4ExampleSD::ProcessHits().
void VisG4ExampleHit::setEnergy | ( | double | energy | ) | [inline] |
Definition at line 85 of file VisG4ExampleHit.h.
References m_energy.
Referenced by VisG4ExampleSD::ProcessHits().
void VisG4ExampleHit::setPosition | ( | G4ThreeVector | pos | ) | [inline] |
Definition at line 94 of file VisG4ExampleHit.h.
References m_position.
Referenced by VisG4ExampleSD::ProcessHits().
00095 { m_position = pos; }
Definition at line 67 of file VisG4ExampleHit.h.
References m_trackId.
Referenced by VisG4ExampleSD::ProcessHits().
int VisG4ExampleHit::m_chamber [private] |
Definition at line 47 of file VisG4ExampleHit.h.
Referenced by chamber(), Print(), and setChamber().
double VisG4ExampleHit::m_energy [private] |
G4ThreeVector VisG4ExampleHit::m_position [private] |
Definition at line 49 of file VisG4ExampleHit.h.
Referenced by Draw(), position(), Print(), and setPosition().
int VisG4ExampleHit::m_trackId [private] |
Definition at line 46 of file VisG4ExampleHit.h.
Referenced by Print(), setTrackId(), and trackId().