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

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 5.8 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.7 2010/10/01 02:41:44 kurasige Exp $
28// GEANT4 tag $Name: particles-V09-03-15 $
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    virtual  G4double GetMass( G4int state, G4int iso);
60    virtual  G4double GetWidth( G4int state, G4int iso);
61    virtual  G4int    GetiSpin(G4int iState);
62    virtual  G4int    GetiParity(G4int iState);
63    virtual  G4int    GetEncodingOffset(G4int iState);
64
65    virtual  G4DecayTable* CreateDecayTable(const G4String& name,
66                                            G4int iIso3, G4int iState,
67                                            G4bool fAnti = false);
68  private:
69    G4DecayTable* AddNKMode( G4DecayTable* table, const G4String& name,
70                                    G4double br, G4int iIso3, G4bool fAnti);
71    G4DecayTable* AddNKStarMode( G4DecayTable* table, const G4String& name,
72                                     G4double br, G4int iIso3, G4bool fAnti);
73    G4DecayTable* AddSigmaPiMode( G4DecayTable* table, const G4String& name,
74                                     G4double br, G4int iIso3, G4bool fAnti);
75    G4DecayTable* AddSigmaStarPiMode( G4DecayTable* table, const G4String& name,
76                                     G4double br, G4int iIso3, G4bool fAnti);
77    G4DecayTable* AddLambdaPiMode( G4DecayTable* table, const G4String& name,
78                                     G4double br, G4int iIso3, G4bool fAnti);
79    G4DecayTable* AddSigmaEtaMode( G4DecayTable* table, const G4String& name,
80                                     G4double br, G4int iIso3, G4bool fAnti);
81    G4DecayTable* AddLambdaStarPiMode( G4DecayTable* table, const G4String& name,
82                                     G4double br, G4int iIso3, G4bool fAnti);
83    G4DecayTable* AddDeltaKMode( G4DecayTable* table, const G4String& name,
84                                     G4double br, G4int iIso3, G4bool fAnti);
85
86  public:
87    enum     { NStates = 8  };
88  private:
89    enum     { SigmaIsoSpin = 2 };
90
91  private:
92    static const char* name[ NStates ];
93    static const G4double mass[ NStates ];
94    static const G4double width[ NStates ];
95    static const G4int    iSpin[ NStates ];
96    static const G4int    iParity[ NStates ];
97    static const G4int    encodingOffset[ NStates ];
98   
99  public:
100    enum     { NumberOfDecayModes = 8 };
101  private:
102    enum     { NK=0,  NKStar=1,   SigmaPi=2, SigmaStarPi=3,  LambdaPi=4,
103               SigmaEta=5,  LambdaStarPi=6, DeltaK=7};
104   private:
105   static const G4double bRatio[ NStates ][ NumberOfDecayModes];
106};
107
108
109
110inline
111 G4int    G4ExcitedSigmaConstructor::GetiSpin(G4int iState)
112{
113  return iSpin[iState];
114}
115
116inline
117 G4int    G4ExcitedSigmaConstructor::GetiParity(G4int iState)
118{
119  return iParity[iState];
120}
121
122inline
123 G4int    G4ExcitedSigmaConstructor::GetEncodingOffset(G4int iState)
124{
125  return encodingOffset[iState];
126}
127
128inline
129 G4int  G4ExcitedSigmaConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
130{
131  G4int quark=0;
132  if ( iQ == 0 ){
133    // s-quark
134    quark = 3;
135  } else if ( iQ == 1 ){
136    if (iIso3 == -2) {
137      // d-quark
138      quark = 1;
139    } else {
140      // u-quark
141      quark = 2;
142    }
143  }  else if ( iQ == 2 ){
144    if (iIso3 == +2) {
145      // u-quark
146      quark = 2;
147    } else {
148      // d-quark
149      quark = 1;
150    }
151  } 
152  return quark;
153}
154
155inline 
156 G4String  G4ExcitedSigmaConstructor::GetMultipletName(G4int iState)
157{
158   return name[iState];
159}
160
161inline 
162 G4String G4ExcitedSigmaConstructor::GetName(G4int iIso3, G4int iState)
163 {
164   G4String particle = name[iState];
165   if (iIso3 == +2) {
166     particle += "+";
167   } else if (iIso3 == 0) {
168     particle += "0";
169   } else if (iIso3 == -2) {
170     particle += "-";
171  }
172  return particle;
173}
174#endif
175
176
177
178
179
180
181
182
183
184
Note: See TracBrowser for help on using the repository browser.