source: trunk/source/processes/electromagnetic/lowenergy/include/G4DNAProcess.hh @ 1055

Last change on this file since 1055 was 1055, checked in by garnier, 15 years ago

maj sur la beta de geant 4.9.3

File size: 3.9 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//
27// $Id: G4DNAProcess.hh,v 1.5 2007/11/09 16:20:04 pia Exp $
28// GEANT4 tag $Name: geant4-09-03-beta-cand-00 $
29//
30// Author:  Maria Grazia Pia (Maria.Grazia.Pia@ge.infn.it)
31//
32// History:
33// -----------
34// 29 Sep 2007 MGP   First (incomplete) implementation
35//
36// -------------------------------------------------------------------
37
38// Class description:
39// Host class for DNA physics policies
40// Further documentation available in PAPER REF. TO BE ADDED
41
42// -------------------------------------------------------------------
43
44#ifndef G4DNAPROCESS_HH
45#define G4DNAPROCESS_HH 1
46
47#include "globals.hh"
48#include "G4VDiscreteProcess.hh"
49#include "G4Track.hh"
50#include "G4Step.hh"
51#include "G4ParticleDefinition.hh"
52#include "G4VParticleChange.hh"
53#include "G4DynamicParticle.hh"
54#include "G4ThreeVector.hh"
55#include "G4FinalStateProduct.hh"
56#include <vector>
57
58template < class TCrossSection, class TFinalState>
59class G4DNAProcess : public G4VDiscreteProcess {
60 
61public:
62
63  // ---- MGP ---- Note: process name to be replaced with a better identifying mechanism 
64  G4DNAProcess(const G4String& processName = "DNAProcess"): G4VDiscreteProcess(processName) { /* nop */; }
65 
66  ~G4DNAProcess() { /* nop */; }
67
68  //  ---- MGP ---- Dummy initially: process is always applicable
69  virtual G4bool IsApplicable(const G4ParticleDefinition&) { return true; } 
70 
71  //  ---- MGP ---- Dummy initially: no PhysicsTable (usefulness to be verified)
72  virtual void BuildPhysicsTable(const G4ParticleDefinition& /* particle */) { /* nop */; }
73 
74  // Implemented in terms of TFinalState
75  virtual G4VParticleChange* PostStepDoIt(const G4Track& track, const G4Step& step);
76 
77  // For testing purpose only
78  G4double DumpMeanFreePath(const G4Track& aTrack, 
79                            G4double previousStepSize, 
80                            G4ForceCondition* condition) 
81  { return GetMeanFreePath(aTrack, previousStepSize, condition); }
82
83protected:
84 
85  // Implemented in terms of TCrossSection
86  virtual G4double GetMeanFreePath(const G4Track& track, 
87                           G4double previousStepSize, 
88                           G4ForceCondition* condition);
89private:
90
91 // Hide copy constructor and assignment operator as private
92  G4DNAProcess& operator=(const G4DNAProcess& right);
93  G4DNAProcess(const G4DNAProcess& );
94
95  // Policy classes
96  TCrossSection crossSection;
97  TFinalState finalState;
98
99};
100
101#include "G4DNAProcess.icc"
102
103#endif
104
105
106
Note: See TracBrowser for help on using the repository browser.