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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 11.1)


  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 // G4ParticlePropertyData inline methods imple     26 // G4ParticlePropertyData inline methods implementation
 27 //                                                 27 //
 28 // Author: H.Kurashige, 9 June 2003                28 // Author: H.Kurashige, 9 June 2003
 29 // -------------------------------------------     29 // --------------------------------------------------------------------
 30                                                    30 
 31 inline void G4ParticlePropertyData::SetVerbose <<  31 inline 
                                                   >>  32 void G4ParticlePropertyData::SetVerboseLevel(G4int value)
 32 {                                                  33 {
 33   verboseLevel = value;                            34   verboseLevel = value;
 34 }                                                  35 }
 35                                                    36 
 36 inline G4int G4ParticlePropertyData::GetVerbos <<  37 inline 
                                                   >>  38 G4int G4ParticlePropertyData::GetVerboseLevel() const
 37 {                                                  39 {
 38   return verboseLevel;                             40   return verboseLevel;
 39 }                                                  41 }
 40                                                    42 
 41 inline G4int G4ParticlePropertyData::GetQuarkC <<  43 inline
 42 {                                              <<  44 G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const 
 43   if ((flavor > 0) && (flavor <= NumberOfQuark <<  45 { 
 44     return theQuarkContent[flavor - 1];        <<  46   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
                                                   >>  47   {
                                                   >>  48     return theQuarkContent[flavor-1];
 45   }                                                49   }
 46                                                <<  50   else
 47   return 0;                                    <<  51   {
                                                   >>  52     return 0;
                                                   >>  53   }  
 48 }                                                  54 }
 49                                                    55 
 50 inline G4int G4ParticlePropertyData::GetAntiQu <<  56 inline
 51 {                                              <<  57 G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const 
 52   if ((flavor > 0) && (flavor < NumberOfQuarkF <<  58 { 
 53     return theAntiQuarkContent[flavor - 1];    <<  59   if ((flavor>0) && (flavor<NumberOfQuarkFlavor))
                                                   >>  60   {
                                                   >>  61     return theAntiQuarkContent[flavor-1];
 54   }                                                62   }
 55                                                <<  63   else
 56   return 0;                                    <<  64   {
 57 }                                              <<  65     return 0;
 58                                                <<  66   }  
 59 inline void G4ParticlePropertyData::SetPDGEnco <<  67 }
 60 {                                              <<  68 
 61   thePDGEncoding = aEncoding;                  <<  69 inline 
 62   fPDGEncodingModified = true;                 <<  70 void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
 63   theAntiPDGEncoding = -1 * aEncoding;         <<  71 { 
 64   fAntiPDGEncodingModified = true;             <<  72   thePDGEncoding = aEncoding; 
 65 }                                              <<  73   fPDGEncodingModified = true;  
 66                                                <<  74   theAntiPDGEncoding = -1*aEncoding; 
 67 inline void G4ParticlePropertyData::SetAntiPDG <<  75   fAntiPDGEncodingModified = true;  
 68 {                                              <<  76 }
 69   theAntiPDGEncoding = aEncoding;              <<  77 
 70   fAntiPDGEncodingModified = true;             <<  78 inline 
                                                   >>  79 void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
                                                   >>  80 { 
                                                   >>  81   theAntiPDGEncoding = aEncoding; 
                                                   >>  82   fAntiPDGEncodingModified = true;  
 71 }                                                  83 }
 72                                                    84 
 73 inline void G4ParticlePropertyData::SetPDGMass <<  85 inline 
                                                   >>  86 void G4ParticlePropertyData::SetPDGMass(G4double newMass)
 74 {                                                  87 {
 75   thePDGMass = newMass;                            88   thePDGMass = newMass;
 76   fPDGMassModified = true;                         89   fPDGMassModified = true;
 77 }                                                  90 }
 78                                                    91 
 79 inline void G4ParticlePropertyData::SetPDGWidt <<  92 inline 
                                                   >>  93 void G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
 80 {                                                  94 {
 81   thePDGWidth = newWidth;                          95   thePDGWidth = newWidth;
 82   fPDGWidthModified = true;                        96   fPDGWidthModified = true;
 83 }                                                  97 }
 84                                                    98 
 85 inline void G4ParticlePropertyData::SetPDGChar <<  99 inline 
                                                   >> 100 void G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
 86 {                                                 101 {
 87   thePDGCharge = newCharge;                       102   thePDGCharge = newCharge;
 88   fPDGChargeModified = true;                   << 103   fPDGChargeModified = true;    
 89 }                                                 104 }
 90                                                << 105   
 91 inline void G4ParticlePropertyData::SetPDGiSpi << 106 inline 
                                                   >> 107 void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
 92 {                                                 108 {
 93   thePDGiSpin = newSpin;                       << 109   thePDGiSpin = newSpin; 
 94   fPDGiSpinModified = true;                       110   fPDGiSpinModified = true;
 95 }                                                 111 }
 96                                                   112 
 97 inline void G4ParticlePropertyData::SetPDGiPar << 113 inline 
                                                   >> 114 void G4ParticlePropertyData::SetPDGiParity(G4int newParity)
 98 {                                                 115 {
 99   thePDGiParity = newParity;                      116   thePDGiParity = newParity;
100   fPDGiParityModified = true;                     117   fPDGiParityModified = true;
101 }                                                 118 }
102                                                   119 
103 inline void G4ParticlePropertyData::SetPDGiCon << 120 inline 
104 {                                              << 121 void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
                                                   >> 122 { 
105   thePDGiConjugation = newConjugation;            123   thePDGiConjugation = newConjugation;
106   fPDGiConjugationModified = true;                124   fPDGiConjugationModified = true;
107 }                                                 125 }
108                                                   126 
109 inline void G4ParticlePropertyData::SetPDGiIso << 127 inline 
                                                   >> 128 void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
110 {                                                 129 {
111   thePDGiIsospin = newIsospin;                    130   thePDGiIsospin = newIsospin;
112   fPDGiIsospinModified = true;                    131   fPDGiIsospinModified = true;
113 }                                                 132 }
114                                                   133 
115 inline void G4ParticlePropertyData::SetPDGiIso << 134 inline 
                                                   >> 135 void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
116 {                                                 136 {
117   thePDGiIsospin3 = newIsospin3;                  137   thePDGiIsospin3 = newIsospin3;
118   fPDGiIsospin3Modified = true;                   138   fPDGiIsospin3Modified = true;
119 }                                                 139 }
120                                                << 140  
121 inline void G4ParticlePropertyData::SetPDGMagn << 141 inline
122 {                                              << 142 void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
123   thePDGMagneticMoment = mageticMoment;        << 143 {
124   fPDGMagneticMomentModified = true;           << 144    thePDGMagneticMoment = mageticMoment;
125 }                                              << 145    fPDGMagneticMomentModified = true;
126                                                << 146 }
127 inline void G4ParticlePropertyData::SetPDGiGPa << 147  
128 {                                              << 148 inline 
129   thePDGiGParity = newGParity;                 << 149 void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
130   fPDGiGParityModified = true;                 << 150 {
131 }                                              << 151  thePDGiGParity = newGParity;
132                                                << 152  fPDGiGParityModified = true;
133 inline void G4ParticlePropertyData::SetLeptonN << 153 }
                                                   >> 154   
                                                   >> 155 inline 
                                                   >> 156 void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
134 {                                                 157 {
135   theLeptonNumber = newLeptonNumber;              158   theLeptonNumber = newLeptonNumber;
136   fLeptonNumberModified = true;                   159   fLeptonNumberModified = true;
137 }                                                 160 }
138                                                   161 
139 inline void G4ParticlePropertyData::SetBaryonN << 162 inline 
                                                   >> 163 void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
140 {                                                 164 {
141   theBaryonNumber = newBaryonNumber;              165   theBaryonNumber = newBaryonNumber;
142   fBaryonNumberModified = true;                   166   fBaryonNumberModified = true;
143 }                                                 167 }
144                                                << 168   
145 inline void G4ParticlePropertyData::SetQuarkCo << 169 inline 
146 {                                              << 170 void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
147   if ((flavor > 0) && (flavor <= NumberOfQuark << 171 {
148     theQuarkContent[flavor - 1] = newContent;  << 172   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
                                                   >> 173   {
                                                   >> 174     theQuarkContent[flavor-1] = newContent;
149     fQuarkContentModified = true;                 175     fQuarkContentModified = true;
150   }                                               176   }
151 }                                                 177 }
152                                                   178 
153 inline void G4ParticlePropertyData::SetAntiQua << 179 inline 
154 {                                              << 180 void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor,
155   if ((flavor > 0) && (flavor <= NumberOfQuark << 181                                                   G4int newContent)
156     theAntiQuarkContent[flavor - 1] = newConte << 182 {
                                                   >> 183   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
                                                   >> 184   {
                                                   >> 185     theAntiQuarkContent[flavor-1] = newContent;
157     fAntiQuarkContentModified = true;             186     fAntiQuarkContentModified = true;
158   }                                               187   }
159 }                                              << 188 }  
160                                                   189 
161 inline void G4ParticlePropertyData::SetPDGLife << 190 inline 
                                                   >> 191 void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
162 {                                                 192 {
163   thePDGLifeTime = newLifeTime;                   193   thePDGLifeTime = newLifeTime;
164   fPDGLifeTimeModified = true;                    194   fPDGLifeTimeModified = true;
165 }                                                 195 }
166                                                   196