66 lines
2.6 KiB
C++
66 lines
2.6 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * 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. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
// $Id: RemSimPhotonEPDL.cc,v 1.4 2004/05/22 12:57:07 guatelli Exp $
|
|
// GEANT4 tag $Name: geant4-06-02 $
|
|
//
|
|
// Author:Susanna Guatelli, guatelli@ge.infn.it
|
|
//
|
|
#include "RemSimPhotonEPDL.hh"
|
|
|
|
#include "G4ProcessManager.hh"
|
|
#include "G4Gamma.hh"
|
|
#include "G4ParticleDefinition.hh"
|
|
#include "G4LowEnergyCompton.hh"
|
|
#include "G4LowEnergyGammaConversion.hh"
|
|
#include "G4LowEnergyPhotoElectric.hh"
|
|
#include "G4LowEnergyRayleigh.hh"
|
|
|
|
RemSimPhotonEPDL::RemSimPhotonEPDL(const G4String& name):
|
|
G4VPhysicsConstructor(name)
|
|
{ }
|
|
|
|
RemSimPhotonEPDL::~RemSimPhotonEPDL()
|
|
{ }
|
|
|
|
void RemSimPhotonEPDL::ConstructProcess()
|
|
{
|
|
// Add EPDL processes for photons
|
|
|
|
theParticleIterator -> reset();
|
|
|
|
while( (*theParticleIterator)() )
|
|
{
|
|
G4ParticleDefinition* particle = theParticleIterator -> value();
|
|
G4ProcessManager* manager = particle -> GetProcessManager();
|
|
G4String particleName = particle -> GetParticleName();
|
|
|
|
if (particleName == "gamma")
|
|
{
|
|
manager -> AddDiscreteProcess(new G4LowEnergyPhotoElectric);
|
|
manager -> AddDiscreteProcess(new G4LowEnergyCompton);
|
|
manager -> AddDiscreteProcess(new G4LowEnergyGammaConversion);
|
|
manager -> AddDiscreteProcess(new G4LowEnergyRayleigh);
|
|
}
|
|
}
|
|
}
|