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 | // |
---|
27 | // $Id: G4QHadronBuilder.hh,v 1.3 2009/02/23 09:49:24 mkossov Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ |
---|
29 | // |
---|
30 | // ----------------------------------------------------------------------------- |
---|
31 | // GEANT 4 class header file |
---|
32 | // |
---|
33 | // History: |
---|
34 | // Created by Mikhail Kossov, October 2006 |
---|
35 | // Simple service class building hadron out of two partons; |
---|
36 | // For comparison mirror member functions are taken from G4 class: |
---|
37 | // G4HadronBuilder |
---|
38 | // ----------------------------------------------------------------------------- |
---|
39 | // Short description: A CHIPS class for the builder of the G4QHadron, which is a |
---|
40 | // resulting object for the string fragmentation. the G4QHadron has specific |
---|
41 | // parameters, which are not included in the G4QParticle from the CHIPS World, |
---|
42 | // but necessary for the string fragmentation. When the G4QHadron is created |
---|
43 | // (builded), it is converted to the CHIPS particle. |
---|
44 | // ----------------------------------------------------------------------------- |
---|
45 | // |
---|
46 | |
---|
47 | #ifndef G4QHadronBuilder_h |
---|
48 | #define G4QHadronBuilder_h 1 |
---|
49 | |
---|
50 | #include "globals.hh" |
---|
51 | #include <vector> |
---|
52 | #include "G4QHadron.hh" |
---|
53 | #include "G4QParton.hh" |
---|
54 | |
---|
55 | class G4QHadronBuilder |
---|
56 | { |
---|
57 | public: |
---|
58 | G4QHadronBuilder(); |
---|
59 | G4QHadron* Build(G4QParton* black, G4QParton* white); |
---|
60 | G4QHadron* BuildLowSpin(G4QParton* black, G4QParton* white); |
---|
61 | G4QHadron* BuildHighSpin(G4QParton* black, G4QParton* white); |
---|
62 | private: |
---|
63 | enum Spin {SpinZero=1, SpinHalf=2, SpinOne=3, SpinThreeHalf=4}; |
---|
64 | G4QHadron* Meson(G4QParton* black, G4QParton* white, Spin spin); |
---|
65 | G4QHadron* Baryon(G4QParton* black,G4QParton* white, Spin spin); |
---|
66 | // Body |
---|
67 | G4double mesonSpinMix; |
---|
68 | G4double baryonSpinMix; |
---|
69 | std::vector<G4double> scalarMesonMixings; |
---|
70 | std::vector<G4double> vectorMesonMixings; |
---|
71 | }; |
---|
72 | |
---|
73 | // G4QHcreate type is an interface to Build/BuildLowSpin/BuildHighSpin member functions |
---|
74 | typedef G4QHadron* (G4QHadronBuilder::*G4QHcreate) (G4QParton*,G4QParton*); |
---|
75 | #endif |
---|