source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QHadronBuilder.hh @ 836

Last change on this file since 836 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 3.0 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//
27// $Id: G4QHadronBuilder.hh,v 1.2 2006/12/12 11:02:22 mkossov Exp $
28// GEANT4 tag $Name:  $
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//
40
41#ifndef G4QHadronBuilder_h
42#define G4QHadronBuilder_h 1
43
44#include "globals.hh"
45#include <vector>
46#include "G4QHadron.hh"
47#include "G4QParton.hh"
48
49class G4QHadronBuilder
50{
51public:
52  G4QHadronBuilder(); 
53  G4QHadron* Build(G4QParton* black, G4QParton* white);
54  G4QHadron* BuildLowSpin(G4QParton* black, G4QParton* white);
55  G4QHadron* BuildHighSpin(G4QParton* black, G4QParton* white);
56private:
57  enum Spin {SpinZero=1, SpinHalf=2, SpinOne=3, SpinThreeHalf=4};
58  G4QHadron* Meson(G4QParton* black, G4QParton* white, Spin spin);
59  G4QHadron* Baryon(G4QParton* black,G4QParton* white, Spin spin);
60                // Body
61  G4double mesonSpinMix;
62  G4double baryonSpinMix;
63  std::vector<G4double> scalarMesonMixings;
64  std::vector<G4double> vectorMesonMixings;
65};
66
67// G4QHcreate type is an interface to Build/BuildLowSpin/BuildHighSpin member functions
68typedef G4QHadron* (G4QHadronBuilder::*G4QHcreate) (G4QParton*,G4QParton*);
69#endif
Note: See TracBrowser for help on using the repository browser.