G4XDeltaNstarTable Class Reference

#include <G4XDeltaNstarTable.hh>


Public Member Functions

 G4XDeltaNstarTable ()
virtual ~G4XDeltaNstarTable ()
virtual const G4PhysicsVectorCrossSectionTable (const G4String &particleName) const
G4bool operator== (const G4XDeltaNstarTable &right) const
G4bool operator!= (const G4XDeltaNstarTable &right) const


Detailed Description

Definition at line 36 of file G4XDeltaNstarTable.hh.


Constructor & Destructor Documentation

G4XDeltaNstarTable::G4XDeltaNstarTable (  ) 

Definition at line 376 of file G4XDeltaNstarTable.cc.

00377 {
00378   xMap["N(1440)0"] = (G4double*) sigmaDN1440;
00379   xMap["N(1440)+"] = (G4double*) sigmaDN1440;
00380   
00381   xMap["N(1520)0"] = (G4double*) sigmaDN1520;
00382   xMap["N(1520)+"] = (G4double*) sigmaDN1520;
00383   
00384   xMap["N(1535)0"] = (G4double*) sigmaDN1535;
00385   xMap["N(1535)+"] = (G4double*) sigmaDN1535;
00386   
00387   xMap["N(1650)0"] = (G4double*) sigmaDN1650;
00388   xMap["N(1650)+"] = (G4double*) sigmaDN1650;
00389   
00390   xMap["N(1675)0"] = (G4double*) sigmaDN1675;
00391   xMap["N(1675)+"] = (G4double*) sigmaDN1675;
00392   
00393   xMap["N(1680)0"] = (G4double*) sigmaDN1680;
00394   xMap["N(1680)+"] = (G4double*) sigmaDN1680;
00395   
00396   xMap["N(1700)0"] = (G4double*) sigmaDN1700;
00397   xMap["N(1700)+"] = (G4double*) sigmaDN1700;
00398   
00399   xMap["N(1710)0"] = (G4double*) sigmaDN1710;
00400   xMap["N(1710)+"] = (G4double*) sigmaDN1710;
00401   
00402   xMap["N(1720)0"] = (G4double*) sigmaDN1720;
00403   xMap["N(1720)+"] = (G4double*) sigmaDN1720;
00404   
00405   xMap["N(1900)0"] = (G4double*) sigmaDN1900;
00406   xMap["N(1900)+"] = (G4double*) sigmaDN1900;
00407     
00408   xMap["N(1990)0"] = (G4double*) sigmaDN1990;
00409   xMap["N(1990)+"] = (G4double*) sigmaDN1990;
00410   
00411   xMap["N(2090)0"] = (G4double*) sigmaDN2090;
00412   xMap["N(2090)+"] = (G4double*) sigmaDN2090;
00413   
00414   xMap["N(2190)0"] = (G4double*) sigmaDN2190;
00415   xMap["N(2190)+"] = (G4double*) sigmaDN2190;
00416   
00417   xMap["N(2220)0"] = (G4double*) sigmaDN2220;
00418   xMap["N(2220)+"] = (G4double*) sigmaDN2220;
00419   
00420   xMap["N(2250)0"] = (G4double*) sigmaDN2250;
00421   xMap["N(2250)+"] = (G4double*) sigmaDN2250; 
00422 }

G4XDeltaNstarTable::~G4XDeltaNstarTable (  )  [virtual]

Definition at line 425 of file G4XDeltaNstarTable.cc.

00426 { }


Member Function Documentation

const G4PhysicsVector * G4XDeltaNstarTable::CrossSectionTable ( const G4String particleName  )  const [virtual]

Definition at line 429 of file G4XDeltaNstarTable.cc.

Referenced by G4DeltaNstarBuilder::CrossSectionTable().

00430 {
00431    // NOTE: the returned pointer is owned by the client
00432 
00433   if (xMap.find(particleName) != xMap.end())
00434     {
00435       // Cross section table for the requested particle available in the Map
00436       G4PhysicsFreeVector* sigmaVector = new G4PhysicsFreeVector(sizeDeltaNstar);
00437       std::map <G4String, G4double*, std::less<G4String> >::const_iterator iter;
00438       G4double* sigmaPointer = 0;
00439       for (iter = xMap.begin(); iter != xMap.end(); ++iter)
00440         {
00441           G4String str = (*iter).first;
00442           if (str == particleName)
00443             {
00444               sigmaPointer = (*iter).second; 
00445             }
00446         }
00447 
00448       G4int i;
00449       for (i=0; i<sizeDeltaNstar; i++)
00450         {
00451           G4double value = *(sigmaPointer + i) * 0.5* millibarn;
00452           G4double energy = energyTable[i] * GeV;
00453           sigmaVector->PutValue(i,energy,value);
00454         }           
00455       return sigmaVector;
00456     }
00457   else
00458     // No cross section table for the requested particle is available in the Map
00459     return 0;
00460 }

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

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


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