G4BaryonWidth Class Reference

#include <G4BaryonWidth.hh>

Inheritance diagram for G4BaryonWidth:

G4ResonanceWidth

Public Member Functions

 G4BaryonWidth ()
virtual ~G4BaryonWidth ()
G4bool operator== (const G4BaryonWidth &right) const
G4bool operator!= (const G4BaryonWidth &right) const
virtual G4PhysicsVectorMassDependentWidth (const G4String &name) const

Detailed Description

Definition at line 39 of file G4BaryonWidth.hh.


Constructor & Destructor Documentation

G4BaryonWidth::G4BaryonWidth (  ) 

Definition at line 256 of file G4BaryonWidth.cc.

00256                             : wSize(120)
00257 { 
00258   wMap["N(1440)"] = (G4double*) wN1440;
00259   wMap["N(1520)"] = (G4double*) wN1520;
00260   wMap["N(1535)"] = (G4double*) wN1535;
00261   wMap["N(1650)"] = (G4double*) wN1650;
00262   wMap["N(1675)"] = (G4double*) wN1675;
00263   wMap["N(1680)"] = (G4double*) wN1680;
00264   wMap["N(1700)"] = (G4double*) wN1700;
00265   wMap["N(1710)"] = (G4double*) wN1710;
00266   wMap["N(1720)"] = (G4double*) wN1720;
00267   wMap["N(1900)"] = (G4double*) wN1900;
00268   wMap["N(1990)"] = (G4double*) wN1990;
00269   wMap["N(2090)"] = (G4double*) wN2090;
00270   wMap["N(2190)"] = (G4double*) wN2190;
00271   wMap["N(2220)"] = (G4double*) wN2220;
00272 
00273   wMap["delta"] = (G4double*) wDelta;
00274 
00275   wMap["delta(1600)"] = (G4double*) wD1600;
00276   wMap["delta(1620)"] = (G4double*) wD1620;
00277   wMap["delta(1700)"] = (G4double*) wD1700;
00278   wMap["delta(1900)"] = (G4double*) wD1900;
00279   wMap["delta(1905)"] = (G4double*) wD1905;
00280   wMap["delta(1910)"] = (G4double*) wD1910;
00281   wMap["delta(1920)"] = (G4double*) wD1920;
00282   wMap["delta(1930)"] = (G4double*) wD1930;
00283   wMap["delta(1950)"] = (G4double*) wD1950;
00284 
00285   wMap["lambda(1405)"] = (G4double*) wL1405;
00286   wMap["lambda(1520)"] = (G4double*) wL1520;
00287   wMap["lambda(1600)"] = (G4double*) wL1600;
00288   wMap["lambda(1670)"] = (G4double*) wL1670;
00289   wMap["lambda(1690)"] = (G4double*) wL1690;
00290   wMap["lambda(1800)"] = (G4double*) wL1800;
00291   wMap["lambda(1810)"] = (G4double*) wL1810;
00292   wMap["lambda(1820)"] = (G4double*) wL1820;
00293   wMap["lambda(1830)"] = (G4double*) wL1830;
00294   wMap["lambda(1890)"] = (G4double*) wL1890;
00295   wMap["lambda(2100)"] = (G4double*) wL2100;
00296   wMap["lambda(2110)"] = (G4double*) wL2110;
00297 
00298   wMap["sigma(1385)"] = (G4double*) wS1385;
00299   wMap["sigma(1660)"] = (G4double*) wS1660;
00300   wMap["sigma(1670)"] = (G4double*) wS1670;
00301   wMap["sigma(1750)"] = (G4double*) wS1750;
00302   wMap["sigma(1775)"] = (G4double*) wS1775;
00303   wMap["sigma(1915)"] = (G4double*) wS1915;
00304   wMap["sigma(1940)"] = (G4double*) wS1940;
00305   wMap["sigma(2030)"] = (G4double*) wS2030;
00306 
00307   wMap["xi(1530)"] = (G4double*) wX1530;
00308   wMap["xi(1690)"] = (G4double*) wX1690;
00309   wMap["xi(1820)"] = (G4double*) wX1820;
00310   wMap["xi(1950)"] = (G4double*) wX1950;
00311   wMap["xi(2030)"] = (G4double*) wX2030;
00312 
00313 
00314 }

G4BaryonWidth::~G4BaryonWidth (  )  [virtual]

Definition at line 317 of file G4BaryonWidth.cc.

00318 { }


Member Function Documentation

G4PhysicsVector * G4BaryonWidth::MassDependentWidth ( const G4String name  )  const [virtual]

Implements G4ResonanceWidth.

Definition at line 333 of file G4BaryonWidth.cc.

00334 {
00335   // NOTE: the returned pointer is owned by the client
00336 
00337   if (wMap.find(name) != wMap.end())
00338     {
00339       // width of the requested particle available in the Map
00340       G4PhysicsFreeVector* wVector = new G4PhysicsFreeVector(wSize);
00341       G4String key = name;
00342       std::map <G4String, G4double*, std::less<G4String> >::const_iterator iter;
00343       G4double* wPointer=0;
00344       for (iter = wMap.begin(); iter != wMap.end(); ++iter)
00345         {
00346           G4String str = (*iter).first;
00347           if (str == key)
00348             {
00349               wPointer = (*iter).second; 
00350             }
00351         }
00352       //     G4double* wPointer = wMap[key];
00353       G4int i;
00354       for (i=0; i<wSize; i++)
00355         {
00356           G4double value = *(wPointer + i);
00357           G4double energy = baryonEnergyTable[i] * GeV;
00358           wVector->PutValue(i,energy,value);
00359         }                 
00360       return wVector;
00361     }
00362   else
00363     {
00364       return 0;
00365     }
00366 }

G4bool G4BaryonWidth::operator!= ( const G4BaryonWidth right  )  const

Definition at line 327 of file G4BaryonWidth.cc.

00328 {
00329   return (this != (G4BaryonWidth*) &right);
00330 }

G4bool G4BaryonWidth::operator== ( const G4BaryonWidth right  )  const

Definition at line 321 of file G4BaryonWidth.cc.

00322 {
00323   return (this == (G4BaryonWidth*) &right);
00324 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:29 2013 for Geant4 by  doxygen 1.4.7