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

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/analysis/A01/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/analysis/A01/src/A01DetectorConstruction.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01DetectorConstruction.cc,v 1.9 2006/06/29 16:32:22 gunter Exp $
     26// $Id: A01DetectorConstruction.cc,v 1.10 2009/11/21 00:22:55 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    3232#include "G4FieldManager.hh"
    3333#include "G4TransportationManager.hh"
     34#include "G4Mag_UsualEqRhs.hh"
    3435
    3536#include "G4Material.hh"
    3637#include "G4Element.hh"
    3738#include "G4MaterialTable.hh"
     39#include "G4NistManager.hh"
    3840
    3941#include "G4VSolid.hh"
     
    7678  messenger = new A01DetectorConstMessenger(this);
    7779  magneticField = new A01MagneticField();
     80  fieldMgr = new G4FieldManager();
    7881  armRotation = new G4RotationMatrix();
    7982  armRotation->rotateY(armAngle);
     
    8487  delete armRotation;
    8588  delete magneticField;
     89  delete fieldMgr;
    8690  delete messenger;
    8791
     
    111115  G4VSensitiveDetector* HadCalorimeter;
    112116//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    113 
    114117  ConstructMaterials();
    115118
    116   // Magnetic field ----------------------------------------------------------
     119  // Local Magnetic Field
    117120  static G4bool fieldIsInitialized = false;
     121
    118122  if(!fieldIsInitialized)
    119123  {
    120     G4FieldManager* fieldMgr
    121       = G4TransportationManager::GetTransportationManager()->GetFieldManager();
    122124    fieldMgr->SetDetectorField(magneticField);
    123125    fieldMgr->CreateChordFinder(magneticField);
     
    133135    = new G4PVPlacement(0,G4ThreeVector(),worldLogical,"worldPhysical",0,0,0);
    134136
    135   // magnetic field region
     137  // Tube with Local Magnetic field
     138   
    136139  G4VSolid* magneticSolid = new G4Tubs("magneticTubs",0.,1.*m,1.*m,0.,360.*deg);
    137   G4LogicalVolume* magneticLogical
    138     = new G4LogicalVolume(magneticSolid,air,"magneticLogical",0,0,0);
     140  G4NistManager* man = G4NistManager::Instance();
     141  G4Material* G4_Galactic = man->FindOrBuildMaterial("G4_Galactic");
     142 
     143   G4LogicalVolume* magneticLogical
     144    = new G4LogicalVolume(magneticSolid,G4_Galactic,"magneticLogical",fieldMgr,0,0);
     145  //                                                                  ********
     146 
     147  // placement of Tube
     148 
    139149  G4RotationMatrix* fieldRot = new G4RotationMatrix();
    140150  fieldRot->rotateX(90.*deg);
  • trunk/examples/extended/analysis/A01/src/A01EMPhysics.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01EMPhysics.cc,v 1.8 2006/06/29 16:32:30 gunter Exp $
     26// $Id: A01EMPhysics.cc,v 1.9 2009/11/21 01:00:19 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    7373   //Electorn
    7474   pManager = G4Electron::Electron()->GetProcessManager();
    75    G4VProcess* theeminusMultipleScattering = new G4MultipleScattering();
     75   G4VProcess* theeminusMultipleScattering = new G4eMultipleScattering();
    7676   G4VProcess* theeminusIonisation         = new G4eIonisation();
    7777   G4VProcess* theeminusBremsstrahlung     = new G4eBremsstrahlung();
     
    9494   //Positron
    9595   pManager = G4Positron::Positron()->GetProcessManager();
    96    G4VProcess* theeplusMultipleScattering = new G4MultipleScattering();
     96   G4VProcess* theeplusMultipleScattering = new G4eMultipleScattering();
    9797   G4VProcess* theeplusIonisation         = new G4eIonisation();
    9898   G4VProcess* theeplusBremsstrahlung     = new G4eBremsstrahlung();
  • trunk/examples/extended/analysis/A01/src/A01HadronPhysics.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01HadronPhysics.cc,v 1.8 2006/06/29 16:32:48 gunter Exp $
     26// $Id: A01HadronPhysics.cc,v 1.9 2009/11/21 01:00:19 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    7474   pManager->AddDiscreteProcess(thePionPlusInelasticProcess);
    7575
    76    G4VProcess* theppMultipleScattering = new G4MultipleScattering();
     76   G4VProcess* theppMultipleScattering = new G4hMultipleScattering();
    7777   G4VProcess* theppIonisation        = new G4hIonisation();
    7878   //
     
    107107   pManager->AddDiscreteProcess(thePionMinusInelasticProcess);
    108108
    109    G4VProcess* thepmMultipleScattering = new G4MultipleScattering();
     109   G4VProcess* thepmMultipleScattering = new G4hMultipleScattering();
    110110   G4VProcess* thepmIonisation        = new G4hIonisation();
    111111   //
     
    141141   pManager->AddDiscreteProcess(theKaonPlusInelasticProcess);
    142142
    143    G4VProcess* thekpMultipleScattering = new G4MultipleScattering();
     143   G4VProcess* thekpMultipleScattering = new G4hMultipleScattering();
    144144   G4VProcess* thekpIonisation        = new G4hIonisation();
    145145   //
     
    176176   pManager->AddDiscreteProcess(theKaonMinusInelasticProcess);
    177177
    178    G4VProcess* thekmMultipleScattering = new G4MultipleScattering();
     178   G4VProcess* thekmMultipleScattering = new G4hMultipleScattering();
    179179   G4VProcess* thekmIonisation        = new G4hIonisation();
    180180
     
    248248   pManager->AddDiscreteProcess(theProtonInelasticProcess);
    249249
    250    G4VProcess* thepMultipleScattering = new G4MultipleScattering();
     250   G4VProcess* thepMultipleScattering = new G4hMultipleScattering();
    251251   G4VProcess* thepIonisation        = new G4hIonisation();
    252252
     
    286286   pManager->AddRestProcess(theAntiProtonAnnihilation);
    287287
    288    G4VProcess* theapMultipleScattering = new G4MultipleScattering();
     288   G4VProcess* theapMultipleScattering = new G4hMultipleScattering();
    289289   G4VProcess* theapIonisation        = new G4hIonisation();
    290290
     
    417417   pManager->AddDiscreteProcess(theSigmaPlusInelasticProcess);
    418418
    419    G4VProcess* thespMultipleScattering = new G4MultipleScattering();
     419   G4VProcess* thespMultipleScattering = new G4hMultipleScattering();
    420420   G4VProcess* thespIonisation        = new G4hIonisation();
    421421
     
    451451   pManager->AddDiscreteProcess(theAntiSigmaPlusInelasticProcess);
    452452
    453    G4VProcess* theaspMultipleScattering = new G4MultipleScattering();
     453   G4VProcess* theaspMultipleScattering = new G4hMultipleScattering();
    454454   G4VProcess* theaspIonisation        = new G4hIonisation();
    455455
     
    485485   pManager->AddDiscreteProcess(theSigmaMinusInelasticProcess);
    486486
    487    G4VProcess* thesmMultipleScattering = new G4MultipleScattering();
     487   G4VProcess* thesmMultipleScattering = new G4hMultipleScattering();
    488488   G4VProcess* thesmIonisation        = new G4hIonisation();
    489489
     
    519519   pManager->AddDiscreteProcess(theAntiSigmaMinusInelasticProcess);
    520520
    521    G4VProcess* theasmMultipleScattering = new G4MultipleScattering();
     521   G4VProcess* theasmMultipleScattering = new G4hMultipleScattering();
    522522   G4VProcess* theasmIonisation        = new G4hIonisation();
    523523
     
    593593   pManager->AddDiscreteProcess(theXiMinusInelasticProcess);
    594594
    595    G4VProcess* thexmMultipleScattering = new G4MultipleScattering();
     595   G4VProcess* thexmMultipleScattering = new G4hMultipleScattering();
    596596   G4VProcess* thexmIonisation        = new G4hIonisation();
    597597
     
    627627   pManager->AddDiscreteProcess(theAntiXiMinusInelasticProcess);
    628628
    629    G4VProcess* theaxmMultipleScattering = new G4MultipleScattering();
     629   G4VProcess* theaxmMultipleScattering = new G4hMultipleScattering();
    630630   G4VProcess* theaxmIonisation        = new G4hIonisation();
    631631
     
    661661   pManager->AddDiscreteProcess(theOmegaMinusInelasticProcess);
    662662
    663    G4VProcess* theomMultipleScattering = new G4MultipleScattering();
     663   G4VProcess* theomMultipleScattering = new G4hMultipleScattering();
    664664   G4VProcess* theomIonisation        = new G4hIonisation();
    665665
     
    695695   pManager->AddDiscreteProcess(theAntiOmegaMinusInelasticProcess);
    696696
    697    G4VProcess* theaomMultipleScattering = new G4MultipleScattering();
     697   G4VProcess* theaomMultipleScattering = new G4hMultipleScattering();
    698698   G4VProcess* theaomIonisation        = new G4hIonisation();
    699699
  • trunk/examples/extended/analysis/A01/src/A01IonPhysics.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01IonPhysics.cc,v 1.9 2006/06/29 16:32:55 gunter Exp $
     26// $Id: A01IonPhysics.cc,v 1.10 2009/11/21 01:00:19 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    6262
    6363   // add process
    64    G4VProcess* thegionMultipleScattering = new G4MultipleScattering();
     64   G4VProcess* thegionMultipleScattering = new G4hMultipleScattering();
    6565   //
    6666   // G4hIonization may be not able to use for Geanric Ion in future
     
    100100   pManager->AddDiscreteProcess(theDeuteronInelasticProcess);
    101101
    102    G4VProcess* thedueMultipleScattering = new G4MultipleScattering();
     102   G4VProcess* thedueMultipleScattering = new G4hMultipleScattering();
    103103   G4VProcess* thedueIonisation        = new G4hIonisation();
    104104   //
     
    132132   pManager->AddDiscreteProcess(theTritonInelasticProcess);
    133133
    134    G4VProcess* thetriMultipleScattering = new G4MultipleScattering();
     134   G4VProcess* thetriMultipleScattering = new G4hMultipleScattering();
    135135   G4VProcess* thetriIonisation        = new G4hIonisation();
    136136   //
     
    164164   pManager->AddDiscreteProcess(theAlphaInelasticProcess);
    165165
    166    G4VProcess* thealpMultipleScattering = new G4MultipleScattering();
     166   G4VProcess* thealpMultipleScattering = new G4hMultipleScattering();
    167167   G4VProcess* thealpIonisation        = new G4hIonisation();
    168168   //
     
    189189   pManager->AddDiscreteProcess(thehe3ElasticProcess);
    190190
    191    G4VProcess* thehe3MultipleScattering = new G4MultipleScattering();
     191   G4VProcess* thehe3MultipleScattering = new G4hMultipleScattering();
    192192   G4VProcess* thehe3Ionisation        = new G4hIonisation();
    193193   //
  • trunk/examples/extended/analysis/A01/src/A01MagneticField.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01MagneticField.cc,v 1.6 2006/06/29 16:32:57 gunter Exp $
     26// $Id: A01MagneticField.cc,v 1.7 2009/11/21 00:22:55 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    3030#include "A01MagneticField.hh"
    3131#include "A01MagneticFieldMessenger.hh"
     32#include "globals.hh"
    3233
    3334A01MagneticField::A01MagneticField()
     
    3536  messenger = new A01MagneticFieldMessenger(this);
    3637  By = 1.0*tesla;
    37   rmax_sq = sqr(1.*m);
    38   ymax = 100.*cm;
     38 
    3939}
    4040
     
    4242{ delete messenger; }
    4343
    44 void A01MagneticField::GetFieldValue(const double Point[3],double *Bfield) const
     44void A01MagneticField::GetFieldValue(const G4double [4],double *Bfield) const
    4545{
    4646  Bfield[0] = 0.;
    4747  Bfield[2] = 0.;
    48   if(std::abs(Point[1])<ymax && (sqr(Point[0])+sqr(Point[2]))<rmax_sq)
    49   { Bfield[1] = By; }
    50   else
    51   { Bfield[1] = 0.; }
     48  Bfield[1] = By;
     49
    5250}
    5351
  • trunk/examples/extended/analysis/A01/src/A01MuonPhysics.cc

    r807 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: A01MuonPhysics.cc,v 1.8 2006/06/29 16:33:01 gunter Exp $
     26// $Id: A01MuonPhysics.cc,v 1.10 2009/12/02 22:45:09 perl Exp $
    2727// --------------------------------------------------------------
    2828//
     
    6262   //Muon+
    6363   pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
    64    G4VProcess* thempMultipleScattering = new G4MultipleScattering();
     64   G4VProcess* thempMultipleScattering = new G4MuMultipleScattering();
    6565   G4VProcess* thempBremsstrahlung     = new G4MuBremsstrahlung();
    6666   G4VProcess* thempPairProduction     = new G4MuPairProduction();
     
    8787   //Muon-
    8888   pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
    89    G4VProcess* themmMultipleScattering = new G4MultipleScattering();
     89   G4VProcess* themmMultipleScattering = new G4MuMultipleScattering();
    9090   G4VProcess* themmBremsstrahlung     = new G4MuBremsstrahlung();
    9191   G4VProcess* themmPairProduction     = new G4MuPairProduction();
     
    111111   // Tau+ Physics
    112112   pManager = G4TauPlus::TauPlus()->GetProcessManager();
    113    G4VProcess* thetpMultipleScattering = new G4MultipleScattering();
     113   G4VProcess* thetpMultipleScattering = new G4MuMultipleScattering();
    114114   G4VProcess* thetpIonisation        = new G4hIonisation();
    115115   //
     
    128128   // Tau- Physics
    129129   pManager = G4TauMinus::TauMinus()->GetProcessManager();
    130    G4VProcess* thetmMultipleScattering = new G4MultipleScattering();
     130   G4VProcess* thetmMultipleScattering = new G4MuMultipleScattering();
    131131   G4VProcess* thetmIonisation        = new G4hIonisation();
    132132   //
Note: See TracChangeset for help on using the changeset viewer.