120 lines
4.0 KiB
C++
120 lines
4.0 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. *
|
|
// ********************************************************************
|
|
//
|
|
// It is process which allows to select PAIonisation model for some logic volume
|
|
// in an application. In other logical volumes standard ionisation models
|
|
// depending on particle type are realised.
|
|
// The process is declared in PhysicsList::ConstructEM() instead of declaration
|
|
// of ionisation processes
|
|
//
|
|
//
|
|
//
|
|
// History:
|
|
// 04.01.00 V. Grichine, first version based on recommendations of J.Apostolakis
|
|
// and S. Giani
|
|
|
|
#ifndef G4IonisationByLogicalVolume_h
|
|
#define G4IonisationByLogicalVolume_h 1
|
|
|
|
#include "G4ios.hh"
|
|
#include "globals.hh"
|
|
#include "Randomize.hh"
|
|
#include "G4VPAIenergyLoss.hh"
|
|
#include "globals.hh"
|
|
#include "G4Track.hh"
|
|
#include "G4Step.hh"
|
|
#include "G4Electron.hh"
|
|
#include "G4PhysicsLogVector.hh"
|
|
#include "G4PhysicsLinearVector.hh"
|
|
#include "G4PhysicsFreeVector.hh"
|
|
#include "G4PhysicsVector.hh"
|
|
#include "G4LogicalVolume.hh"
|
|
|
|
#include "G4VContinuousDiscreteProcess.hh"
|
|
#include "G4PAIonisation.hh"
|
|
#include "G4eIonisation52.hh"
|
|
#include "G4MuIonisation52.hh"
|
|
#include "G4hIonisation52.hh"
|
|
|
|
|
|
class G4IonisationByLogicalVolume : public G4VContinuousDiscreteProcess
|
|
{
|
|
public:
|
|
|
|
G4IonisationByLogicalVolume( const G4String& particleName,
|
|
G4LogicalVolume* volumeForPAImodel,
|
|
const G4String& processName );
|
|
|
|
~G4IonisationByLogicalVolume() ;
|
|
|
|
|
|
// Methods
|
|
|
|
G4bool IsApplicable(const G4ParticleDefinition&);
|
|
|
|
// G4double GetConstraints(const G4DynamicParticle *aParticle,
|
|
// G4Material *aMaterial );
|
|
|
|
G4VParticleChange* PostStepDoIt( const G4Track& track,
|
|
const G4Step& Step ) ;
|
|
|
|
void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
|
|
|
|
G4double
|
|
GetContinuousStepLimit( const G4Track& track,
|
|
G4double previousStepSize,
|
|
G4double currentMinimumStep,
|
|
G4double& currentSafety ) ;
|
|
|
|
G4double GetMeanFreePath( const G4Track& track,
|
|
G4double previousStepSize,
|
|
G4ForceCondition* condition ) ;
|
|
|
|
G4VParticleChange* AlongStepDoIt( const G4Track& track ,
|
|
const G4Step& Step ) ;
|
|
|
|
|
|
|
|
void SetVolumeForPAImodel( G4LogicalVolume* volumeForPAImodel );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
G4String fParticleName ;
|
|
G4String fMaterialNameForPAI ;
|
|
G4LogicalVolume* fVolumeForPAImodel ;
|
|
|
|
G4bool fTriggerPAI ;
|
|
|
|
G4PAIonisation* fPAIonisation ;
|
|
G4eIonisation52* feIonisation ;
|
|
G4MuIonisation52* fMuIonisation ;
|
|
G4hIonisation52* fhIonisation ;
|
|
|
|
|
|
} ;
|
|
|
|
#endif
|