musrShieldHit.cc

Go to the documentation of this file.
00001 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00002 
00003 #include "musrShieldHit.hh"
00004 #include "G4UnitsTable.hh"
00005 #include "G4VVisManager.hh"
00006 #include "G4Circle.hh"
00007 #include "G4Colour.hh"
00008 #include "G4VisAttributes.hh"
00009 #include <fstream.h>
00010 #include <iostream.h>
00011 #include "G4ios.hh"
00012 #include "G4MagneticField.hh"
00013 #include "G4FieldManager.hh"
00014 #include "G4TransportationManager.hh"
00015 #include <iomanip>
00016 #include "globals.hh"
00017 #include "G4Transform3D.hh"
00018 #include "G4ProcessManager.hh"
00019 #include "G4Track.hh"
00020 #include "G4ThreeVector.hh"
00021 #include "G4Event.hh"
00022 #include "G4EventManager.hh"
00023 #include "G4RunManager.hh"
00024 #include "G4Run.hh"
00025 
00026 G4Allocator<musrShieldHit> musrShieldHitAllocator;
00027 
00028 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00029 
00030 musrShieldHit::musrShieldHit() {}
00031 
00032 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00033 
00034 musrShieldHit::~musrShieldHit() {}
00035 
00036 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00037 
00038 musrShieldHit::musrShieldHit(const musrShieldHit& right)
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 }
00049 
00050 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00051 
00052 const musrShieldHit& musrShieldHit::operator=(const musrShieldHit& right)
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 }
00063 
00064 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00065 
00066 G4int musrShieldHit::operator==(const musrShieldHit& right) const
00067 {
00068   return (this==&right) ? 1 : 0;
00069 }
00070 
00071 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00072 
00073 void musrShieldHit::Draw()
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 }
00087 
00088 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00089 
00090 void musrShieldHit::Print()
00091 {
00092 
00093   G4EventManager* fEventManager = G4EventManager::GetEventManager();
00094   fEventManager->AbortCurrentEvent();
00095 
00096 }
00097 
00098 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00099 

Generated on Mon Mar 27 12:19:54 2006 for MUSR by  doxygen 1.4.6