61 for (
size_t i=0; i<
pList.size(); i++){
86 std::ofstream outFile(fileName, std::ios::out );
87 outFile.setf( std::ios:: scientific, std::ios::floatfield );
97 outFile <<
sTABLE <<
'"' <<
"80%" <<
'"' <<
" > " <<
G4endl;
111 outFile <<
sTD <<
" " <<
eTD;
112 outFile <<
sTD <<
" " <<
eTD;
114 outFile <<
sTD <<
" " <<
eTD;
115 outFile <<
sTD <<
" [ns]" <<
eTD;
116 outFile <<
sTD <<
" " <<
eTD;
119 for (
size_t i=0; i<
pList.size(); i++){
120 if (
pList[i]->GetPDGEncoding()<0)
continue;
130 if (
name ==
"J/psi")
fname =
"jpsi.html";
133 outFile <<
"<A HREF=" <<
'"' <<
fname <<
'"' <<
">";
146 if ( (
pList[i]->GetAntiPDGEncoding()!= 0) &&
147 (
pList[i]->GetAntiPDGEncoding() !=
pList[i]->GetPDGEncoding() ) ) {
172 if (
name ==
"J/psi") fileName =
baseDir +
"jpsi.html";
173 std::ofstream outFile(fileName, std::ios::out );
174 outFile.setf( std::ios:: scientific, std::ios::floatfield );
175 outFile << std::setprecision(7) <<
G4endl;
180 outFile <<
"<H2>" <<
name <<
"</H2>" <<
G4endl;
181 outFile <<
"<HR>" <<
G4endl;
184 outFile <<
sTABLE <<
'"' <<
"40%" <<
'"' <<
" > " <<
G4endl;
190 outFile <<
"<HR>" <<
G4endl;
193 outFile <<
sTABLE <<
'"' <<
"60%" <<
'"' <<
" > " <<
G4endl;
205 outFile <<
sTD <<
" ";
207 outFile <<
sTD <<
"1/2 ";
209 outFile <<
sTD <<
"3/2 ";
252 outFile <<
sTR <<
sTD <<
sB <<
"Magnetic Moment" <<
eB <<
eTD;
257 outFile <<
sTD <<
" not defined ";
267 outFile <<
sTD <<
"stable" <<
eTD;
269 outFile <<
sTD <<
"short-lived" <<
eTD;
271 outFile <<
sTD <<
"not Defined" <<
eTD;
277 outFile <<
"<HR>" <<
G4endl;
280 outFile <<
"<H2>" <<
" Quark Content " <<
"</H2>" <<
G4endl;
282 outFile <<
sTABLE <<
'"' <<
"60%" <<
'"' <<
" > " <<
G4endl;
285 outFile <<
sTD <<
sB <<
"flavour " <<
eB <<
eTD ;
286 outFile <<
sTD <<
sB <<
" quark " <<
eB <<
eTD;
287 outFile <<
sTD <<
sB <<
" anti-quark " <<
eB <<
eTD;
290 static const char* quarkName[6] = {
"d",
"u",
"s",
"c",
"b",
"t" };
291 for (
G4int flv = 0; flv <6 ; flv++ ){
293 outFile <<
sTD <<
sB << quarkName[flv] <<
eB <<
eTD ;
299 outFile <<
"<HR>" <<
G4endl;
304 outFile <<
"<H2>" <<
" Decay Table " <<
"</H2>" <<
G4endl;
306 outFile <<
sTABLE <<
'"' <<
"80%" <<
'"' <<
" > " <<
G4endl;
310 outFile <<
sTD <<
sB <<
"kinematics" <<
eB <<
eTD;
327 outFile <<
"<HR>" <<
G4endl;
331 outFile <<
"<A HREF=" <<
'"' <<
"index.html" <<
'"' <<
">back to index</A>";
339 outFile <<
"<HTML>" <<
G4endl;
340 outFile <<
"<HEAD>" <<
G4endl;
341 outFile <<
" <META HTTP-EQUIV=" <<
"\"" <<
" Content-Type" <<
"\"";
342 outFile <<
" CONTENT="
343 <<
"\"" <<
"text/html; charset=iso-8859-1"
345 outFile <<
" <TITLE>Geant4 Particle List </TITLE>" <<
G4endl;
346 outFile <<
"</HEAD>" <<
G4endl;
347 outFile <<
"<! -- Generated automatically by Geant4, "
349 outFile <<
"<BODY>" <<
G4endl;
354 outFile <<
"<HR>" <<
G4endl;
355 outFile <<
"</BODY>" <<
G4endl;
356 outFile <<
"</HTML>" <<
G4endl;
static constexpr double tesla
static constexpr double eplus
static constexpr double second
static constexpr double GeV
static constexpr double MeV
G4VDecayChannel * GetDecayChannel(G4int index) const
void PrintFooter(std::ofstream &)
void SparseOption(const G4String &option)
static const char * sSYMBOL
void GeneratePropertyTable(const G4ParticleDefinition *)
virtual void Print(const G4String &option="")
void PrintHeader(std::ofstream &)
virtual ~G4HtmlPPReporter()
static const char * eSYMBOL
static const char * sTABLE
static const char * eLFONT
static const char * eTABLE
static const char * sLFONT
G4double GetPDGMagneticMoment() const
G4int GetPDGiIsospin() const
G4bool GetPDGStable() const
G4int GetPDGiConjugation() const
const G4String & GetParticleType() const
G4bool IsShortLived() const
G4double GetPDGMass() const
G4int GetPDGiParity() const
G4int GetPDGEncoding() const
G4int GetQuarkContent(G4int flavor) const
G4double GetPDGWidth() const
G4double GetPDGCharge() const
G4int GetPDGiSpin() const
G4DecayTable * GetDecayTable() const
G4double GetPDGLifeTime() const
const G4String & GetParticleName() const
G4int GetAntiQuarkContent(G4int flavor) const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
const G4String & GetKinematicsName() const
G4int GetNumberOfDaughters() const
G4ParticleDefinition * GetDaughter(G4int anIndex)
const char * name(G4int ptype)