Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCLPhaseSpaceGenerator.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// INCL++ intra-nuclear cascade model
27// Alain Boudard, CEA-Saclay, France
28// Joseph Cugnon, University of Liege, Belgium
29// Jean-Christophe David, CEA-Saclay, France
30// Pekka Kaitaniemi, CEA-Saclay, France, and Helsinki Institute of Physics, Finland
31// Sylvie Leray, CEA-Saclay, France
32// Davide Mancusi, CEA-Saclay, France
33//
34#define INCLXX_IN_GEANT4_MODE 1
35
36#include "globals.hh"
37
38#ifndef G4INCLPHASESPACEGENERATOR_HH
39#define G4INCLPHASESPACEGENERATOR_HH 1
40
42#include "G4INCLConfig.hh"
43
44namespace G4INCL {
45 namespace PhaseSpaceGenerator {
46 /// \brief Generate an event in the CM system
47 void generate(const G4double sqrtS, ParticleList &particles);
48
49 /** \brief Generate a biased event in the CM system
50 *
51 * This method first generates a "flat" event by calling generate(). The
52 * particles are subsequently rotated in such a way that one of them
53 * (identified by the parameter index) is biased towards the collisionAxis
54 * with an exponential distribution of the form
55 * \f[
56 * \exp(B\cdot t)
57 * \f]
58 * where \f$t\f$ is the usual Mandelstam variable. The incoming momentum
59 * is taken to be the momentum of particles[index] at the moment of the
60 * call.
61 *
62 * \param sqrtS total energy in the centre of mass, in MeV
63 * \param particles list of particles for which the event will be generated
64 * (modified on exit)
65 * \param index index of the particle to be biased; all the other particles
66 * will follow
67 * \param slope slope \f$B\f$ of the angular distribution: \f$\exp(Bt)\f$,
68 * in (GeV/c)^(-2)
69 */
70 void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope);
71
73
75
77
78 void initialize(Config const * const theConfig);
79 }
80}
81
82#endif
Abstract interface for the phase-space generators.
double G4double
Definition: G4Types.hh:83
Abstract interface for the phase-space generators.
void initialize(Config const *const theConfig)
void setPhaseSpaceGenerator(IPhaseSpaceGenerator *g)
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
IPhaseSpaceGenerator * getPhaseSpaceGenerator()
void generate(const G4double sqrtS, ParticleList &particles)
Generate an event in the CM system.