source: trunk/source/particles/shortlived/include/G4ExcitedSigmaConstructor.hh @ 1202

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

update CVS release candidate geant4.9.3.01

File size: 6.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: G4ExcitedSigmaConstructor.hh,v 1.6 2006/06/29 19:26:42 gunter Exp $
28// GEANT4 tag $Name: geant4-09-03-cand-01 $
29//
30//
31// --------------------------------------------------------------
32//      GEANT 4 class implementation file
33//
34//      History: first implementation, based on object model of
35//      10 oct 1998  H.Kurashige
36// ---------------------------------------------------------------
37#ifndef G4ExcitedSigmaConstructor_h
38#define G4ExcitedSigmaConstructor_h 1
39
40#include "globals.hh"
41#include "G4ios.hh"
42#include "G4ExcitedBaryonConstructor.hh"
43
44class G4ExcitedSigmaConstructor: public G4ExcitedBaryonConstructor
45{
46  //This class is a utility class for construction
47  //short lived particles
48
49  public:
50    G4ExcitedSigmaConstructor();
51    virtual  ~G4ExcitedSigmaConstructor();
52
53  protected: 
54    virtual  G4bool   Exist( G4int ){return true;}
55
56    virtual  G4int    GetQuarkContents(G4int, G4int);
57    virtual  G4String GetName(G4int iIso3, G4int iState);
58    virtual  G4String GetMultipletName(G4int iState);
59
60    virtual  G4double GetMass(G4int iState);
61    virtual  G4double GetWidth(G4int iState);
62    virtual  G4int    GetiSpin(G4int iState);
63    virtual  G4int    GetiParity(G4int iState);
64    virtual  G4int    GetEncodingOffset(G4int iState);
65
66    virtual  G4DecayTable* CreateDecayTable(const G4String& name,
67                                            G4int iIso3, G4int iState,
68                                            G4bool fAnti = false);
69  private:
70    G4DecayTable* AddNKMode( G4DecayTable* table, const G4String& name,
71                                    G4double br, G4int iIso3, G4bool fAnti);
72    G4DecayTable* AddNKStarMode( G4DecayTable* table, const G4String& name,
73                                     G4double br, G4int iIso3, G4bool fAnti);
74    G4DecayTable* AddSigmaPiMode( G4DecayTable* table, const G4String& name,
75                                     G4double br, G4int iIso3, G4bool fAnti);
76    G4DecayTable* AddSigmaStarPiMode( G4DecayTable* table, const G4String& name,
77                                     G4double br, G4int iIso3, G4bool fAnti);
78    G4DecayTable* AddLambdaPiMode( G4DecayTable* table, const G4String& name,
79                                     G4double br, G4int iIso3, G4bool fAnti);
80    G4DecayTable* AddSigmaEtaMode( G4DecayTable* table, const G4String& name,
81                                     G4double br, G4int iIso3, G4bool fAnti);
82    G4DecayTable* AddLambdaStarPiMode( G4DecayTable* table, const G4String& name,
83                                     G4double br, G4int iIso3, G4bool fAnti);
84    G4DecayTable* AddDeltaKMode( G4DecayTable* table, const G4String& name,
85                                     G4double br, G4int iIso3, G4bool fAnti);
86
87  public:
88    enum     { NStates = 8  };
89  private:
90    enum     { SigmaIsoSpin = 2 };
91
92  private:
93    static const char* name[ NStates ];
94    static const G4double mass[ NStates ];
95    static const G4double width[ NStates ];
96    static const G4int    iSpin[ NStates ];
97    static const G4int    iParity[ NStates ];
98    static const G4int    encodingOffset[ NStates ];
99   
100  public:
101    enum     { NumberOfDecayModes = 8 };
102  private:
103    enum     { NK=0,  NKStar=1,   SigmaPi=2, SigmaStarPi=3,  LambdaPi=4,
104               SigmaEta=5,  LambdaStarPi=6, DeltaK=7};
105   private:
106   static const G4double bRatio[ NStates ][ NumberOfDecayModes];
107};
108
109inline
110 G4double G4ExcitedSigmaConstructor::GetMass(G4int iState)
111{ 
112  return mass[iState]; 
113}
114
115inline
116 G4double G4ExcitedSigmaConstructor::GetWidth(G4int iState)
117{
118  return width[iState];
119}
120
121inline
122 G4int    G4ExcitedSigmaConstructor::GetiSpin(G4int iState)
123{
124  return iSpin[iState];
125}
126
127inline
128 G4int    G4ExcitedSigmaConstructor::GetiParity(G4int iState)
129{
130  return iParity[iState];
131}
132
133inline
134 G4int    G4ExcitedSigmaConstructor::GetEncodingOffset(G4int iState)
135{
136  return encodingOffset[iState];
137}
138
139inline
140 G4int  G4ExcitedSigmaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
141{
142  G4int quark=0;
143  if ( iQ == 0 ){
144    // s-quark
145    quark = 3;
146  } else if ( iQ == 1 ){
147    if (iIso3 == -2) {
148      // d-quark
149      quark = 1;
150    } else {
151      // u-quark
152      quark = 2;
153    }
154  }  else if ( iQ == 2 ){
155    if (iIso3 == +2) {
156      // u-quark
157      quark = 2;
158    } else {
159      // d-quark
160      quark = 1;
161    }
162  } 
163  return quark;
164}
165
166inline 
167 G4String  G4ExcitedSigmaConstructor::GetMultipletName(G4int iState)
168{
169   return name[iState];
170}
171
172inline 
173 G4String G4ExcitedSigmaConstructor::GetName(G4int iIso3, G4int iState)
174 {
175   G4String particle = name[iState];
176   if (iIso3 == +2) {
177     particle += "+";
178   } else if (iIso3 == 0) {
179     particle += "0";
180   } else if (iIso3 == -2) {
181     particle += "-";
182  }
183  return particle;
184}
185#endif
186
187
188
189
190
191
192
193
194
195
Note: See TracBrowser for help on using the repository browser.