source: trunk/source/processes/electromagnetic/highenergy/include/G4eeToHadrons.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

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// $Id: G4eeToHadrons.hh,v 1.8 2007/05/23 08:50:41 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4eeToHadrons
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 12.08.2004
39//
40// Modifications:
41// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
42// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
43//
44//
45// Class Description:
46//
47// This class manages the process of e+ annihilation into hadrons
48//
49
50// -------------------------------------------------------------------
51//
52
53#ifndef G4eeToHadrons_h
54#define G4eeToHadrons_h 1
55
56#include "G4VEmProcess.hh"
57#include "G4Positron.hh"
58#include "G4eeToHadronsMultiModel.hh"
59
60class G4eeToHadrons : public G4VEmProcess
61{
62
63public:
64
65 G4eeToHadrons(const G4String& name = "ee2hadr");
66
67 virtual ~G4eeToHadrons();
68
69 virtual G4bool IsApplicable(const G4ParticleDefinition& p);
70
71 // Print out of the class parameters
72 void PrintInfo();
73
74 // Set the factor to artificially increase the crossSection (default 1)
75 void SetCrossSecFactor(G4double fac);
76
77protected:
78
79 void InitialiseProcess(const G4ParticleDefinition*);
80
81private:
82
83 std::vector<G4DynamicParticle*>* GenerateSecondaries(const G4DynamicParticle*);
84
85 // hide assignment operator
86 G4eeToHadrons & operator=(const G4eeToHadrons &right);
87 G4eeToHadrons(const G4eeToHadrons&);
88
89 G4eeToHadronsMultiModel* multimodel;
90 G4double csFactor;
91 G4bool isInitialised;
92};
93
94//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
96
97inline G4bool G4eeToHadrons::IsApplicable(const G4ParticleDefinition& p)
98{
99 return (&p == G4Positron::Positron());
100}
101
102//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
103
104#endif
Note: See TracBrowser for help on using the repository browser.