62 for (
size_t i=0; i<
pList.size(); i++){
87 std::ofstream outFile(fileName, std::ios::out );
88 outFile.setf( std::ios:: scientific, std::ios::floatfield );
98 outFile <<
sTABLE <<
'"' <<
"80%" <<
'"' <<
" > " <<
G4endl;
112 outFile <<
sTD <<
" " <<
eTD;
113 outFile <<
sTD <<
" " <<
eTD;
115 outFile <<
sTD <<
" " <<
eTD;
116 outFile <<
sTD <<
" [ns]" <<
eTD;
117 outFile <<
sTD <<
" " <<
eTD;
120 for (
size_t i=0; i<
pList.size(); i++){
121 if (
pList[i]->GetPDGEncoding()<0)
continue;
123 outFile << sTR <<
G4endl;;
131 if (name ==
"J/psi") fname =
"jpsi.html";
134 outFile <<
"<A HREF=" <<
'"' << fname <<
'"' <<
">";
135 outFile << name <<
"</A>" << eTD <<
G4endl;
144 outFile << sTD <<
pList[i]->GetPDGLifeTime()/
ns << eTD <<
G4endl;
147 if ( (
pList[i]->GetAntiPDGEncoding()!= 0) &&
148 (
pList[i]->GetAntiPDGEncoding() !=
pList[i]->GetPDGEncoding() ) ) {
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 );
176 outFile << std::setprecision(7) <<
G4endl;
181 outFile <<
"<H2>" << name <<
"</H2>" <<
G4endl;
182 outFile <<
"<HR>" <<
G4endl;
185 outFile <<
sTABLE <<
'"' <<
"40%" <<
'"' <<
" > " <<
G4endl;
191 outFile <<
"<HR>" <<
G4endl;
194 outFile <<
sTABLE <<
'"' <<
"60%" <<
'"' <<
" > " <<
G4endl;
206 outFile <<
sTD <<
" ";
208 outFile <<
sTD <<
"1/2 ";
210 outFile <<
sTD <<
"3/2 ";
253 outFile <<
sTR <<
sTD <<
sB <<
"Magnetic Moment" <<
eB <<
eTD;
256 outFile <<
"[MeV/T]" << eTD <<
eTR <<
G4endl;
258 outFile <<
sTD <<
" not defined ";
265 outFile <<
"[sec]" << eTD <<
G4endl;
268 outFile <<
sTD <<
"stable" <<
eTD;
270 outFile <<
sTD <<
"short-lived" <<
eTD;
272 outFile <<
sTD <<
"not Defined" <<
eTD;
278 outFile <<
"<HR>" <<
G4endl;
281 outFile <<
"<H2>" <<
" Quark Content " <<
"</H2>" <<
G4endl;
283 outFile <<
sTABLE <<
'"' <<
"60%" <<
'"' <<
" > " <<
G4endl;
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 ;
300 outFile <<
"<HR>" <<
G4endl;
305 outFile <<
"<H2>" <<
" Decay Table " <<
"</H2>" <<
G4endl;
307 outFile <<
sTABLE <<
'"' <<
"80%" <<
'"' <<
" > " <<
G4endl;
311 outFile <<
sTD <<
sB <<
"kinematics" <<
eB <<
eTD;
316 outFile << sTR <<
G4endl;;
328 outFile <<
"<HR>" <<
G4endl;
332 outFile <<
"<A HREF=" <<
'"' <<
"index.html" <<
'"' <<
">back to index</A>";
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;
355 outFile <<
"<HR>" <<
G4endl;
356 outFile <<
"</BODY>" <<
G4endl;
357 outFile <<
"</HTML>" <<
G4endl;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4double GetPDGWidth() const
G4int GetPDGiIsospin() const
G4DecayTable * GetDecayTable() const
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
G4double GetPDGLifeTime() const
G4int GetNumberOfDaughters() const
G4int GetPDGiSpin() const
const G4String & GetParticleName() const
virtual void Print(const G4String &option="")
const G4String & GetParticleType() const
G4double GetPDGCharge() const
static constexpr double second
G4int GetPDGiConjugation() const
G4double GetPDGMass() const
void GeneratePropertyTable(const G4ParticleDefinition *)
static const char * eTABLE
G4int GetPDGiParity() const
virtual ~G4HtmlPPReporter()
G4VDecayChannel * GetDecayChannel(G4int index) const
G4int GetQuarkContent(G4int flavor) const
static const char * sLFONT
G4ParticleDefinition * GetDaughter(G4int anIndex)
G4double GetPDGMagneticMoment() const
G4bool GetPDGStable() const
static const char * sSYMBOL
static constexpr double eplus
static const char * eSYMBOL
void PrintHeader(std::ofstream &)
static const char * eLFONT
void PrintFooter(std::ofstream &)
const G4String & GetKinematicsName() const
G4int GetPDGEncoding() const
G4bool IsShortLived() const
G4int GetAntiQuarkContent(G4int flavor) const
void SparseOption(const G4String &option)
static constexpr double GeV
static constexpr double tesla
static const char * sTABLE