G4XNNstarTable Class Reference

#include <G4XNNstarTable.hh>


Public Member Functions

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


Detailed Description

Definition at line 36 of file G4XNNstarTable.hh.


Constructor & Destructor Documentation

G4XNNstarTable::G4XNNstarTable (  ) 

Definition at line 352 of file G4XNNstarTable.cc.

00353 {
00354   xMap["N(1440)0"] = (G4double*) sigmaNN1440;
00355   xMap["N(1440)+"] = (G4double*) sigmaNN1440;
00356   
00357   xMap["N(1520)0"] = (G4double*) sigmaNN1520;
00358   xMap["N(1520)+"] = (G4double*) sigmaNN1520;
00359   
00360   xMap["N(1535)0"] = (G4double*) sigmaNN1535;
00361   xMap["N(1535)+"] = (G4double*) sigmaNN1535;
00362   
00363   xMap["N(1650)0"] = (G4double*) sigmaNN1650;
00364   xMap["N(1650)+"] = (G4double*) sigmaNN1650;
00365   
00366   xMap["N(1675)0"] = (G4double*) sigmaNN1675;
00367   xMap["N(1675)+"] = (G4double*) sigmaNN1675;
00368   
00369   xMap["N(1680)0"] = (G4double*) sigmaNN1680;
00370   xMap["N(1680)+"] = (G4double*) sigmaNN1680;
00371   
00372   xMap["N(1700)0"] = (G4double*) sigmaNN1700;
00373   xMap["N(1700)+"] = (G4double*) sigmaNN1700;
00374   
00375   xMap["N(1710)0"] = (G4double*) sigmaNN1710;
00376   xMap["N(1710)+"] = (G4double*) sigmaNN1710;
00377   
00378   xMap["N(1720)0"] = (G4double*) sigmaNN1720;
00379   xMap["N(1720)+"] = (G4double*) sigmaNN1720;
00380   
00381   xMap["N(1900)0"] = (G4double*) sigmaNN1900;
00382   xMap["N(1900)+"] = (G4double*) sigmaNN1900;
00383     
00384   xMap["N(1990)0"] = (G4double*) sigmaNN1990;
00385   xMap["N(1990)+"] = (G4double*) sigmaNN1990;
00386   
00387   xMap["N(2090)0"] = (G4double*) sigmaNN2090;
00388   xMap["N(2090)+"] = (G4double*) sigmaNN2090;
00389   
00390   xMap["N(2190)0"] = (G4double*) sigmaNN2190;
00391   xMap["N(2190)+"] = (G4double*) sigmaNN2190;
00392   
00393   xMap["N(2220)0"] = (G4double*) sigmaNN2220;
00394   xMap["N(2220)+"] = (G4double*) sigmaNN2220;
00395   
00396   xMap["N(2250)0"] = (G4double*) sigmaNN2250;
00397   xMap["N(2250)+"] = (G4double*) sigmaNN2250;  
00398 }

G4XNNstarTable::~G4XNNstarTable (  )  [virtual]

Definition at line 401 of file G4XNNstarTable.cc.

00402 { }


Member Function Documentation

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

Definition at line 405 of file G4XNNstarTable.cc.

Referenced by G4NNstarBuilder::CrossSectionTable().

00406 {
00407   // NOTE: the returned pointer is owned by the client
00408 
00409   if (xMap.find(particleName) != xMap.end())
00410     {
00411       // Cross section table for the requested particle available in the Map
00412       G4PhysicsFreeVector* sigmaVector = new G4PhysicsFreeVector(sizeNNstar);
00413       std::map <G4String, G4double*, std::less<G4String> >::const_iterator iter;
00414       G4double* sigmaPointer = 0;
00415       for (iter = xMap.begin(); iter != xMap.end(); ++iter)
00416         {
00417           G4String str = (*iter).first;
00418           if (str == particleName)
00419             {
00420               sigmaPointer = (*iter).second; 
00421             }
00422         }   
00423       G4int i;
00424       for (i=0; i<sizeNNstar; i++)
00425         {
00426           G4double value = *(sigmaPointer + i) * millibarn;
00427           G4double energy = energyTable[i] * GeV;
00428           sigmaVector->PutValue(i,energy,value);
00429         }                 
00430       return sigmaVector;
00431     }
00432   else
00433     // No cross section table for the requested particle is available in the Map
00434     return 0;
00435 }

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

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


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