Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (15 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/medical/GammaTherapy/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/medical/GammaTherapy/src/EventAction.cc

    r807 r1337  
    4141
    4242#include "G4UImanager.hh"
    43 #include "G4TrajectoryContainer.hh"
    44 #include "G4Trajectory.hh"
    45 #include "G4VVisManager.hh"
    4643#include "G4ios.hh"
    4744
     
    118115//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
    119116
    120 void EventAction::EndOfEventAction(const G4Event* evt)
     117void EventAction::EndOfEventAction(const G4Event*)
    121118{
    122119  (Histo::GetPointer())->SaveEvent();
    123   G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
    124 
    125   if(pVVisManager) {
    126     G4TrajectoryContainer* trjc = evt->GetTrajectoryContainer();
    127     G4int n_trajectories = 0;
    128     if (trjc) n_trajectories = trjc->entries();
    129 
    130     for(G4int i=0; i<n_trajectories; i++) {
    131       G4Trajectory* t = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
    132       if (drawFlag == "all") t->DrawTrajectory(1000);
    133       else if ((drawFlag == "charged")&&(t->GetCharge() != 0.))
    134                              t->DrawTrajectory(1000);
    135       else if ((drawFlag == "neutral")&&(t->GetCharge() == 0.))
    136                              t->DrawTrajectory(1000);
    137       else if ((drawFlag == "charged+n")&&((t->GetCharge() != 0.)||
    138                                            (t->GetCharge()==0.&&t->GetParticleName()=="neutron")))
    139                              t->DrawTrajectory(1000);
    140    }
    141   }
    142120
    143121  if(verbose > 0) {
  • trunk/examples/extended/medical/GammaTherapy/src/EventActionMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: EventActionMessenger.cc,v 1.2 2006/06/29 17:27:19 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/medical/GammaTherapy/src/G4StepLimiterBuilder.cc

    r1230 r1337  
    2626//
    2727// $Id: G4StepLimiterBuilder.cc,v 1.3 2006/06/29 17:27:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//---------------------------------------------------------------------------
  • trunk/examples/extended/medical/GammaTherapy/src/G4StepLimiterMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: G4StepLimiterMessenger.cc,v 1.2 2006/06/29 17:27:50 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/medical/GammaTherapy/src/G4StepLimiterPerRegion.cc

    r1230 r1337  
    2525//
    2626// $Id: G4StepLimiterPerRegion.cc,v 1.4 2007/05/16 16:27:53 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/medical/GammaTherapy/src/PhysicsList.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: PhysicsList.cc,v 1.16 2008/06/11 15:17:57 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: PhysicsList.cc,v 1.17 2009/11/21 16:47:07 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//---------------------------------------------------------------------------
     
    4646#include "PhysicsListMessenger.hh"
    4747
    48 #include "ParticlesBuilder.hh"
    4948#include "G4EmStandardPhysics.hh"
    5049#include "G4EmStandardPhysics_option1.hh"
    5150#include "G4EmStandardPhysics_option2.hh"
    5251#include "G4EmStandardPhysics_option3.hh"
    53 #include "PhysListEmLivermore.hh"
    54 #include "PhysListEmPenelope.hh"
     52#include "G4EmLivermorePhysics.hh"
     53#include "G4EmPenelopePhysics.hh"
    5554#include "G4StepLimiterBuilder.hh"
    5655#include "G4DecayPhysics.hh"
     
    6059#include "G4EmExtraPhysics.hh"
    6160#include "G4QStoppingPhysics.hh"
    62 //#include "PhysListEmModelPai.hh"
    6361
    6462#include "G4UnitsTable.hh"
     
    8987
    9088  // Add Physics builders
    91   RegisterPhysics(new ParticlesBuilder());
     89  RegisterPhysics(new G4DecayPhysics());
    9290}
    9391
     
    156154    G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
    157155
    158   } else if (name == "livermore" && !emBuilderIsRegisted) {
    159     RegisterPhysics(new PhysListEmLivermore());
    160     emBuilderIsRegisted = true;
    161     G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
    162 
    163   } else if (name == "penelope" && !emBuilderIsRegisted) {
    164     RegisterPhysics(new PhysListEmPenelope());
    165     emBuilderIsRegisted = true;
    166     G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
    167     /*
    168   } else if (name == "pai" && !emBuilderIsRegisted) {
    169     RegisterPhysics(new PhysListEmModelPai());
    170     emBuilderIsRegisted = true;
    171     G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
    172     */
    173 
    174   } else if (name == "decay" && !decayIsRegisted && emBuilderIsRegisted) {
    175     RegisterPhysics(new G4DecayPhysics());
    176     decayIsRegisted = true;
     156  } else if (name == "emlivermore" && !emBuilderIsRegisted) {
     157    RegisterPhysics(new G4EmLivermorePhysics());
     158    emBuilderIsRegisted = true;
     159    G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
     160
     161  } else if (name == "empenelope" && !emBuilderIsRegisted) {
     162    RegisterPhysics(new G4EmPenelopePhysics());
     163    emBuilderIsRegisted = true;
    177164    G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl;
    178165
  • trunk/examples/extended/medical/GammaTherapy/src/PhysicsListMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsListMessenger.cc,v 1.3 2006/06/29 17:28:04 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset for help on using the changeset viewer.