G4ParticlePropertyData.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 
00030 inline 
00031  void G4ParticlePropertyData::SetVerboseLevel(G4int value)
00032 {
00033    verboseLevel = value;
00034 }
00035 
00036 inline 
00037  G4int G4ParticlePropertyData::GetVerboseLevel() const
00038 {
00039    return verboseLevel;
00040 }
00041 
00042 inline
00043  G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const 
00044 { 
00045   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
00046     return theQuarkContent[flavor-1];
00047   }else {
00048     return 0;
00049   }  
00050 }
00051 
00052 inline
00053  G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const 
00054 { 
00055   if ((flavor>0) && (flavor<NumberOfQuarkFlavor)){
00056     return theAntiQuarkContent[flavor-1];
00057   }else {
00058     return 0;
00059   }  
00060 }
00061 
00062  
00063 inline 
00064  void  G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
00065 { 
00066   thePDGEncoding = aEncoding; 
00067   fPDGEncodingModified = true;  
00068   theAntiPDGEncoding = -1*aEncoding; 
00069   fAntiPDGEncodingModified = true;  
00070 }
00071 
00072 inline 
00073  void  G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
00074 { 
00075   theAntiPDGEncoding = aEncoding; 
00076   fAntiPDGEncodingModified = true;  
00077 }
00078 
00079 inline 
00080  void  G4ParticlePropertyData::SetPDGMass(G4double newMass)
00081 {
00082   thePDGMass = newMass;
00083   fPDGMassModified = true;
00084 }
00085 
00086 inline 
00087  void  G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
00088 {
00089   thePDGWidth = newWidth;
00090   fPDGWidthModified = true;
00091 }
00092 
00093 inline 
00094  void  G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
00095 {
00096   thePDGCharge = newCharge;
00097   fPDGChargeModified = true;            
00098 }
00099   
00100 inline 
00101  void  G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
00102 {
00103   thePDGiSpin = newSpin; 
00104   fPDGiSpinModified = true;
00105 }
00106 
00107 inline 
00108  void  G4ParticlePropertyData::SetPDGiParity(G4int newParity)
00109 {
00110   thePDGiParity = newParity;
00111   fPDGiParityModified = true;
00112 }
00113 
00114 inline 
00115  void  G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
00116 { 
00117   thePDGiConjugation = newConjugation;
00118   fPDGiConjugationModified = true;
00119 }
00120 
00121 inline 
00122  void  G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
00123 {
00124   thePDGiIsospin = newIsospin;
00125   fPDGiIsospinModified = true;
00126 }
00127 
00128 inline 
00129  void  G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
00130 {
00131   thePDGiIsospin3 = newIsospin3;
00132   fPDGiIsospin3Modified = true;
00133 }
00134  
00135 inline
00136  void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
00137 {
00138    thePDGMagneticMoment = mageticMoment;
00139    fPDGMagneticMomentModified = true;
00140 }
00141  
00142 inline 
00143  void  G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
00144 {
00145  thePDGiGParity = newGParity;
00146  fPDGiGParityModified = true;
00147 }
00148   
00149 inline 
00150  void  G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
00151 {
00152   theLeptonNumber = newLeptonNumber;
00153   fLeptonNumberModified = true;
00154 }
00155 
00156 inline 
00157  void  G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
00158 {
00159   theBaryonNumber = newBaryonNumber;
00160   fBaryonNumberModified = true;
00161 }
00162   
00163 inline 
00164  void  G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
00165 {
00166   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
00167     theQuarkContent[flavor-1] = newContent;
00168     fQuarkContentModified = true;
00169   }
00170 }
00171 
00172 inline 
00173  void  G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor, G4int newContent)
00174 {
00175   if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
00176     theAntiQuarkContent[flavor-1] = newContent;
00177     fAntiQuarkContentModified = true;
00178   }
00179 }  
00180 
00181 inline 
00182  void  G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
00183 {
00184   thePDGLifeTime = newLifeTime;
00185   fPDGLifeTimeModified = true;
00186 }
00187 
00188 
00189 
00190 
00191 

Generated on Mon May 27 17:49:16 2013 for Geant4 by  doxygen 1.4.7