source: trunk/source/processes/electromagnetic/highenergy/include/G4eeTo3PiModel.hh @ 991

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

update

File size: 3.6 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: G4eeTo3PiModel.hh,v 1.1 2008/07/10 18:07:26 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name:     G4eeTo3PiModel
35//
36// Author:        Vladimir Ivanchenko
37//
38// Creation date: 25.10.2003
39//
40// Modifications:
41//
42
43//
44// Class Description:
45//
46
47// -------------------------------------------------------------------
48//
49
50#ifndef G4eeTo3PiModel_h
51#define G4eeTo3PiModel_h 1
52
53#include "G4Vee2hadrons.hh"
54#include "globals.hh"
55#include "G4eeCrossSections.hh"
56
57class G4DynamicParticle;
58class G4PhysicsVector;
59
60class G4eeTo3PiModel : public G4Vee2hadrons
61{
62
63public:
64
65  G4eeTo3PiModel(G4eeCrossSections*);
66
67  virtual ~G4eeTo3PiModel();
68
69  G4double ThresholdEnergy() const;
70
71  G4double PeakEnergy() const;
72
73  G4double ComputeCrossSection(G4double) const;
74
75  G4PhysicsVector* PhysicsVector(G4double, G4double) const;
76
77  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
78              G4double, const G4ThreeVector&);
79
80private:
81
82  // hide assignment operator
83  G4eeTo3PiModel & operator=(const  G4eeTo3PiModel &right);
84  G4eeTo3PiModel(const  G4eeTo3PiModel&);
85
86  G4eeCrossSections* cross;
87
88  G4double massPi;
89  G4double massPi0;
90  G4double massOm;
91  G4double massPhi;
92  G4double gcash;
93  G4double gmax;
94};
95
96//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
97
98inline G4double G4eeTo3PiModel::ThresholdEnergy() const
99{
100  return std::max(LowEnergy(),2.0*massPi + massPi0);
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
104
105inline G4double G4eeTo3PiModel::PeakEnergy() const
106{
107  G4double e = massOm;
108  if(HighEnergy() > massPhi) e = massPhi; 
109  return e;
110}
111
112//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
113
114inline G4double G4eeTo3PiModel::ComputeCrossSection(G4double e) const
115{
116  G4double ee = std::min(HighEnergy(),e);
117  return cross->CrossSection3pi(ee);
118}
119
120//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
121
122#endif
Note: See TracBrowser for help on using the repository browser.