58   SparseOption( option );
 
   62   for (
size_t i=0; i< 
pList.size(); i++){
 
   64     GeneratePropertyTable(particle);
 
   69 void G4HtmlPPReporter::SparseOption(
const G4String& option)
 
   74   baseDir = savedToken();
 
   76     if(baseDir(baseDir.length()-1)!=
'/') {
 
   80   comment =  savedToken();
 
   83  void G4HtmlPPReporter::GenerateIndex()
 
   86   G4String fileName = baseDir + 
"index.html";
 
   87   std::ofstream 
outFile(fileName, std::ios::out );
 
   88   outFile.setf( std::ios:: scientific, std::ios::floatfield );
 
  102   outFile << sTD << sLFONT << 
"Code" << eLFONT<< eTD; 
 
  103   outFile << sTD << sLFONT << 
"Name" << eLFONT<< eTD; 
 
  104   outFile << sTD << sLFONT << 
"Mass" << eLFONT << eTD;
 
  105   outFile << sTD << sLFONT << 
"Charge" << eLFONT << eTD;
 
  106   outFile << sTD << sLFONT << 
"Life Time" << eLFONT << eTD;
 
  107   outFile << sTD << sLFONT << 
"Anti-Particle" << eLFONT<< eTD; 
 
  114   outFile << sTD <<  
" [GeV/c" << sSUP << 
"2" << eSUP << 
"]" << eTD;
 
  116   outFile << sTD <<  
" [ns]" << eTD;
 
  120   for (
size_t i=0; i< 
pList.size(); i++){
 
  121     if (
pList[i]->GetPDGEncoding()<0) 
continue;
 
  131     if (name == 
"J/psi") fname = 
"jpsi.html";
 
  134     outFile << 
"<A HREF=" << 
'"' << fname << 
'"' << 
">";
 
  147     if  ( (
pList[i]->GetAntiPDGEncoding()!= 0) &&
 
  148           (
pList[i]->GetAntiPDGEncoding() != 
pList[i]->GetPDGEncoding() ) ) {
 
  171   G4String fileName = baseDir + name + 
".html";
 
  173   if (name == 
"J/psi") fileName = baseDir +
"jpsi.html";
 
  174   std::ofstream 
outFile(fileName, std::ios::out );
 
  175   outFile.setf( std::ios:: scientific, std::ios::floatfield );
 
  186   outFile << sTR << sTD << sB << 
"PDG encoding" << eB << eTD;
 
  188   outFile << sTR << sTD << sB << 
"Type" << eB << eTD;
 
  196   outFile << sTR << sTD << sB << 
"Mass" << eB << eTD;
 
  198   outFile << 
" [GeV/c" << sSUP << 
"2" << eSUP << 
"]" << eTD << eTR << 
G4endl;
 
  200   outFile << sTR << sTD << sB << 
"Width" << eB << eTD;
 
  202   outFile << 
" [GeV/c" << sSUP << 
"2" << eSUP << 
"]" << eTD << eTR << 
G4endl;
 
  204   outFile << sTR << sTD << sB << 
"I J" << sSUP << 
"PC"<< eSUP << eB << eTD;
 
  249   outFile << sTR << sTD << sB << 
"Charge" << eB << eTD;
 
  253   outFile << sTR << sTD << sB << 
"Magnetic Moment" << eB << eTD;
 
  258     outFile << sTD <<  
" not defined ";
 
  262   outFile << sTR << sTD << sB << 
"Life Time" << eB << eTD;
 
  268       outFile << sTD << 
"stable" << eTD;
 
  270       outFile << sTD << 
"short-lived" << eTD;
 
  272       outFile << sTD <<  
"not Defined" << eTD;
 
  286   outFile << sTD << sB << 
"flavour " << eB << eTD ;
 
  287   outFile << sTD << sB << 
" quark " << eB << eTD; 
 
  288   outFile << sTD << sB << 
" anti-quark " << eB << eTD; 
 
  291   static const char* quarkName[6] = { 
"d", 
"u", 
"s", 
"c", 
"b", 
"t" };
 
  292   for (
G4int flv = 0; flv <6 ; flv++ ){
 
  294     outFile << sTD << sB << quarkName[flv] << eB << eTD ;
 
  310     outFile << sTD << sB << 
"BR" << eB << eTD ;
 
  311     outFile << sTD << sB << 
"kinematics" << eB << eTD; 
 
  332   outFile << 
"<A HREF=" << 
'"' <<  
"index.html" << 
'"' << 
">back to index</A>";
 
  338  void G4HtmlPPReporter::PrintHeader(std::ofstream& 
outFile)
 
  340   outFile << 
"<HTML>" << 
G4endl;
 
  341   outFile << 
"<HEAD>" << 
G4endl;
 
  342   outFile << 
" <META HTTP-EQUIV=" << 
"\"" << 
" Content-Type" << 
"\"";
 
  343   outFile << 
" CONTENT="  
  344       << 
"\"" << 
"text/html; charset=iso-8859-1"  
  346   outFile << 
" <TITLE>Geant4 Particle List </TITLE>" << 
G4endl;
 
  347   outFile << 
"</HEAD>" << 
G4endl;
 
  348   outFile << 
"<! -- Generated automatically by Geant4, " 
  350   outFile << 
"<BODY>" << 
G4endl;
 
  353  void G4HtmlPPReporter::PrintFooter(std::ofstream& 
outFile)
 
  355   outFile << 
"<HR>" << 
G4endl;
 
  356   outFile << 
"</BODY>" << 
G4endl;
 
  357   outFile << 
"</HTML>" << 
G4endl;
 
  360 const char*  G4HtmlPPReporter::sTABLE = 
"<TABLE WIDTH=";
 
  361 const char*  G4HtmlPPReporter::eTABLE = 
"</TABLE>";
 
  362 const char*  G4HtmlPPReporter::sTR = 
"<TR>";
 
  363 const char*  G4HtmlPPReporter::eTR = 
"</TR>";
 
  364 const char*  G4HtmlPPReporter::sTD = 
"<TD>";
 
  365 const char*  G4HtmlPPReporter::eTD = 
"</TD>";
 
  366 const char*  G4HtmlPPReporter::sB = 
"<B>";
 
  367 const char*  G4HtmlPPReporter::eB = 
"</B>";
 
  368 const char*  G4HtmlPPReporter::sLFONT = 
"<FONT SIZE = +1>";
 
  369 const char*  G4HtmlPPReporter::eLFONT = 
"</FONT>";
 
  370 const char*  G4HtmlPPReporter::sSYMBOL = 
"<FONT FACE = \"symbol\" >";
 
  371 const char*  G4HtmlPPReporter::eSYMBOL = 
"</FONT>";
 
  372 const char*  G4HtmlPPReporter::sSUP = 
"<SUP>";
 
  373 const char*  G4HtmlPPReporter::eSUP = 
"</SUP>";
 
  374 const char*  G4HtmlPPReporter::sSUB = 
"<SUB>";
 
  375 const char*  G4HtmlPPReporter::eSUB = 
"</SUB>";
 
G4int GetPDGiSpin() const 
 
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
 
G4int GetPDGiParity() const 
 
G4int GetNumberOfDaughters() const 
 
G4bool GetPDGStable() const 
 
G4ParticleDefinition * GetDaughter(G4int anIndex)
 
const G4String & GetKinematicsName() const 
 
G4int GetAntiQuarkContent(G4int flavor) const 
 
G4VDecayChannel * GetDecayChannel(G4int index) const 
 
G4int GetPDGEncoding() const 
 
const G4String & GetParticleName() const 
 
G4DecayTable * GetDecayTable() const 
 
G4double GetPDGWidth() const 
 
virtual ~G4HtmlPPReporter()
 
G4int GetQuarkContent(G4int flavor) const 
 
const G4String & GetParticleType() const 
 
G4int GetPDGiConjugation() const 
 
G4bool IsShortLived() const 
 
virtual void Print(const G4String &option="")
 
G4double GetPDGMass() const 
 
static G4ParticleTable * GetParticleTable()
 
G4int GetPDGiIsospin() const 
 
G4double GetPDGLifeTime() const 
 
G4double GetPDGMagneticMoment() const 
 
G4double GetPDGCharge() const