136 lines
4.7 KiB
C++
136 lines
4.7 KiB
C++
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// $Id: GammaRayTelIonPhysics.cc,v 1.4 2006/06/29 15:56:48 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-09-01 $
|
|
//
|
|
//
|
|
|
|
#include "GammaRayTelIonPhysics.hh"
|
|
|
|
#include "globals.hh"
|
|
#include "G4ios.hh"
|
|
#include <iomanip>
|
|
|
|
|
|
GammaRayTelIonPhysics::GammaRayTelIonPhysics(const G4String& name)
|
|
: G4VPhysicsConstructor(name)
|
|
{
|
|
}
|
|
|
|
GammaRayTelIonPhysics::~GammaRayTelIonPhysics()
|
|
{
|
|
}
|
|
|
|
void GammaRayTelIonPhysics::ConstructParticle()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
#include "G4ProcessManager.hh"
|
|
|
|
|
|
void GammaRayTelIonPhysics::ConstructProcess()
|
|
{
|
|
G4ProcessManager * pManager = 0;
|
|
|
|
// Elastic Process
|
|
theElasticModel = new G4LElastic();
|
|
theElasticProcess.RegisterMe(theElasticModel);
|
|
|
|
// Generic Ion
|
|
pManager = G4GenericIon::GenericIon()->GetProcessManager();
|
|
// add process
|
|
pManager->AddDiscreteProcess(&theElasticProcess);
|
|
|
|
pManager->AddProcess(&fIonIonisation, ordInActive, 2, 2);
|
|
|
|
pManager->AddProcess(&fIonMultipleScattering);
|
|
pManager->SetProcessOrdering(&fIonMultipleScattering, idxAlongStep, 1);
|
|
pManager->SetProcessOrdering(&fIonMultipleScattering, idxPostStep, 1);
|
|
|
|
// Deuteron
|
|
pManager = G4Deuteron::Deuteron()->GetProcessManager();
|
|
// add process
|
|
pManager->AddDiscreteProcess(&theElasticProcess);
|
|
|
|
fDeuteronModel = new G4LEDeuteronInelastic();
|
|
fDeuteronProcess.RegisterMe(fDeuteronModel);
|
|
pManager->AddDiscreteProcess(&fDeuteronProcess);
|
|
|
|
pManager->AddProcess(&fDeuteronIonisation, ordInActive, 2, 2);
|
|
|
|
pManager->AddProcess(&fDeuteronMultipleScattering);
|
|
pManager->SetProcessOrdering(&fDeuteronMultipleScattering, idxAlongStep, 1);
|
|
pManager->SetProcessOrdering(&fDeuteronMultipleScattering, idxPostStep, 1);
|
|
|
|
// Triton
|
|
pManager = G4Triton::Triton()->GetProcessManager();
|
|
// add process
|
|
pManager->AddDiscreteProcess(&theElasticProcess);
|
|
|
|
fTritonModel = new G4LETritonInelastic();
|
|
fTritonProcess.RegisterMe(fTritonModel);
|
|
pManager->AddDiscreteProcess(&fTritonProcess);
|
|
|
|
pManager->AddProcess(&fTritonIonisation, ordInActive, 2, 2);
|
|
|
|
pManager->AddProcess(&fTritonMultipleScattering);
|
|
pManager->SetProcessOrdering(&fTritonMultipleScattering, idxAlongStep, 1);
|
|
pManager->SetProcessOrdering(&fTritonMultipleScattering, idxPostStep, 1);
|
|
|
|
// Alpha
|
|
pManager = G4Alpha::Alpha()->GetProcessManager();
|
|
// add process
|
|
pManager->AddDiscreteProcess(&theElasticProcess);
|
|
|
|
fAlphaModel = new G4LEAlphaInelastic();
|
|
fAlphaProcess.RegisterMe(fAlphaModel);
|
|
pManager->AddDiscreteProcess(&fAlphaProcess);
|
|
|
|
pManager->AddProcess(&fAlphaIonisation, ordInActive, 2, 2);
|
|
|
|
pManager->AddProcess(&fAlphaMultipleScattering);
|
|
pManager->SetProcessOrdering(&fAlphaMultipleScattering, idxAlongStep, 1);
|
|
pManager->SetProcessOrdering(&fAlphaMultipleScattering, idxPostStep, 1);
|
|
|
|
// He3
|
|
pManager = G4He3::He3()->GetProcessManager();
|
|
// add process
|
|
pManager->AddDiscreteProcess(&theElasticProcess);
|
|
|
|
pManager->AddProcess(&fHe3Ionisation, ordInActive, 2, 2);
|
|
|
|
pManager->AddProcess(&fHe3MultipleScattering);
|
|
pManager->SetProcessOrdering(&fHe3MultipleScattering, idxAlongStep, 1);
|
|
pManager->SetProcessOrdering(&fHe3MultipleScattering, idxPostStep, 1);
|
|
|
|
}
|
|
|
|
|
|
|