Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Vee2hadrons.hh
Go to the documentation of this file.
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: G4Vee2hadrons.hh 97391 2016-06-02 10:08:45Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 Class header file
31 //
32 //
33 // File name: G4Vee2hadrons
34 //
35 // Author: Vladimir Ivanchenko
36 //
37 // Creation date: 12.08.2004
38 //
39 // Modifications: 14 July 2014 N. Chikuma revised interfaces
40 //
41 
42 //
43 // Class Description: base class to compute partial cross sections
44 // of e+e- annihilation into hadrons and
45 // sample of final state in the centre mass frame
46 
47 // -------------------------------------------------------------------
48 //
49 #ifndef G4Vee2hadrons_h
50 #define G4Vee2hadrons_h 1
51 
52 #include <vector>
54 
55 #include "globals.hh"
56 #include "G4ThreeVector.hh"
57 #include "G4eeCrossSections.hh"
58 #include "G4PhysicsLinearVector.hh"
59 
60 class G4DynamicParticle;
61 class G4PhysicsVector;
62 
64 {
65 
66 public:
67 
69  G4double vlowEnergy,
70  G4double vhighEnergy,
71  G4double vdelta) : cross(cr)
72  {
73  lowEnergy = vlowEnergy;
74  highEnergy = vhighEnergy;
75  delta = vdelta;
76  };
77 
78  virtual ~G4Vee2hadrons() {};
79 
80  virtual G4double PeakEnergy() const = 0;
81 
82  virtual G4double ComputeCrossSection(G4double) const = 0;
83 
85  {
86  G4int nbins = std::max(3, G4int((highEnergy - lowEnergy)/delta) );
87  G4PhysicsVector* pp = new G4PhysicsLinearVector(lowEnergy,highEnergy,nbins);
88  return pp;
89  };
90 
91  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
92  G4double, const G4ThreeVector&) = 0;
93 
94  G4double LowEnergy() const {return lowEnergy;};
95 
96  G4double HighEnergy() const {return highEnergy;};
97 
98 private:
99 
100  // hide assignment operator
101  G4Vee2hadrons & operator=(const G4Vee2hadrons &right) = delete;
102  G4Vee2hadrons(const G4Vee2hadrons&) = delete;
103 
104  // parameters of the table
105  G4double lowEnergy;
106  G4double highEnergy;
107  G4double delta;
108 
109 protected:
110 
111  G4eeCrossSections* cross; // class to compute cross section
112 
113 };
114 
115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
116 
117 #endif
G4double LowEnergy() const
G4PhysicsVector * PhysicsVector() const
int G4int
Definition: G4Types.hh:78
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, G4double, const G4ThreeVector &)=0
virtual ~G4Vee2hadrons()
G4Vee2hadrons(G4eeCrossSections *cr, G4double vlowEnergy, G4double vhighEnergy, G4double vdelta)
virtual G4double PeakEnergy() const =0
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4eeCrossSections * cross
G4double HighEnergy() const
double G4double
Definition: G4Types.hh:76
virtual G4double ComputeCrossSection(G4double) const =0