source: trunk/source/processes/hadronic/cross_sections/include/G4CrossSectionElastic.hh @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 3.3 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: G4CrossSectionElastic.hh,v 1.2 2010/11/19 11:12:11 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-ref-00 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name:     G4CrossSectionElastic
35//
36// Author:        Vladimir Ivanchenko
37//
38// Creation date: 19.11.2010
39// Modifications:
40//
41// Class Description:
42//
43// Wrapper for elastic cross section build from a component
44//
45// -------------------------------------------------------------------
46//
47
48#ifndef G4CrossSectionElastic_h
49#define G4CrossSectionElastic_h 1
50
51#include "globals.hh"
52#include "G4VCrossSectionDataSet.hh"
53
54class G4ParticleDefinition;
55class G4VComponentCrossSection;
56
57class G4CrossSectionElastic : public G4VCrossSectionDataSet
58{
59public:
60
61  G4CrossSectionElastic(const G4ParticleDefinition*, G4VComponentCrossSection*,
62                        G4int zmin = 0, G4int zmax = 256, 
63                        G4double Emin = 0.0, G4double Emax = DBL_MAX);
64
65  virtual ~G4CrossSectionElastic();
66   
67  virtual
68  G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
69
70  virtual
71  G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A);
72
73  virtual
74  G4double GetCrossSection(const G4DynamicParticle*, 
75                           const G4Element*, G4double aTemperature = 0.);
76
77  virtual
78  G4double GetZandACrossSection(const G4DynamicParticle*, G4int /*Z*/,
79                                G4int /*A*/, G4double aTemperature = 0.);
80
81  inline const G4ParticleDefinition* GetParticle() const { return particle; }
82
83private:
84
85  G4CrossSectionElastic & operator=(const G4CrossSectionElastic &right);
86  G4CrossSectionElastic(const G4CrossSectionElastic&);
87
88  const G4ParticleDefinition* particle;
89  G4VComponentCrossSection* component;
90  G4int Zmin;
91  G4int Zmax;
92
93};
94
95#endif
Note: See TracBrowser for help on using the repository browser.