| 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: G4ExcitedXiConstructor.hh,v 1.6 2006/06/29 19:26:44 gunter Exp $
|
|---|
| 28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $
|
|---|
| 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 G4ExcitedXiConstructor_h
|
|---|
| 38 | #define G4ExcitedXiConstructor_h 1
|
|---|
| 39 |
|
|---|
| 40 | #include "globals.hh"
|
|---|
| 41 | #include "G4ios.hh"
|
|---|
| 42 | #include "G4ExcitedBaryonConstructor.hh"
|
|---|
| 43 |
|
|---|
| 44 | class G4ExcitedXiConstructor: public G4ExcitedBaryonConstructor
|
|---|
| 45 | {
|
|---|
| 46 | //This class is a utility class for construction
|
|---|
| 47 | //short lived particles
|
|---|
| 48 |
|
|---|
| 49 | public:
|
|---|
| 50 | G4ExcitedXiConstructor();
|
|---|
| 51 | virtual ~G4ExcitedXiConstructor();
|
|---|
| 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* AddXiPiMode( G4DecayTable* table, const G4String& name,
|
|---|
| 71 | G4double br, G4int iIso3, G4bool fAnti);
|
|---|
| 72 | G4DecayTable* AddXiGammaMode( G4DecayTable* table, const G4String& name,
|
|---|
| 73 | G4double br, G4int iIso3, G4bool fAnti);
|
|---|
| 74 | G4DecayTable* AddLambdaKMode( G4DecayTable* table, const G4String& name,
|
|---|
| 75 | G4double br, G4int iIso3, G4bool fAnti);
|
|---|
| 76 | G4DecayTable* AddSigmaKMode( G4DecayTable* table, const G4String& name,
|
|---|
| 77 | G4double br, G4int iIso3, G4bool fAnti);
|
|---|
| 78 |
|
|---|
| 79 | public:
|
|---|
| 80 | enum { NStates = 5 };
|
|---|
| 81 | private:
|
|---|
| 82 | enum { XiIsoSpin = 1 };
|
|---|
| 83 |
|
|---|
| 84 | private:
|
|---|
| 85 | static const char* name[ NStates ];
|
|---|
| 86 | static const G4double mass[ NStates ];
|
|---|
| 87 | static const G4double width[ NStates ];
|
|---|
| 88 | static const G4int iSpin[ NStates ];
|
|---|
| 89 | static const G4int iParity[ NStates ];
|
|---|
| 90 | static const G4int encodingOffset[ NStates ];
|
|---|
| 91 |
|
|---|
| 92 | public:
|
|---|
| 93 | enum { NumberOfDecayModes = 4 };
|
|---|
| 94 | private:
|
|---|
| 95 | enum { XiPi=0, XiGamma=1, LambdaK=2, SigmaK=3 };
|
|---|
| 96 | private:
|
|---|
| 97 | static const G4double bRatio[ NStates ][ NumberOfDecayModes];
|
|---|
| 98 | };
|
|---|
| 99 |
|
|---|
| 100 | inline
|
|---|
| 101 | G4double G4ExcitedXiConstructor::GetMass(G4int iState)
|
|---|
| 102 | {
|
|---|
| 103 | return mass[iState];
|
|---|
| 104 | }
|
|---|
| 105 |
|
|---|
| 106 | inline
|
|---|
| 107 | G4double G4ExcitedXiConstructor::GetWidth(G4int iState)
|
|---|
| 108 | {
|
|---|
| 109 | return width[iState];
|
|---|
| 110 | }
|
|---|
| 111 |
|
|---|
| 112 | inline
|
|---|
| 113 | G4int G4ExcitedXiConstructor::GetiSpin(G4int iState)
|
|---|
| 114 | {
|
|---|
| 115 | return iSpin[iState];
|
|---|
| 116 | }
|
|---|
| 117 |
|
|---|
| 118 | inline
|
|---|
| 119 | G4int G4ExcitedXiConstructor::GetiParity(G4int iState)
|
|---|
| 120 | {
|
|---|
| 121 | return iParity[iState];
|
|---|
| 122 | }
|
|---|
| 123 |
|
|---|
| 124 | inline
|
|---|
| 125 | G4int G4ExcitedXiConstructor::GetEncodingOffset(G4int iState)
|
|---|
| 126 | {
|
|---|
| 127 | return encodingOffset[iState];
|
|---|
| 128 | }
|
|---|
| 129 |
|
|---|
| 130 | inline
|
|---|
| 131 | G4int G4ExcitedXiConstructor::GetQuarkContents(G4int iQ, G4int iIso3)
|
|---|
| 132 | {
|
|---|
| 133 | G4int quark=0;
|
|---|
| 134 | if ( iQ == 0 ){
|
|---|
| 135 | // s-quark
|
|---|
| 136 | quark = 3;
|
|---|
| 137 | } else if ( iQ == 1 ){
|
|---|
| 138 | // s-quark
|
|---|
| 139 | quark = 3;
|
|---|
| 140 | } else if ( iQ == 2 ){
|
|---|
| 141 | if (iIso3 == +1) {
|
|---|
| 142 | // u-quark
|
|---|
| 143 | quark = 2;
|
|---|
| 144 | } else {
|
|---|
| 145 | // d-quark
|
|---|
| 146 | quark = 1;
|
|---|
| 147 | }
|
|---|
| 148 | }
|
|---|
| 149 | return quark;
|
|---|
| 150 | }
|
|---|
| 151 |
|
|---|
| 152 | inline
|
|---|
| 153 | G4String G4ExcitedXiConstructor::GetMultipletName(G4int iState)
|
|---|
| 154 | {
|
|---|
| 155 | return name[iState];
|
|---|
| 156 | }
|
|---|
| 157 |
|
|---|
| 158 | inline
|
|---|
| 159 | G4String G4ExcitedXiConstructor::GetName(G4int iIso3, G4int iState)
|
|---|
| 160 | {
|
|---|
| 161 | G4String particle = name[iState];
|
|---|
| 162 | if (iIso3 == +1) {
|
|---|
| 163 | particle += "0";
|
|---|
| 164 | } else if (iIso3 ==-1) {
|
|---|
| 165 | particle += "-";
|
|---|
| 166 | }
|
|---|
| 167 | return particle;
|
|---|
| 168 | }
|
|---|
| 169 | #endif
|
|---|
| 170 |
|
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 |
|
|---|
| 178 |
|
|---|
| 179 |
|
|---|