source: trunk/source/processes/hadronic/models/coherent_elastic/include/G4VHadronElastic.hh @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 3.5 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: G4VHadronElastic.hh,v 1.4 2009/09/23 14:37:44 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
29//
30// Geant4 Header : G4VHadronElastic
31//
32// Author : V.Ivanchenko 29 June 2009 (redesign old elastic model)
33// 
34// Modified:
35//
36// Class Description
37// Default model for elastic scattering; GHEISHA algorithm is used
38// Class Description - End
39
40#ifndef G4VHadronElastic_h
41#define G4VHadronElastic_h 1
42 
43#include "globals.hh"
44#include "G4HadronicInteraction.hh"
45#include "G4HadProjectile.hh"
46#include "G4Nucleus.hh"
47#include "G4NucleiProperties.hh"
48
49class G4ParticleDefinition;
50
51class G4VHadronElastic : public G4HadronicInteraction
52{
53public:
54
55  G4VHadronElastic(const G4String& name = "hElasticLHEP");
56
57  virtual ~G4VHadronElastic();
58 
59  // implementation of the G4HadronicInteraction interface
60  virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & aTrack, 
61                                          G4Nucleus & targetNucleus);
62
63  // sample momentum transfer using Lab. momentum
64  virtual G4double SampleInvariantT(const G4ParticleDefinition* p, 
65                                    G4double plab,
66                                    G4int Z, G4int A);
67
68  inline void SetLowestEnergyLimit(G4double value);
69
70  inline void ComputeMomentumCMS(const G4ParticleDefinition* p, 
71                                 G4double plab, G4int Z, G4int A);
72
73protected:
74
75  G4double momentumCMS;
76
77private:
78
79  G4ParticleDefinition* theProton;
80  G4ParticleDefinition* theNeutron;
81  G4ParticleDefinition* theDeuteron;
82  G4ParticleDefinition* theAlpha;
83
84  G4double lowestEnergyLimit; 
85
86};
87
88inline void G4VHadronElastic::SetLowestEnergyLimit(G4double value)
89{
90  lowestEnergyLimit = value;
91}
92
93inline void 
94G4VHadronElastic::ComputeMomentumCMS(const G4ParticleDefinition* p, 
95                                     G4double plab, G4int Z, G4int A)
96{
97  G4double m1 = p->GetPDGMass();
98  G4double m12= m1*m1;
99  G4double m2 = G4NucleiProperties::GetNuclearMass(A, Z);
100  momentumCMS = plab*m2/std::sqrt(m12 + m2*m2 + 2.*m2*std::sqrt(m12 + plab*plab));
101}
102
103#endif
Note: See TracBrowser for help on using the repository browser.