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] [ 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/management/include/G4ParticlePropertyData.icc (Version 11.3.0) and /particles/management/include/G4ParticlePropertyData.icc (Version 6.2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                    <<   3 // * DISCLAIMER                                                       *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th <<   5 // * The following disclaimer summarizes all the specific disclaimers *
  6 // * the Geant4 Collaboration.  It is provided <<   6 // * of contributors to this software. The specific disclaimers,which *
  7 // * conditions of the Geant4 Software License <<   7 // * govern, are listed with their locations in:                      *
  8 // * LICENSE and available at  http://cern.ch/ <<   8 // *   http://cern.ch/geant4/license                                  *
  9 // * include a list of copyright holders.      << 
 10 // *                                                9 // *                                                                  *
 11 // * Neither the authors of this software syst     10 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     11 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     12 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     13 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  <<  14 // * use.                                                             *
 16 // * for the full disclaimer and the limitatio << 
 17 // *                                               15 // *                                                                  *
 18 // * This  code  implementation is the result  <<  16 // * This  code  implementation is the  intellectual property  of the *
 19 // * technical work of the GEANT4 collaboratio <<  17 // * GEANT4 collaboration.                                            *
 20 // * By using,  copying,  modifying or  distri <<  18 // * By copying,  distributing  or modifying the Program (or any work *
 21 // * any work based  on the software)  you  ag <<  19 // * based  on  the Program)  you indicate  your  acceptance of  this *
 22 // * use  in  resulting  scientific  publicati <<  20 // * statement, and all its terms.                                    *
 23 // * acceptance of all terms of the Geant4 Sof << 
 24 // *******************************************     21 // ********************************************************************
 25 //                                                 22 //
 26 // G4ParticlePropertyData inline methods imple << 
 27 //                                                 23 //
 28 // Author: H.Kurashige, 9 June 2003            <<  24 // $Id: G4ParticlePropertyData.icc,v 1.1 2003/06/11 07:20:06 kurasige Exp $
 29 // ------------------------------------------- <<  25 //
 30                                                    26 
 31 inline void G4ParticlePropertyData::SetVerbose <<  27 inline 
                                                   >>  28  void G4ParticlePropertyData::SetVerboseLevel(G4int value)
 32 {                                                  29 {
 33   verboseLevel = value;                        <<  30    verboseLevel = value;
 34 }                                                  31 }
 35                                                    32 
 36 inline G4int G4ParticlePropertyData::GetVerbos <<  33 inline 
                                                   >>  34  G4int G4ParticlePropertyData::GetVerboseLevel() const
 37 {                                                  35 {
 38   return verboseLevel;                         <<  36    return verboseLevel;
 39 }                                                  37 }
 40                                                    38 
 41 inline G4int G4ParticlePropertyData::GetQuarkC <<  39 inline
 42 {                                              <<  40  G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const 
 43   if ((flavor > 0) && (flavor <= NumberOfQuark <<  41 { 
 44     return theQuarkContent[flavor - 1];        <<  42   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
 45   }                                            <<  43     return theQuarkContent[flavor-1];
 46                                                <<  44   }else {
 47   return 0;                                    <<  45     return 0;
                                                   >>  46   }  
 48 }                                                  47 }
 49                                                    48 
 50 inline G4int G4ParticlePropertyData::GetAntiQu <<  49 inline
 51 {                                              <<  50  G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const 
 52   if ((flavor > 0) && (flavor < NumberOfQuarkF <<  51 { 
 53     return theAntiQuarkContent[flavor - 1];    <<  52   if ((flavor>0) && (flavor<NumberOfQuarkFlavor)){
 54   }                                            <<  53     return theAntiQuarkContent[flavor-1];
 55                                                <<  54   }else {
 56   return 0;                                    <<  55     return 0;
                                                   >>  56   }  
 57 }                                                  57 }
 58                                                    58 
 59 inline void G4ParticlePropertyData::SetPDGEnco <<  59  
 60 {                                              <<  60 inline 
 61   thePDGEncoding = aEncoding;                  <<  61  void  G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
 62   fPDGEncodingModified = true;                 <<  62 { 
 63   theAntiPDGEncoding = -1 * aEncoding;         <<  63   thePDGEncoding = aEncoding; 
 64   fAntiPDGEncodingModified = true;             <<  64   fPDGEncodingModified = true;  
                                                   >>  65   theAntiPDGEncoding = -1*aEncoding; 
                                                   >>  66   fAntiPDGEncodingModified = true;  
 65 }                                                  67 }
 66                                                    68 
 67 inline void G4ParticlePropertyData::SetAntiPDG <<  69 inline 
 68 {                                              <<  70  void  G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
 69   theAntiPDGEncoding = aEncoding;              <<  71 { 
 70   fAntiPDGEncodingModified = true;             <<  72   theAntiPDGEncoding = aEncoding; 
                                                   >>  73   fAntiPDGEncodingModified = true;  
 71 }                                                  74 }
 72                                                    75 
 73 inline void G4ParticlePropertyData::SetPDGMass <<  76 inline 
                                                   >>  77  void  G4ParticlePropertyData::SetPDGMass(G4double newMass)
 74 {                                                  78 {
 75   thePDGMass = newMass;                            79   thePDGMass = newMass;
 76   fPDGMassModified = true;                         80   fPDGMassModified = true;
 77 }                                                  81 }
 78                                                    82 
 79 inline void G4ParticlePropertyData::SetPDGWidt <<  83 inline 
                                                   >>  84  void  G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
 80 {                                                  85 {
 81   thePDGWidth = newWidth;                          86   thePDGWidth = newWidth;
 82   fPDGWidthModified = true;                        87   fPDGWidthModified = true;
 83 }                                                  88 }
 84                                                    89 
 85 inline void G4ParticlePropertyData::SetPDGChar <<  90 inline 
                                                   >>  91  void  G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
 86 {                                                  92 {
 87   thePDGCharge = newCharge;                        93   thePDGCharge = newCharge;
 88   fPDGChargeModified = true;                   <<  94   fPDGChargeModified = true;    
 89 }                                                  95 }
 90                                                <<  96   
 91 inline void G4ParticlePropertyData::SetPDGiSpi <<  97 inline 
                                                   >>  98  void  G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
 92 {                                                  99 {
 93   thePDGiSpin = newSpin;                       << 100   thePDGiSpin = newSpin; 
 94   fPDGiSpinModified = true;                       101   fPDGiSpinModified = true;
 95 }                                                 102 }
 96                                                   103 
 97 inline void G4ParticlePropertyData::SetPDGiPar << 104 inline 
                                                   >> 105  void  G4ParticlePropertyData::SetPDGiParity(G4int newParity)
 98 {                                                 106 {
 99   thePDGiParity = newParity;                      107   thePDGiParity = newParity;
100   fPDGiParityModified = true;                     108   fPDGiParityModified = true;
101 }                                                 109 }
102                                                   110 
103 inline void G4ParticlePropertyData::SetPDGiCon << 111 inline 
104 {                                              << 112  void  G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
                                                   >> 113 { 
105   thePDGiConjugation = newConjugation;            114   thePDGiConjugation = newConjugation;
106   fPDGiConjugationModified = true;                115   fPDGiConjugationModified = true;
107 }                                                 116 }
108                                                   117 
109 inline void G4ParticlePropertyData::SetPDGiIso << 118 inline 
                                                   >> 119  void  G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
110 {                                                 120 {
111   thePDGiIsospin = newIsospin;                    121   thePDGiIsospin = newIsospin;
112   fPDGiIsospinModified = true;                    122   fPDGiIsospinModified = true;
113 }                                                 123 }
114                                                   124 
115 inline void G4ParticlePropertyData::SetPDGiIso << 125 inline 
                                                   >> 126  void  G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
116 {                                                 127 {
117   thePDGiIsospin3 = newIsospin3;                  128   thePDGiIsospin3 = newIsospin3;
118   fPDGiIsospin3Modified = true;                   129   fPDGiIsospin3Modified = true;
119 }                                                 130 }
120                                                   131 
121 inline void G4ParticlePropertyData::SetPDGMagn << 132 inline 
                                                   >> 133  void  G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
122 {                                                 134 {
123   thePDGMagneticMoment = mageticMoment;        << 135  thePDGiGParity = newGParity;
124   fPDGMagneticMomentModified = true;           << 136  fPDGiGParityModified = true;
125 }                                                 137 }
126                                                << 138   
127 inline void G4ParticlePropertyData::SetPDGiGPa << 139 inline 
128 {                                              << 140  void  G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
129   thePDGiGParity = newGParity;                 << 
130   fPDGiGParityModified = true;                 << 
131 }                                              << 
132                                                << 
133 inline void G4ParticlePropertyData::SetLeptonN << 
134 {                                                 141 {
135   theLeptonNumber = newLeptonNumber;              142   theLeptonNumber = newLeptonNumber;
136   fLeptonNumberModified = true;                   143   fLeptonNumberModified = true;
137 }                                                 144 }
138                                                   145 
139 inline void G4ParticlePropertyData::SetBaryonN << 146 inline 
                                                   >> 147  void  G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
140 {                                                 148 {
141   theBaryonNumber = newBaryonNumber;              149   theBaryonNumber = newBaryonNumber;
142   fBaryonNumberModified = true;                   150   fBaryonNumberModified = true;
143 }                                                 151 }
144                                                << 152   
145 inline void G4ParticlePropertyData::SetQuarkCo << 153 inline 
                                                   >> 154  void  G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
146 {                                                 155 {
147   if ((flavor > 0) && (flavor <= NumberOfQuark << 156   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
148     theQuarkContent[flavor - 1] = newContent;  << 157     theQuarkContent[flavor-1] = newContent;
149     fQuarkContentModified = true;                 158     fQuarkContentModified = true;
150   }                                               159   }
151 }                                                 160 }
152                                                   161 
153 inline void G4ParticlePropertyData::SetAntiQua << 162 inline 
                                                   >> 163  void  G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor, G4int newContent)
154 {                                                 164 {
155   if ((flavor > 0) && (flavor <= NumberOfQuark << 165   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
156     theAntiQuarkContent[flavor - 1] = newConte << 166     theAntiQuarkContent[flavor-1] = newContent;
157     fAntiQuarkContentModified = true;             167     fAntiQuarkContentModified = true;
158   }                                               168   }
159 }                                              << 169 }  
160                                                   170 
161 inline void G4ParticlePropertyData::SetPDGLife << 171 inline 
                                                   >> 172  void  G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
162 {                                                 173 {
163   thePDGLifeTime = newLifeTime;                   174   thePDGLifeTime = newLifeTime;
164   fPDGLifeTimeModified = true;                    175   fPDGLifeTimeModified = true;
165 }                                                 176 }
                                                   >> 177 
                                                   >> 178 
                                                   >> 179 
                                                   >> 180 
                                                   >> 181 
166                                                   182