Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4BaryonWidth Class Reference

#include <G4BaryonWidth.hh>

Inheritance diagram for G4BaryonWidth:
Collaboration diagram for G4BaryonWidth:

Public Member Functions

 G4BaryonWidth ()
 
virtual ~G4BaryonWidth ()
 
G4bool operator== (const G4BaryonWidth &right) const
 
G4bool operator!= (const G4BaryonWidth &right) const
 
virtual G4PhysicsVectorMassDependentWidth (const G4String &name) const
 
- Public Member Functions inherited from G4ResonanceWidth
 G4ResonanceWidth ()
 
virtual ~G4ResonanceWidth ()
 

Detailed Description

Definition at line 39 of file G4BaryonWidth.hh.

Constructor & Destructor Documentation

G4BaryonWidth::G4BaryonWidth ( )

Definition at line 256 of file G4BaryonWidth.cc.

256  : wSize(120)
257 {
258  wMap["N(1440)"] = (G4double*) wN1440;
259  wMap["N(1520)"] = (G4double*) wN1520;
260  wMap["N(1535)"] = (G4double*) wN1535;
261  wMap["N(1650)"] = (G4double*) wN1650;
262  wMap["N(1675)"] = (G4double*) wN1675;
263  wMap["N(1680)"] = (G4double*) wN1680;
264  wMap["N(1700)"] = (G4double*) wN1700;
265  wMap["N(1710)"] = (G4double*) wN1710;
266  wMap["N(1720)"] = (G4double*) wN1720;
267  wMap["N(1900)"] = (G4double*) wN1900;
268  wMap["N(1990)"] = (G4double*) wN1990;
269  wMap["N(2090)"] = (G4double*) wN2090;
270  wMap["N(2190)"] = (G4double*) wN2190;
271  wMap["N(2220)"] = (G4double*) wN2220;
272 
273  wMap["delta"] = (G4double*) wDelta;
274 
275  wMap["delta(1600)"] = (G4double*) wD1600;
276  wMap["delta(1620)"] = (G4double*) wD1620;
277  wMap["delta(1700)"] = (G4double*) wD1700;
278  wMap["delta(1900)"] = (G4double*) wD1900;
279  wMap["delta(1905)"] = (G4double*) wD1905;
280  wMap["delta(1910)"] = (G4double*) wD1910;
281  wMap["delta(1920)"] = (G4double*) wD1920;
282  wMap["delta(1930)"] = (G4double*) wD1930;
283  wMap["delta(1950)"] = (G4double*) wD1950;
284 
285  wMap["lambda(1405)"] = (G4double*) wL1405;
286  wMap["lambda(1520)"] = (G4double*) wL1520;
287  wMap["lambda(1600)"] = (G4double*) wL1600;
288  wMap["lambda(1670)"] = (G4double*) wL1670;
289  wMap["lambda(1690)"] = (G4double*) wL1690;
290  wMap["lambda(1800)"] = (G4double*) wL1800;
291  wMap["lambda(1810)"] = (G4double*) wL1810;
292  wMap["lambda(1820)"] = (G4double*) wL1820;
293  wMap["lambda(1830)"] = (G4double*) wL1830;
294  wMap["lambda(1890)"] = (G4double*) wL1890;
295  wMap["lambda(2100)"] = (G4double*) wL2100;
296  wMap["lambda(2110)"] = (G4double*) wL2110;
297 
298  wMap["sigma(1385)"] = (G4double*) wS1385;
299  wMap["sigma(1660)"] = (G4double*) wS1660;
300  wMap["sigma(1670)"] = (G4double*) wS1670;
301  wMap["sigma(1750)"] = (G4double*) wS1750;
302  wMap["sigma(1775)"] = (G4double*) wS1775;
303  wMap["sigma(1915)"] = (G4double*) wS1915;
304  wMap["sigma(1940)"] = (G4double*) wS1940;
305  wMap["sigma(2030)"] = (G4double*) wS2030;
306 
307  wMap["xi(1530)"] = (G4double*) wX1530;
308  wMap["xi(1690)"] = (G4double*) wX1690;
309  wMap["xi(1820)"] = (G4double*) wX1820;
310  wMap["xi(1950)"] = (G4double*) wX1950;
311  wMap["xi(2030)"] = (G4double*) wX2030;
312 
313 
314 }
double G4double
Definition: G4Types.hh:76
G4BaryonWidth::~G4BaryonWidth ( )
virtual

Definition at line 317 of file G4BaryonWidth.cc.

318 { }

Member Function Documentation

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

Implements G4ResonanceWidth.

Definition at line 333 of file G4BaryonWidth.cc.

334 {
335  // NOTE: the returned pointer is owned by the client
336 
337  if (wMap.find(name) != wMap.end())
338  {
339  // width of the requested particle available in the Map
340  G4PhysicsFreeVector* wVector = new G4PhysicsFreeVector(wSize);
341  G4String key = name;
342  std::map <G4String, G4double*, std::less<G4String> >::const_iterator iter;
343  G4double* wPointer=0;
344  for (iter = wMap.begin(); iter != wMap.end(); ++iter)
345  {
346  G4String str = (*iter).first;
347  if (str == key)
348  {
349  wPointer = (*iter).second;
350  }
351  }
352  // G4double* wPointer = wMap[key];
353  G4int i;
354  for (i=0; i<wSize; i++)
355  {
356  G4double value = *(wPointer + i);
357  G4double energy = baryonEnergyTable[i] * GeV;
358  wVector->PutValue(i,energy,value);
359  }
360  return wVector;
361  }
362  else
363  {
364  return 0;
365  }
366 }
const XML_Char * name
Definition: expat.h:151
G4int first(char) const
void PutValue(size_t index, G4double energy, G4double dataValue)
int G4int
Definition: G4Types.hh:78
const XML_Char int const XML_Char * value
Definition: expat.h:331
G4double energy(const ThreeVector &p, const G4double m)
static constexpr double GeV
Definition: G4SIunits.hh:217
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

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

Definition at line 327 of file G4BaryonWidth.cc.

328 {
329  return (this != (G4BaryonWidth*) &right);
330 }
G4bool G4BaryonWidth::operator== ( const G4BaryonWidth right) const

Definition at line 321 of file G4BaryonWidth.cc.

322 {
323  return (this == (G4BaryonWidth*) &right);
324 }

The documentation for this class was generated from the following files: