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 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /particles/shortlived/include/G4ExcitedMesonConstructor.hh (Version 11.3.0) and /particles/shortlived/include/G4ExcitedMesonConstructor.hh (Version 11.2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 // -------------------------------------------     26 // --------------------------------------------------------------
 27 //  GEANT 4 class implementation file              27 //  GEANT 4 class implementation file
 28 //                                                 28 //
 29 //      History: first implementation, based o     29 //      History: first implementation, based on object model of
 30 //      10 oct 1998  H.Kurashige                   30 //      10 oct 1998  H.Kurashige
 31 // -------------------------------------------     31 // ---------------------------------------------------------------
 32 #ifndef G4ExcitedMesonConstructor_h                32 #ifndef G4ExcitedMesonConstructor_h
 33 #define G4ExcitedMesonConstructor_h 1              33 #define G4ExcitedMesonConstructor_h 1
 34                                                    34 
 35 #include "globals.hh"                              35 #include "globals.hh"
 36 class G4DecayTable;                                36 class G4DecayTable;
 37                                                    37 
 38 class G4ExcitedMesonConstructor                    38 class G4ExcitedMesonConstructor
 39 {                                                  39 {
 40     // This class is a utility class for const     40     // This class is a utility class for construction
 41     // short lived particles                       41     // short lived particles
 42   public:                                          42   public:
 43     enum                                           43     enum
 44     {                                              44     {
 45       NMultiplets = 10                             45       NMultiplets = 10
 46     };                                             46     };
 47                                                    47 
 48     enum                                           48     enum
 49     {                                              49     {
 50       NMesonTypes = 5                              50       NMesonTypes = 5
 51     };                                             51     };
 52                                                    52 
 53     enum                                           53     enum
 54     {                                              54     {
 55       NumberOfDecayModes = 19                      55       NumberOfDecayModes = 19
 56     };                                             56     };
 57                                                    57 
 58   public:                                          58   public:
 59     G4ExcitedMesonConstructor(G4int nStates =      59     G4ExcitedMesonConstructor(G4int nStates = 0, G4int isoSpin = 0);
 60     virtual ~G4ExcitedMesonConstructor() = def     60     virtual ~G4ExcitedMesonConstructor() = default;
 61                                                    61 
 62     virtual void Construct(G4int indexOfState      62     virtual void Construct(G4int indexOfState = -1);
 63                                                    63 
 64   protected:                                       64   protected:
 65     void ConstructMesons(G4int indexOfState, G     65     void ConstructMesons(G4int indexOfState, G4int indexOfType);
 66                                                    66 
 67     G4String GetName(G4int iIso3, G4int iState     67     G4String GetName(G4int iIso3, G4int iState, G4int idxType);
 68     G4double GetCharge(G4int iIsoSpin3);           68     G4double GetCharge(G4int iIsoSpin3);
 69     G4int GetEncoding(G4int iIsoSpin3, G4int i     69     G4int GetEncoding(G4int iIsoSpin3, G4int idxState, G4int idxType);
 70     G4int GetQuarkContents(G4int iQ, G4int iIs     70     G4int GetQuarkContents(G4int iQ, G4int iIso3, G4int iType);
 71                                                    71 
 72   protected:                                       72   protected:
 73     G4DecayTable* CreateDecayTable(const G4Str     73     G4DecayTable* CreateDecayTable(const G4String&, G4int, G4int, G4int);
 74                                                    74 
 75     G4DecayTable* AddKPiMode(G4DecayTable* tab     75     G4DecayTable* AddKPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 76                              G4int iType);         76                              G4int iType);
 77     G4DecayTable* AddKStarPiMode(G4DecayTable*     77     G4DecayTable* AddKStarPiMode(G4DecayTable* table, const G4String& name, G4double br,
 78                                  G4int iIso3,      78                                  G4int iIso3, G4int iType);
 79     G4DecayTable* AddKStar2PiMode(G4DecayTable     79     G4DecayTable* AddKStar2PiMode(G4DecayTable* table, const G4String& name, G4double br,
 80                                   G4int iIso3,     80                                   G4int iIso3, G4int iType);
 81     G4DecayTable* AddKRhoMode(G4DecayTable* ta     81     G4DecayTable* AddKRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 82                               G4int iType);        82                               G4int iType);
 83     G4DecayTable* AddKTwoPiMode(G4DecayTable*      83     G4DecayTable* AddKTwoPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 84                                 G4int iType);      84                                 G4int iType);
 85     G4DecayTable* AddKOmegaMode(G4DecayTable*      85     G4DecayTable* AddKOmegaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 86                                 G4int iType);      86                                 G4int iType);
 87     G4DecayTable* AddKEtaMode(G4DecayTable* ta     87     G4DecayTable* AddKEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 88                               G4int iType);        88                               G4int iType);
 89     G4DecayTable* AddPiGammaMode(G4DecayTable*     89     G4DecayTable* AddPiGammaMode(G4DecayTable* table, const G4String& name, G4double br,
 90                                  G4int iIso3,      90                                  G4int iIso3, G4int iIso);
 91     G4DecayTable* AddRhoGammaMode(G4DecayTable     91     G4DecayTable* AddRhoGammaMode(G4DecayTable* table, const G4String& name, G4double br,
 92                                   G4int iIso3,     92                                   G4int iIso3, G4int iIso);
 93     G4DecayTable* Add2PiMode(G4DecayTable* tab     93     G4DecayTable* Add2PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 94                              G4int iIso);          94                              G4int iIso);
 95     G4DecayTable* AddPiRhoMode(G4DecayTable* t     95     G4DecayTable* AddPiRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 96                                G4int iIso);        96                                G4int iIso);
 97     G4DecayTable* AddPiEtaMode(G4DecayTable* t     97     G4DecayTable* AddPiEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
 98                                G4int iIso);        98                                G4int iIso);
 99     G4DecayTable* AddPiF2Mode(G4DecayTable* ta     99     G4DecayTable* AddPiF2Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
100                               G4int iIso);        100                               G4int iIso);
101     G4DecayTable* AddPiF0Mode(G4DecayTable* ta    101     G4DecayTable* AddPiF0Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
102                               G4int iIso);        102                               G4int iIso);
103     G4DecayTable* AddPiA2Mode(G4DecayTable* ta    103     G4DecayTable* AddPiA2Mode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
104                               G4int iIso);        104                               G4int iIso);
105     G4DecayTable* Add3PiMode(G4DecayTable* tab    105     G4DecayTable* Add3PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
106                              G4int iIso);         106                              G4int iIso);
107     G4DecayTable* Add4PiMode(G4DecayTable* tab    107     G4DecayTable* Add4PiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
108                              G4int iIso);         108                              G4int iIso);
109     G4DecayTable* AddKKStarMode(G4DecayTable*     109     G4DecayTable* AddKKStarMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
110                                 G4int iIso);      110                                 G4int iIso);
111     G4DecayTable* Add2PiEtaMode(G4DecayTable*     111     G4DecayTable* Add2PiEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
112                                 G4int iIso);      112                                 G4int iIso);
113     G4DecayTable* AddRhoEtaMode(G4DecayTable*     113     G4DecayTable* AddRhoEtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
114                                 G4int iIso);      114                                 G4int iIso);
115     G4DecayTable* Add2PiRhoMode(G4DecayTable*     115     G4DecayTable* Add2PiRhoMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
116                                 G4int iIso);      116                                 G4int iIso);
117     G4DecayTable* Add2PiOmegaMode(G4DecayTable    117     G4DecayTable* Add2PiOmegaMode(G4DecayTable* table, const G4String& name, G4double br,
118                                   G4int iIso3,    118                                   G4int iIso3, G4int iIso);
119     G4DecayTable* AddPiOmegaMode(G4DecayTable*    119     G4DecayTable* AddPiOmegaMode(G4DecayTable* table, const G4String& name, G4double br,
120                                  G4int iIso3,     120                                  G4int iIso3, G4int iIso);
121     G4DecayTable* Add2EtaMode(G4DecayTable* ta    121     G4DecayTable* Add2EtaMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
122                               G4int iIso);        122                               G4int iIso);
123     G4DecayTable* Add2KMode(G4DecayTable* tabl    123     G4DecayTable* Add2KMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
124                             G4int iIso);          124                             G4int iIso);
125     G4DecayTable* Add2KPiMode(G4DecayTable* ta    125     G4DecayTable* Add2KPiMode(G4DecayTable* table, const G4String& name, G4double br, G4int iIso3,
126                               G4int iIso);        126                               G4int iIso);
127                                                   127 
128     G4bool Exist(G4int idxState, G4int idxType    128     G4bool Exist(G4int idxState, G4int idxType);
129     G4double GetCharge(G4int iIsoSpin3, G4int     129     G4double GetCharge(G4int iIsoSpin3, G4int idxType);
130                                                   130 
131   protected:                                      131   protected:
132     enum                                          132     enum
133     {                                             133     {
134       N11P1 = 0,                                  134       N11P1 = 0,
135       N13P0 = 1,                                  135       N13P0 = 1,
136       N13P1 = 2,                                  136       N13P1 = 2,
137       N13P2 = 3,                                  137       N13P2 = 3,
138       N11D2 = 4,                                  138       N11D2 = 4,
139       N13D1 = 5,                                  139       N13D1 = 5,
140       N13D3 = 6,                                  140       N13D3 = 6,
141       N21S0 = 7,                                  141       N21S0 = 7,
142       N23S1 = 8,                                  142       N23S1 = 8,
143       N23P2 = 9                                   143       N23P2 = 9
144     };                                            144     };
145                                                   145 
146     enum                                          146     enum
147     {                                             147     {
148       TPi = 0,                                    148       TPi = 0,
149       TEta = 1,                                   149       TEta = 1,
150       TEtaPrime = 2,                              150       TEtaPrime = 2,
151       TK = 3,                                     151       TK = 3,
152       TAntiK = 4                                  152       TAntiK = 4
153     };                                            153     };
154                                                   154 
155     const G4String type;                          155     const G4String type;
156     const G4int leptonNumber{0};                  156     const G4int leptonNumber{0};
157     const G4int baryonNumber{0};                  157     const G4int baryonNumber{0};
158                                                   158 
159     static const char* name[NMultiplets][NMeso    159     static const char* name[NMultiplets][NMesonTypes];
160     static const G4double mass[NMultiplets][NM    160     static const G4double mass[NMultiplets][NMesonTypes];
161     static const G4double massKdiff[NMultiplet    161     static const G4double massKdiff[NMultiplets];
162     static const G4double width[NMultiplets][N    162     static const G4double width[NMultiplets][NMesonTypes];
163     static const G4double widthKdiff[NMultiple    163     static const G4double widthKdiff[NMultiplets];
164     static const G4int iIsoSpin[NMesonTypes];     164     static const G4int iIsoSpin[NMesonTypes];
165     static const G4int iSpin[NMultiplets];        165     static const G4int iSpin[NMultiplets];
166     static const G4int iParity[NMultiplets];      166     static const G4int iParity[NMultiplets];
167     static const G4int iGParity[NMultiplets][N    167     static const G4int iGParity[NMultiplets][NMesonTypes];
168     static const G4int iChargeConjugation[NMul    168     static const G4int iChargeConjugation[NMultiplets];
169     static const G4int encodingOffset[NMultipl    169     static const G4int encodingOffset[NMultiplets];
170                                                   170 
171     enum                                          171     enum
172     {                                             172     {
173       MPiGamma = 0,                               173       MPiGamma = 0,
174       MRhoGamma = 1,                              174       MRhoGamma = 1,
175       M2Pi = 2,                                   175       M2Pi = 2,
176       MPiRho = 3,                                 176       MPiRho = 3,
177       M3Pi = 4,                                   177       M3Pi = 4,
178       MPiEta = 5,                                 178       MPiEta = 5,
179       M4Pi = 6,                                   179       M4Pi = 6,
180       MKKStar = 7,                                180       MKKStar = 7,
181       M2PiEta = 8,                                181       M2PiEta = 8,
182       MRhoEta = 9,                                182       MRhoEta = 9,
183       M2PiRho = 10,                               183       M2PiRho = 10,
184       M2PiOmega = 11,                             184       M2PiOmega = 11,
185       M2Eta = 12,                                 185       M2Eta = 12,
186       M2K = 13,                                   186       M2K = 13,
187       M2KPi = 14,                                 187       M2KPi = 14,
188       MPiOmega = 15,                              188       MPiOmega = 15,
189       MPiF2 = 16,                                 189       MPiF2 = 16,
190       MPiF0 = 17,                                 190       MPiF0 = 17,
191       MPiA2 = 18                                  191       MPiA2 = 18
192     };                                            192     };
193     enum                                          193     enum
194     {                                             194     {
195       MKPi = 0,                                   195       MKPi = 0,
196       MKStarPi = 1,                               196       MKStarPi = 1,
197       MKRho = 2,                                  197       MKRho = 2,
198       MKOmega = 3,                                198       MKOmega = 3,
199       MKStar2Pi = 4,                              199       MKStar2Pi = 4,
200       MKTwoPi = 5,                                200       MKTwoPi = 5,
201       MKEta = 6                                   201       MKEta = 6
202     };                                            202     };
203                                                   203 
204     static const G4double bRatio[NMultiplets][    204     static const G4double bRatio[NMultiplets][NMesonTypes][NumberOfDecayModes];
205 };                                                205 };
206                                                   206 
207 inline G4String G4ExcitedMesonConstructor::Get    207 inline G4String G4ExcitedMesonConstructor::GetName(G4int iIso3, G4int iState, G4int iType)
208 {                                                 208 {
209   G4String particle = name[iState][iType];        209   G4String particle = name[iState][iType];
210   if (iType == TPi) {                             210   if (iType == TPi) {
211     if (iIso3 == +2) {                            211     if (iIso3 == +2) {
212       particle += "+";                            212       particle += "+";
213     }                                             213     }
214     else if (iIso3 == -2) {                       214     else if (iIso3 == -2) {
215       particle += "-";                            215       particle += "-";
216     }                                             216     }
217     else {                                        217     else {
218       particle += "0";                            218       particle += "0";
219     }                                             219     }
220   }                                               220   }
221   else if (iType == TK) {                         221   else if (iType == TK) {
222     if (iIso3 == +1) {                            222     if (iIso3 == +1) {
223       particle += "+";                            223       particle += "+";
224     }                                             224     }
225     else if (iIso3 == -1) {                       225     else if (iIso3 == -1) {
226       particle += "0";                            226       particle += "0";
227     }                                             227     }
228   }                                               228   }
229   else if (iType == TAntiK) {                     229   else if (iType == TAntiK) {
230     if (iIso3 == +1) {                            230     if (iIso3 == +1) {
231       particle += "0";                            231       particle += "0";
232       particle = "anti_" + particle;              232       particle = "anti_" + particle;
233     }                                             233     }
234     else if (iIso3 == -1) {                       234     else if (iIso3 == -1) {
235       particle += "-";                            235       particle += "-";
236     }                                             236     }
237   }                                               237   }
238   return particle;                                238   return particle;
239 }                                                 239 }
240                                                   240 
241 #endif                                            241 #endif
242                                                   242