92{
94
95
97
98 if (name ==
"J/psi") fileName =
baseDir +
"jpsi.txt";
99
100 std::ifstream inFile(fileName, std::ios::in );
101 if (!inFile) return false;
102
103
105
106
111 G4cout <<
"G4TextPPRetriever::ModifyPropertyTable: ";
112 G4cout <<
"particle name or encoding mismatch for " <<
name ;
114 return false;
115 }
116
117
118 G4int iIsoSpin, iSpin, iParity, iConj;
119 inFile >> iIsoSpin >> iSpin >> iParity >> iConj;
124 G4cout <<
"G4TextPPRetriever::ModifyPropertyTable: ";
127 return false;
128 }
129
130
132 inFile >> mass >> width >> charge;
133 mass *= GeV;
134 width *= GeV;
135 charge *= eplus;
139
140
142 inFile >> tlife;
143 tlife *= second;
145
147
148
150 if (dcyTable == 0) return true;
151
153 while (!inFile.eof() ) {
156 inFile >> br >> n_daughters;
157
159
162 }
163
164 idx += 1;
165 if (idx>= dcyTable->
entries())
break;
166 }
167 return true;
168}
G4GLOB_DLL std::ostream G4cout
G4VDecayChannel * GetDecayChannel(G4int index) const
G4DecayTable * GetDecayTable() const
const G4String & GetParticleName() const
void SetPDGMass(G4double newMass)
G4double GetPDGLifeTime() const
G4double GetPDGMass() const
G4int GetPDGiIsospin() const
G4int GetPDGiSpin() const
void SetPDGCharge(G4double newCharge)
G4int GetPDGiParity() const
G4int GetPDGEncoding() const
G4double GetPDGWidth() const
G4int GetPDGiConjugation() const
void SetPDGLifeTime(G4double newLifeTime)
G4double GetPDGCharge() const
void SetPDGWidth(G4double newWidth)
G4ParticlePropertyData * GetParticleProperty(const G4String &aParticleName)
G4bool SetParticleProperty(const G4ParticlePropertyData &newProperty)
void SetBR(G4double value)
G4int GetNumberOfDaughters() const
G4ParticlePropertyTable * pPropertyTable
const char * name(G4int ptype)