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


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