Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 << 22 // >> 23 // the GEANT4 collaboration. >> 24 // >> 25 // By copying, distributing or modifying the Program (or any work >> 26 // based on the Program) you indicate your acceptance of this statement, >> 27 // and all its terms. >> 28 // >> 29 // $Id: G4HtmlPPReporter.cc,v 1.3 2004/02/13 06:33:39 kurasige Exp $ >> 30 // GEANT4 tag $Name: geant4-08-00-patch-01 $ >> 31 // >> 32 // >> 33 // --------------------------------------------------------------- 26 #include "G4HtmlPPReporter.hh" 34 #include "G4HtmlPPReporter.hh" 27 << 28 #include "G4DecayTable.hh" << 29 #include "G4ParticleDefinition.hh" << 30 #include "G4ParticleTable.hh" << 31 #include "G4SystemOfUnits.hh" << 32 #include "G4Tokenizer.hh" << 33 #include "G4VDecayChannel.hh" << 34 #include "G4ios.hh" 35 #include "G4ios.hh" 35 #include "globals.hh" 36 #include "globals.hh" 36 << 37 #include "G4DecayTable.hh" >> 38 #include "G4Tokenizer.hh" 37 #include <iomanip> 39 #include <iomanip> 38 40 39 void G4HtmlPPReporter::Print(const G4String& o << 41 G4HtmlPPReporter::G4HtmlPPReporter():G4VParticlePropertyReporter() >> 42 { >> 43 >> 44 } >> 45 >> 46 G4HtmlPPReporter::~G4HtmlPPReporter() >> 47 { >> 48 } >> 49 >> 50 void G4HtmlPPReporter::Print(const G4String& option) 40 { 51 { 41 SparseOption(option); << 52 SparseOption( option ); 42 53 43 GenerateIndex(); 54 GenerateIndex(); 44 55 45 for (const auto& i : pList) { << 56 for (size_t i=0; i< pList.size(); i++){ 46 G4ParticleDefinition* particle = << 57 G4ParticleDefinition* particle = G4ParticleTable::GetParticleTable()->FindParticle( pList[i]->GetParticleName() ); 47 G4ParticleTable::GetParticleTable()->Fin << 48 GeneratePropertyTable(particle); 58 GeneratePropertyTable(particle); 49 } 59 } 50 } << 60 } >> 61 51 62 52 void G4HtmlPPReporter::SparseOption(const G4St 63 void G4HtmlPPReporter::SparseOption(const G4String& option) 53 { 64 { 54 G4Tokenizer savedToken(option); << 65 G4Tokenizer savedToken( option ); 55 << 66 56 // 1st option : base directory 67 // 1st option : base directory 57 baseDir = savedToken(); 68 baseDir = savedToken(); 58 if (!baseDir.empty()) { << 69 if (!baseDir.isNull()) { 59 if (baseDir.back() != '/') { << 70 if(baseDir(baseDir.length()-1)!='/') { 60 baseDir += "/"; 71 baseDir += "/"; 61 } 72 } 62 } 73 } 63 comment = savedToken(); << 74 comment = savedToken(); 64 } 75 } 65 76 66 void G4HtmlPPReporter::GenerateIndex() << 77 void G4HtmlPPReporter::GenerateIndex() 67 { 78 { 68 //--- open index file ----- 79 //--- open index file ----- 69 G4String fileName = baseDir + "index.html"; 80 G4String fileName = baseDir + "index.html"; 70 std::ofstream outFile(fileName, std::ios::ou << 81 std::ofstream outFile(fileName, std::ios::out ); 71 outFile.setf(std::ios::scientific, std::ios: << 82 outFile.setf( std::ios:: scientific, std::ios::floatfield ); 72 << 83 73 // header 84 // header 74 PrintHeader(outFile); 85 PrintHeader(outFile); 75 << 86 76 // comment 87 // comment 77 outFile << "<! -- " << comment << " -- !> " << 88 outFile << "<! -- " << comment << " --!> " << G4endl; 78 outFile << G4endl; 89 outFile << G4endl; 79 << 90 >> 91 80 outFile << sTABLE << '"' << "80%" << '"' << 92 outFile << sTABLE << '"' << "80%" << '"' << " > " << G4endl; 81 << 93 82 // Raw #1 94 // Raw #1 83 outFile << sTR; 95 outFile << sTR; 84 outFile << sTD << sLFONT << "Code" << eLFONT << 96 outFile << sTD << sLFONT << "Code" << eLFONT<< eTD; 85 outFile << sTD << sLFONT << "Name" << eLFONT << 97 outFile << sTD << sLFONT << "Name" << eLFONT<< eTD; 86 outFile << sTD << sLFONT << "Mass" << eLFONT << 98 outFile << sTD << sLFONT << "Anti-Particle" << eLFONT<< eTD; 87 outFile << sTD << sLFONT << "Charge" << eLFO << 99 outFile << eTR << G4endl;; 88 outFile << sTD << sLFONT << "Life Time" << e << 100 89 outFile << sTD << sLFONT << "Anti-Particle" << 101 for (size_t i=0; i< pList.size(); i++){ 90 outFile << eTR << G4endl; << 102 if (pList[i]->GetPDGEncoding()<0) continue; 91 ; << 92 << 93 // Raw #2 << 94 outFile << sTR; << 95 outFile << sTD << " " << eTD; << 96 outFile << sTD << " " << eTD; << 97 outFile << sTD << " [GeV/c" << sSUP << "2" < << 98 outFile << sTD << " " << eTD; << 99 outFile << sTD << " [ns]" << eTD; << 100 outFile << sTD << " " << eTD; << 101 outFile << eTR << G4endl; << 102 ; << 103 103 104 for (const auto& i : pList) { << 104 outFile << sTR << G4endl;; 105 if (i->GetPDGEncoding() < 0) continue; << 106 << 107 outFile << sTR << G4endl; << 108 ; << 109 // column 1 : endcoding 105 // column 1 : endcoding 110 outFile << sTD << i->GetPDGEncoding() << e << 106 outFile << sTD << pList[i]->GetPDGEncoding() << eTD << G4endl;; 111 ; << 107 // column 2 : name 112 // column 2 : name << 108 G4String name = pList[i]->GetParticleName(); 113 G4String name = i->GetParticleName(); << 109 114 << 110 G4String fname = name +".html"; 115 G4String fname = name + ".html"; << 116 // exception 111 // exception 117 if (name == "J/psi") fname = "jpsi.html"; 112 if (name == "J/psi") fname = "jpsi.html"; 118 << 113 119 outFile << sTD; 114 outFile << sTD; 120 outFile << "<A HREF=" << '"' << fname << ' 115 outFile << "<A HREF=" << '"' << fname << '"' << ">"; 121 outFile << name << "</A>" << eTD << G4endl 116 outFile << name << "</A>" << eTD << G4endl; 122 << 117 123 // column 3 mass << 118 // column 3 AntiParticle 124 outFile << sTD << i->GetPDGMass() / GeV << << 119 if ( (pList[i]->GetAntiPDGEncoding()!= 0) && 125 << 120 (pList[i]->GetAntiPDGEncoding() != pList[i]->GetPDGEncoding() ) ) { 126 // column 4 charge << 121 G4ParticleDefinition* anti_particle = G4ParticleTable::GetParticleTable()->FindParticle( pList[i]->GetAntiPDGEncoding() ); 127 outFile << sTD << i->GetPDGCharge() / eplu << 122 128 << 123 outFile << sTD << anti_particle->GetParticleName() << eTD << G4endl;; 129 // column 5 life time << 130 outFile << sTD << i->GetPDGLifeTime() / ns << 131 << 132 // column 6 AntiParticle << 133 if ((i->GetAntiPDGEncoding() != 0) && (i-> << 134 G4ParticleDefinition* anti_particle = << 135 G4ParticleTable::GetParticleTable()->F << 136 << 137 outFile << sTD << anti_particle->GetPart << 138 ; << 139 } 124 } 140 << 125 outFile << eTR << G4endl;; 141 // end raw << 142 outFile << eTR << G4endl; << 143 ; << 144 } 126 } 145 << 127 146 outFile << eTABLE << G4endl; 128 outFile << eTABLE << G4endl; 147 << 129 148 // footer 130 // footer 149 PrintFooter(outFile); << 131 PrintFooter(outFile); >> 132 150 } 133 } 151 134 152 void G4HtmlPPReporter::GeneratePropertyTable(c << 135 void G4HtmlPPReporter::GeneratePropertyTable(G4ParticleDefinition* particle) 153 { 136 { 154 if (particle->GetPDGEncoding() < 0) return; << 137 if (particle->GetPDGEncoding()<0) return; 155 138 156 G4String name = particle->GetParticleName(); 139 G4String name = particle->GetParticleName(); 157 //--- open index file ----- 140 //--- open index file ----- 158 G4String fileName = baseDir + name + ".html" 141 G4String fileName = baseDir + name + ".html"; 159 // exception 142 // exception 160 if (name == "J/psi") fileName = baseDir + "j << 143 if (name == "J/psi") fileName = baseDir +"jpsi.html"; 161 std::ofstream outFile(fileName, std::ios::ou << 144 std::ofstream outFile(fileName, std::ios::out ); 162 outFile.setf(std::ios::scientific, std::ios: << 145 outFile.setf( std::ios:: scientific, std::ios::floatfield ); 163 outFile << std::setprecision(7) << G4endl; 146 outFile << std::setprecision(7) << G4endl; 164 147 165 PrintHeader(outFile); 148 PrintHeader(outFile); 166 << 149 167 // particle name 150 // particle name 168 outFile << "<H2>" << name << "</H2>" << G4en 151 outFile << "<H2>" << name << "</H2>" << G4endl; 169 outFile << "<HR>" << G4endl; 152 outFile << "<HR>" << G4endl; 170 153 171 // encoding, type 154 // encoding, type 172 outFile << sTABLE << '"' << "40%" << '"' << 155 outFile << sTABLE << '"' << "40%" << '"' << " > " << G4endl; 173 outFile << sTR << sTD << sB << "PDG encoding 156 outFile << sTR << sTD << sB << "PDG encoding" << eB << eTD; 174 outFile << sTD << particle->GetPDGEncoding() << 157 outFile << sTD << particle->GetPDGEncoding() << eTD << eTR << G4endl; 175 outFile << sTR << sTD << sB << "Type" << eB 158 outFile << sTR << sTD << sB << "Type" << eB << eTD; 176 outFile << sTD << particle->GetParticleType( << 159 outFile << sTD << particle->GetParticleType() << eTD << eTR << G4endl; 177 outFile << eTABLE << G4endl; 160 outFile << eTABLE << G4endl; 178 outFile << "<HR>" << G4endl; 161 outFile << "<HR>" << G4endl; 179 162 180 // Properties << 163 // Properties 181 outFile << sTABLE << '"' << "60%" << '"' << 164 outFile << sTABLE << '"' << "60%" << '"' << " > " << G4endl; 182 // mass 165 // mass 183 outFile << sTR << sTD << sB << "Mass" << eB 166 outFile << sTR << sTD << sB << "Mass" << eB << eTD; 184 outFile << sTD << particle->GetPDGMass() / G << 167 outFile << sTD << particle->GetPDGMass()/GeV; 185 outFile << " [GeV/c" << sSUP << "2" << eSUP 168 outFile << " [GeV/c" << sSUP << "2" << eSUP << "]" << eTD << eTR << G4endl; 186 // width 169 // width 187 outFile << sTR << sTD << sB << "Width" << eB 170 outFile << sTR << sTD << sB << "Width" << eB << eTD; 188 outFile << sTD << particle->GetPDGWidth() / << 171 outFile << sTD << particle->GetPDGWidth()/GeV; 189 outFile << " [GeV/c" << sSUP << "2" << eSUP 172 outFile << " [GeV/c" << sSUP << "2" << eSUP << "]" << eTD << eTR << G4endl; 190 // IJPC 173 // IJPC 191 outFile << sTR << sTD << sB << "I J" << sSUP << 174 outFile << sTR << sTD << sB << "I J" << sSUP << "PC"<< eSUP << eB << eTD; 192 if (particle->GetPDGiIsospin() < 0) { << 175 if ( particle->GetPDGiIsospin() <0 ) { 193 outFile << sTD << " "; 176 outFile << sTD << " "; 194 } << 177 } else if ( particle->GetPDGiIsospin() == 1) { 195 else if (particle->GetPDGiIsospin() == 1) { << 196 outFile << sTD << "1/2 "; 178 outFile << sTD << "1/2 "; >> 179 } else if ( particle->GetPDGiIsospin() == 3) { >> 180 outFile << sTD << "3/2 "; >> 181 } else { >> 182 outFile << sTD << particle->GetPDGiIsospin()/2 << " "; 197 } 183 } 198 else if (particle->GetPDGiIsospin() == 3) { << 184 if ( particle->GetPDGiSpin() == 1) { 199 outFile << sTD << "3/2 "; << 200 } << 201 else { << 202 outFile << sTD << particle->GetPDGiIsospin << 203 } << 204 if (particle->GetPDGiSpin() == 1) { << 205 outFile << "1/2"; 185 outFile << "1/2"; 206 } << 186 } else if ( particle->GetPDGiSpin() == 3) { 207 else if (particle->GetPDGiSpin() == 3) { << 187 outFile << "3/2"; 208 outFile << "3/2"; << 188 } else if ( particle->GetPDGiSpin() == 5) { 209 } << 189 outFile << "5/2"; 210 else if (particle->GetPDGiSpin() == 5) { << 190 } else if ( particle->GetPDGiSpin() == 7) { 211 outFile << "5/2"; << 191 outFile << "7/2"; 212 } << 192 } else if ( particle->GetPDGiSpin() == 9) { 213 else if (particle->GetPDGiSpin() == 7) { << 193 outFile << "9/2"; 214 outFile << "7/2"; << 194 } else if ( particle->GetPDGiSpin() == 11) { 215 } << 195 outFile << "11/2"; 216 else if (particle->GetPDGiSpin() == 9) { << 196 } else if ( particle->GetPDGiSpin() == 13) { 217 outFile << "9/2"; << 197 outFile << "13/2"; 218 } << 198 } else { 219 else if (particle->GetPDGiSpin() == 11) { << 199 outFile << particle->GetPDGiSpin()/2; 220 outFile << "11/2"; << 221 } << 222 else if (particle->GetPDGiSpin() == 13) { << 223 outFile << "13/2"; << 224 } << 225 else { << 226 outFile << particle->GetPDGiSpin() / 2; << 227 } 200 } 228 outFile << sSUP << sSYMBOL; 201 outFile << sSUP << sSYMBOL; 229 if (particle->GetPDGiParity() == +1) { << 202 if (particle->GetPDGiParity() == +1 ){ 230 outFile << "+"; << 203 outFile << "+"; 231 } << 204 } else if (particle->GetPDGiParity() == -1 ){ 232 else if (particle->GetPDGiParity() == -1) { << 205 outFile << "-"; 233 outFile << "-"; << 206 } else { 234 } << 235 else { << 236 outFile << " "; 207 outFile << " "; 237 } 208 } 238 if (particle->GetPDGiConjugation() == +1) { << 209 if (particle->GetPDGiConjugation() == +1 ){ 239 outFile << "+"; << 210 outFile << "+"; 240 } << 211 } else if (particle->GetPDGiConjugation() == -1 ){ 241 else if (particle->GetPDGiConjugation() == - << 212 outFile << "-"; 242 outFile << "-"; << 213 } else { 243 } << 244 else { << 245 outFile << " "; 214 outFile << " "; 246 } 215 } 247 outFile << eSYMBOL << eSUP; 216 outFile << eSYMBOL << eSUP; 248 outFile << eTD << eTR << G4endl; << 217 outFile << eTD << eTR << G4endl; 249 // charge 218 // charge 250 outFile << sTR << sTD << sB << "Charge" << e 219 outFile << sTR << sTD << sB << "Charge" << eB << eTD; 251 outFile << sTD << particle->GetPDGCharge() / << 220 outFile << sTD << particle->GetPDGCharge()/eplus; 252 outFile << eTD << eTR << G4endl; 221 outFile << eTD << eTR << G4endl; 253 // Magnetic Moment << 254 outFile << sTR << sTD << sB << "Magnetic Mom << 255 if (particle->GetPDGMagneticMoment() != 0.0) << 256 outFile << sTD << particle->GetPDGMagnetic << 257 outFile << "[MeV/T]" << eTD << eTR << G4en << 258 } << 259 else { << 260 outFile << sTD << " not defined "; << 261 outFile << eTD << eTR << G4endl; << 262 } << 263 // life time 222 // life time 264 outFile << sTR << sTD << sB << "Life Time" < 223 outFile << sTR << sTD << sB << "Life Time" << eB << eTD; 265 if (particle->GetPDGLifeTime() > 0.0) { << 224 if ( particle->GetPDGLifeTime() >0.0 ) { 266 outFile << sTD << particle->GetPDGLifeTime << 225 outFile << sTD << particle->GetPDGLifeTime()/second; 267 outFile << "[sec]" << eTD << G4endl; 226 outFile << "[sec]" << eTD << G4endl; 268 } << 227 } else { 269 else { << 270 if (particle->GetPDGStable()) { 228 if (particle->GetPDGStable()) { 271 outFile << sTD << "stable" << eTD; 229 outFile << sTD << "stable" << eTD; 272 } << 230 } else if (particle->IsShortLived()) { 273 else if (particle->IsShortLived()) { << 274 outFile << sTD << "short-lived" << eTD; 231 outFile << sTD << "short-lived" << eTD; 275 } << 232 } else { 276 else { << 233 outFile << sTD << "not Defined" << eTD; 277 outFile << sTD << "not Defined" << eTD; << 278 } 234 } 279 } 235 } 280 outFile << eTR << G4endl; 236 outFile << eTR << G4endl; 281 237 282 outFile << eTABLE << G4endl; 238 outFile << eTABLE << G4endl; 283 outFile << "<HR>" << G4endl; 239 outFile << "<HR>" << G4endl; 284 240 285 // Qurak content << 241 // Qurak content 286 outFile << "<H2>" << 242 outFile << "<H2>" << " Quark Content " << "</H2>" << G4endl; 287 << " Quark Content " << 288 << "</H2>" << G4endl; << 289 243 290 outFile << sTABLE << '"' << "60%" << '"' << 244 outFile << sTABLE << '"' << "60%" << '"' << " > " << G4endl; 291 << 245 292 outFile << sTR; 246 outFile << sTR; 293 outFile << sTD << sB << "flavour " << eB << << 247 outFile << sTD << sB << "flavour " << eB << eTD ; 294 outFile << sTD << sB << " quark " << eB << e << 248 outFile << sTD << sB << " quark " << eB << eTD; 295 outFile << sTD << sB << " anti-quark " << eB << 249 outFile << sTD << sB << " anti-quark " << eB << eTD; 296 outFile << eTR; 250 outFile << eTR; 297 251 298 static const char* quarkName[6] = {"d", "u", << 252 static const char* quarkName[6] = { "d", "u", "s", "c", "b", "t" }; 299 for (G4int flv = 0; flv < 6; flv++) { << 253 for (G4int flv = 0; flv <6 ; flv++ ){ 300 outFile << sTR; 254 outFile << sTR; 301 outFile << sTD << sB << quarkName[flv] << << 255 outFile << sTD << sB << quarkName[flv] << eB << eTD ; 302 outFile << sTD << sB << particle->GetQuark << 256 outFile << sTD << sB << particle->GetQuarkContent(flv+1) << eB << eTD ; 303 outFile << sTD << sB << particle->GetAntiQ << 257 outFile << sTD << sB << particle->GetAntiQuarkContent(flv+1) << eB << eTD ; 304 outFile << eTR; 258 outFile << eTR; 305 } 259 } 306 outFile << eTABLE << G4endl; 260 outFile << eTABLE << G4endl; 307 outFile << "<HR>" << G4endl; 261 outFile << "<HR>" << G4endl; 308 262 309 // Decay Table << 263 // Decay Table 310 G4DecayTable* dcyTable = particle->GetDecayT << 264 G4DecayTable* dcyTable = particle->GetDecayTable(); 311 if (dcyTable != nullptr) { << 265 if (dcyTable != 0) { 312 outFile << "<H2>" << 266 outFile << "<H2>" << " Decay Table " << "</H2>" << G4endl; 313 << " Decay Table " << 314 << "</H2>" << G4endl; << 315 267 316 outFile << sTABLE << '"' << "80%" << '"' < 268 outFile << sTABLE << '"' << "80%" << '"' << " > " << G4endl; 317 << 269 318 outFile << sTR; 270 outFile << sTR; 319 outFile << sTD << sB << "BR" << eB << eTD; << 271 outFile << sTD << sB << "BR" << eB << eTD ; 320 outFile << sTD << sB << "kinematics" << eB << 272 outFile << sTD << sB << "kinematics" << eB << eTD; 321 outFile << eTR; 273 outFile << eTR; 322 274 323 for (G4int i = 0; i < dcyTable->entries(); << 275 for (G4int i=0; i< dcyTable->entries(); i++){ 324 G4VDecayChannel* channel = dcyTable->Get << 276 G4VDecayChannel * channel = dcyTable->GetDecayChannel(i); 325 outFile << sTR << G4endl; << 277 outFile << sTR << G4endl;; 326 ; << 327 // column 1 : BR 278 // column 1 : BR 328 outFile << sTD << channel->GetBR() << eT 279 outFile << sTD << channel->GetBR() << eTD; 329 // column 2 : Kinematics 280 // column 2 : Kinematics 330 outFile << sTD << channel->GetKinematics 281 outFile << sTD << channel->GetKinematicsName() << eTD; 331 // column 3.. : daughters 282 // column 3.. : daughters 332 for (G4int j = 0; j < channel->GetNumber << 283 for (G4int j=0; j< channel->GetNumberOfDaughters(); j++){ 333 outFile << sTD << channel->GetDaughter 284 outFile << sTD << channel->GetDaughter(j)->GetParticleName() << eTD; 334 } 285 } 335 outFile << eTR << G4endl; 286 outFile << eTR << G4endl; 336 } 287 } 337 outFile << eTABLE << G4endl; 288 outFile << eTABLE << G4endl; 338 outFile << "<HR>" << G4endl; 289 outFile << "<HR>" << G4endl; 339 } 290 } 340 << 291 341 outFile << sB; 292 outFile << sB; 342 outFile << "<A HREF=" << '"' << "index.html" << 293 outFile << "<A HREF=" << '"' << "index.html" << '"' << ">back to index</A>"; 343 outFile << eB << G4endl; 294 outFile << eB << G4endl; 344 295 345 PrintFooter(outFile); << 296 PrintFooter(outFile); 346 } 297 } 347 298 348 void G4HtmlPPReporter::PrintHeader(std::ofstre << 299 void G4HtmlPPReporter::PrintHeader(std::ofstream& outFile) 349 { 300 { 350 outFile << "<HTML>" << G4endl; 301 outFile << "<HTML>" << G4endl; 351 outFile << "<HEAD>" << G4endl; 302 outFile << "<HEAD>" << G4endl; 352 outFile << " <META HTTP-EQUIV=" << 303 outFile << " <META HTTP-EQUIV=" << "\"" << " Content-Type" << "\""; 353 << "\"" << 304 outFile << " CONTENT=" << "\"" << "text/html; charset=iso-8859-1" << "\"" << ">" << G4endl; 354 << " Content-Type" << 355 << "\""; << 356 outFile << " CONTENT=" << 357 << "\"" << 358 << "text/html; charset=iso-8859-1" << 359 << "\"" << 360 << ">" << G4endl; << 361 outFile << " <TITLE>Geant4 Particle List </T 305 outFile << " <TITLE>Geant4 Particle List </TITLE>" << G4endl; 362 outFile << "</HEAD>" << G4endl; 306 outFile << "</HEAD>" << G4endl; 363 outFile << "<! -- Generated automatically by << 307 outFile << "<!-- Generated automatically by Geant4, "; 364 << " -- !>" << G4endl; << 308 outFile << " -- >" << G4endl; 365 outFile << "<BODY>" << G4endl; 309 outFile << "<BODY>" << G4endl; 366 } 310 } 367 311 368 void G4HtmlPPReporter::PrintFooter(std::ofstre << 312 void G4HtmlPPReporter::PrintFooter(std::ofstream& outFile) 369 { 313 { 370 outFile << "<HR>" << G4endl; 314 outFile << "<HR>" << G4endl; 371 outFile << "</BODY>" << G4endl; 315 outFile << "</BODY>" << G4endl; 372 outFile << "</HTML>" << G4endl; 316 outFile << "</HTML>" << G4endl; 373 } 317 } 374 318 375 const char* G4HtmlPPReporter::sTABLE = "<TABLE << 319 const char* G4HtmlPPReporter::sTABLE = "<TABLE WIDTH="; 376 const char* G4HtmlPPReporter::eTABLE = "</TABL << 320 const char* G4HtmlPPReporter::eTABLE = "</TABLE>"; 377 const char* G4HtmlPPReporter::sTR = "<TR>"; << 321 const char* G4HtmlPPReporter::sTR = "<TR>"; 378 const char* G4HtmlPPReporter::eTR = "</TR>"; << 322 const char* G4HtmlPPReporter::eTR = "</TR>"; 379 const char* G4HtmlPPReporter::sTD = "<TD>"; << 323 const char* G4HtmlPPReporter::sTD = "<TD>"; 380 const char* G4HtmlPPReporter::eTD = "</TD>"; << 324 const char* G4HtmlPPReporter::eTD = "</TD>"; 381 const char* G4HtmlPPReporter::sB = "<B>"; << 325 const char* G4HtmlPPReporter::sB = "<B>"; 382 const char* G4HtmlPPReporter::eB = "</B>"; << 326 const char* G4HtmlPPReporter::eB = "</B>"; 383 const char* G4HtmlPPReporter::sLFONT = "<FONT << 327 const char* G4HtmlPPReporter::sLFONT = "<FONT SIZE = +1>"; 384 const char* G4HtmlPPReporter::eLFONT = "</FONT << 328 const char* G4HtmlPPReporter::eLFONT = "</FONT>"; 385 const char* G4HtmlPPReporter::sSYMBOL = "<FONT << 329 const char* G4HtmlPPReporter::sSYMBOL = "<FONT FACE = \"symbol\" >"; 386 const char* G4HtmlPPReporter::eSYMBOL = "</FON << 330 const char* G4HtmlPPReporter::eSYMBOL = "</FONT>"; 387 const char* G4HtmlPPReporter::sSUP = "<SUP>"; << 331 const char* G4HtmlPPReporter::sSUP = "<SUP>"; 388 const char* G4HtmlPPReporter::eSUP = "</SUP>"; << 332 const char* G4HtmlPPReporter::eSUP = "</SUP>"; 389 const char* G4HtmlPPReporter::sSUB = "<SUB>"; << 333 const char* G4HtmlPPReporter::sSUB = "<SUB>"; 390 const char* G4HtmlPPReporter::eSUB = "</SUB>"; << 334 const char* G4HtmlPPReporter::eSUB = "</SUB>"; >> 335 >> 336 391 337