source: trunk/source/processes/electromagnetic/lowenergy/include/G4DNAIonisation.hh@ 992

Last change on this file since 992 was 966, checked in by garnier, 17 years ago

fichier ajoutes

File size: 3.1 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// $Id: G4DNAIonisation.hh,v 1.2 2009/02/14 18:04:30 sincerti Exp $
27// GEANT4 tag $Name: geant4-09-02-ref-02 $
28
29//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30
31#ifndef G4DNAIonisation_h
32#define G4DNAIonisation_h 1
33
34#include "G4VEmProcess.hh"
35#include "G4DNAGenericIonsManager.hh"
36#include "G4Electron.hh"
37#include "G4Proton.hh"
38
39// Available models
40#include "G4DNABornIonisationModel.hh"
41#include "G4DNARuddIonisationModel.hh"
42
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
45class G4DNAIonisation : public G4VEmProcess
46
47{
48public:
49
50 G4DNAIonisation(const G4String& processName ="DNAIonisation",
51 G4ProcessType type = fElectromagnetic);
52
53 virtual ~G4DNAIonisation();
54
55 G4bool IsApplicable(const G4ParticleDefinition&);
56
57 virtual void PrintInfo();
58
59protected:
60
61 virtual void InitialiseProcess(const G4ParticleDefinition*);
62
63private:
64
65 G4bool isInitialised;
66};
67
68//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
69
70inline
71G4bool G4DNAIonisation::IsApplicable(const G4ParticleDefinition& p)
72{
73 G4DNAGenericIonsManager *instance;
74 instance = G4DNAGenericIonsManager::Instance();
75
76 return
77 (
78 &p == G4Electron::Electron()
79 || &p == G4Proton::Proton()
80 || &p == instance->GetIon("hydrogen")
81 || &p == instance->GetIon("alpha++")
82 || &p == instance->GetIon("alpha+")
83 || &p == instance->GetIon("helium")
84 );
85}
86
87//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89#endif
Note: See TracBrowser for help on using the repository browser.