CMS 3D CMS Logo

VisG4ExampleHit Class Reference

#include <VisExamples/VisG4ExN02/src/VisG4ExampleHit.h>

List of all members.

Public Member Functions

int chamber (void) const
virtual void Draw (void)
double energy (void) const
void operator delete (void *p)
voidoperator 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


Detailed Description

Definition at line 19 of file VisG4ExampleHit.h.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

int VisG4ExampleHit::chamber ( void   )  const [inline]

Definition at line 72 of file VisG4ExampleHit.h.

References m_chamber.

00073 { return m_chamber; }

void VisG4ExampleHit::Draw ( void   )  [virtual]

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 81 of file VisG4ExampleHit.h.

References m_energy.

00082 { return m_energy; }

void VisG4ExampleHit::operator delete ( void p  )  [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; }

void VisG4ExampleHit::Print ( void   )  [virtual]

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 }

void VisG4ExampleHit::setChamber ( int  n  )  [inline]

Definition at line 76 of file VisG4ExampleHit.h.

References m_chamber.

Referenced by VisG4ExampleSD::ProcessHits().

00077 { m_chamber = n; }

void VisG4ExampleHit::setEnergy ( double  energy  )  [inline]

Definition at line 85 of file VisG4ExampleHit.h.

References m_energy.

Referenced by VisG4ExampleSD::ProcessHits().

00086 { m_energy = energy; }

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; }

void VisG4ExampleHit::setTrackId ( int  n  )  [inline]

Definition at line 67 of file VisG4ExampleHit.h.

References m_trackId.

Referenced by VisG4ExampleSD::ProcessHits().

00068 { m_trackId = n; }

int VisG4ExampleHit::trackId ( void   )  const [inline]

Definition at line 63 of file VisG4ExampleHit.h.

References m_trackId.

00064 { return m_trackId; }


Member Data Documentation

int VisG4ExampleHit::m_chamber [private]

Definition at line 47 of file VisG4ExampleHit.h.

Referenced by chamber(), Print(), and setChamber().

double VisG4ExampleHit::m_energy [private]

Definition at line 48 of file VisG4ExampleHit.h.

Referenced by energy(), Print(), and setEnergy().

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:24 2009 for CMSSW by  doxygen 1.5.4