musrShieldHit Class Reference

#include <musrShieldHit.hh>

List of all members.

Public Member Functions

 musrShieldHit ()
 ~musrShieldHit ()
 musrShieldHit (const musrShieldHit &)
const musrShieldHitoperator= (const musrShieldHit &)
G4int operator== (const musrShieldHit &) const
void * operator new (size_t)
void operator delete (void *)
void Draw ()
void Print ()
void SetTrackID (G4int track)
void SetParticleName (G4String name)
void SetEdep (G4double de)
void SetPos (G4ThreeVector xyz)
void SetPol (G4ThreeVector ijk)
void SetLogVolName (G4String logivol)
G4int GetTrackID ()
G4String GetParticleName ()
G4double GetEdep ()
G4ThreeVector GetPos ()
G4ThreeVector GetPol ()
G4String GetLogVolName ()

Public Attributes

G4double point [4]
G4double B [6]
const G4Field * mfield


Detailed Description

Definition at line 16 of file musrShieldHit.hh.


Constructor & Destructor Documentation

musrShieldHit::musrShieldHit  ) 
 

Definition at line 30 of file musrShieldHit.cc.

00030 {}

musrShieldHit::~musrShieldHit  ) 
 

Definition at line 34 of file musrShieldHit.cc.

00034 {}

musrShieldHit::musrShieldHit const musrShieldHit  ) 
 

Definition at line 38 of file musrShieldHit.cc.

References edep, logicalvolume, particle_name, pol, pos, and trackID.

00039   : G4VHit()
00040 {
00041 
00042   trackID   = right.trackID;
00043   particle_name = right.particle_name;
00044   edep      = right.edep;
00045   pos       = right.pos;
00046   pol       = right.pol;
00047   logicalvolume = right.logicalvolume;
00048 }


Member Function Documentation

void musrShieldHit::Draw  ) 
 

Definition at line 73 of file musrShieldHit.cc.

Referenced by musrShieldSD::ProcessHits().

00074 {
00075   G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
00076   if(pVVisManager)
00077   {
00078     G4Circle circle(pos);
00079     circle.SetScreenSize(0.04);
00080     circle.SetFillStyle(G4Circle::filled);
00081     G4Colour colour(1.,0.,0.);
00082     G4VisAttributes attribs(colour);
00083     circle.SetVisAttributes(attribs);
00084     pVVisManager->Draw(circle);
00085   }
00086 }

G4double musrShieldHit::GetEdep  )  [inline]
 

Definition at line 45 of file musrShieldHit.hh.

00045 { return edep; };      

G4String musrShieldHit::GetLogVolName  )  [inline]
 

Definition at line 48 of file musrShieldHit.hh.

00048 { return logicalvolume; };

G4String musrShieldHit::GetParticleName  )  [inline]
 

Definition at line 44 of file musrShieldHit.hh.

00044 {return particle_name; };

G4ThreeVector musrShieldHit::GetPol  )  [inline]
 

Definition at line 47 of file musrShieldHit.hh.

00047 { return pol; };

G4ThreeVector musrShieldHit::GetPos  )  [inline]
 

Definition at line 46 of file musrShieldHit.hh.

00046 { return pos; };

G4int musrShieldHit::GetTrackID  )  [inline]
 

Definition at line 43 of file musrShieldHit.hh.

00043 { return trackID; };

void musrShieldHit::operator delete void *   )  [inline]
 

Definition at line 85 of file musrShieldHit.hh.

References musrShieldHitAllocator.

00086 {
00087   musrShieldHitAllocator.FreeSingle((musrShieldHit*) aHit);
00088 }

void * musrShieldHit::operator new size_t   )  [inline]
 

Definition at line 76 of file musrShieldHit.hh.

References musrShieldHitAllocator.

00077 {
00078   void *aHit;
00079   aHit = (void *) musrShieldHitAllocator.MallocSingle();
00080   return aHit;
00081 }

const musrShieldHit & musrShieldHit::operator= const musrShieldHit  ) 
 

Definition at line 52 of file musrShieldHit.cc.

References edep, logicalvolume, particle_name, pol, pos, and trackID.

00053 {
00054 
00055   trackID   = right.trackID;
00056   particle_name = right.particle_name;
00057   edep      = right.edep;
00058   pos       = right.pos;
00059   pol       = right.pol;
00060   logicalvolume=right.logicalvolume;
00061   return *this;
00062 }

G4int musrShieldHit::operator== const musrShieldHit  )  const
 

Definition at line 66 of file musrShieldHit.cc.

00067 {
00068   return (this==&right) ? 1 : 0;
00069 }

void musrShieldHit::Print  ) 
 

Definition at line 90 of file musrShieldHit.cc.

Referenced by musrShieldSD::ProcessHits().

00091 {
00092 
00093   G4EventManager* fEventManager = G4EventManager::GetEventManager();
00094   fEventManager->AbortCurrentEvent();
00095 
00096 }

void musrShieldHit::SetEdep G4double  de  )  [inline]
 

Definition at line 37 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00037 { edep = de; };

void musrShieldHit::SetLogVolName G4String  logivol  )  [inline]
 

Definition at line 40 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00040 {logicalvolume = logivol;};

void musrShieldHit::SetParticleName G4String  name  )  [inline]
 

Definition at line 36 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00036 {particle_name = name; };

void musrShieldHit::SetPol G4ThreeVector  ijk  )  [inline]
 

Definition at line 39 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00039 {pol = ijk;};

void musrShieldHit::SetPos G4ThreeVector  xyz  )  [inline]
 

Definition at line 38 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00038 { pos = xyz; };

void musrShieldHit::SetTrackID G4int  track  )  [inline]
 

Definition at line 35 of file musrShieldHit.hh.

Referenced by musrShieldSD::ProcessHits().

00035 { trackID = track; };


Member Data Documentation

G4double musrShieldHit::B[6]
 

Definition at line 50 of file musrShieldHit.hh.

const G4Field* musrShieldHit::mfield
 

Definition at line 51 of file musrShieldHit.hh.

G4double musrShieldHit::point[4]
 

Definition at line 48 of file musrShieldHit.hh.


The documentation for this class was generated from the following files:
Generated on Mon Mar 27 12:19:54 2006 for MUSR by  doxygen 1.4.6