66 theParticleIterator = theParticleTable->
GetIterator();
69 theParticleIterator->
reset();
70 while( (*theParticleIterator)() ){
99 if (name ==
"J/psi") fileName =
baseDir +
"jpsi.txt";
101 std::ifstream inFile(fileName, std::ios::in );
102 if (!inFile)
return false;
112 G4cout <<
"G4TextPPRetriever::ModifyPropertyTable: ";
113 G4cout <<
"particle name or encoding mismatch for " <<
name ;
119 G4int iIsoSpin, iSpin, iParity, iConj;
120 inFile >> iIsoSpin >> iSpin >> iParity >> iConj;
125 G4cout <<
"G4TextPPRetriever::ModifyPropertyTable: ";
133 inFile >> mass >> width >> charge;
151 if (dcyTable == 0)
return true;
154 while (!inFile.eof() ) {
157 inFile >> br >> n_daughters;
166 if (idx>= dcyTable->
entries())
break;
G4bool SetParticleProperty(const G4ParticlePropertyData &newProperty)
void SetBR(G4double value)
G4bool ModifyPropertyTable(const G4ParticleDefinition *)
G4int GetNumberOfDaughters() const
virtual void Retrieve(const G4String &option="")
const XML_Char const XML_Char * encoding
G4ParticlePropertyData * GetParticleProperty(const G4String &aParticleName)
void SparseOption(const G4String &option)
G4double GetPDGMass() const
G4VDecayChannel * GetDecayChannel(G4int index) const
G4int GetPDGiIsospin() const
G4int GetPDGEncoding() const
G4double GetPDGCharge() const
static constexpr double second
G4int GetPDGiSpin() const
G4ParticlePropertyTable * pPropertyTable
void SetPDGCharge(G4double newCharge)
const G4String & GetParticleName() const
G4double GetPDGLifeTime() const
G4DecayTable * GetDecayTable() const
void SetPDGWidth(G4double newWidth)
G4int GetPDGiParity() const
virtual ~G4TextPPRetriever()
G4GLOB_DLL std::ostream G4cout
void reset(G4bool ifSkipIon=true)
static constexpr double eplus
#define theParticleIterator
static G4ParticleTable * GetParticleTable()
void SetPDGLifeTime(G4double newLifeTime)
static constexpr double GeV
G4double GetPDGWidth() const
G4int GetPDGiConjugation() const
G4PTblDicIterator * GetIterator() const
void SetPDGMass(G4double newMass)