43 for (
G4int i=0; i<10; i++)
dId[i] = -1;
60 std::vector<G4CascadParticle>& daug) {
84 G4cout <<
" >>> G4CascadeHistory::FillDaughters " << iEntry <<
G4endl;
90 for (
G4int i=0; i<nDaug; i++) {
141 G4cout <<
" >>> G4CascadeHistory::NewHistoryID assigning ID "
157 if (
verboseLevel) os <<
" >>> G4CascadeHistory::Print" << std::endl;
159 os <<
" Cascade structure: vertices, (-O-) exciton, (***) outgoing"
170 if (iEntry >=
size())
return;
181 std::ios::fmtflags osFlags = os.flags();
183 os <<
"#" << std::setw(3+indent) << iEntry;
195 os <<
" -> N=" << entry.
n << std::endl;
196 for (
G4int i=0; i<entry.
n; i++) {
199 }
else os << std::endl;
208 if (entry.
n < 0)
return "-O-";
209 if (entry.
n == 0)
return "***";
216 G4int targetQ = (
G4int)-cpart.getParticle().getCharge();
218 for (
G4int i=0; i<entry.
n; i++) {
221 G4cout <<
"cdaug " << i <<
" ID " << entry.
dId[i] <<
": " << cdaug;
228 if (targetB==1 && targetQ==0)
return "n";
229 if (targetB==1 && targetQ==1)
return "p";
230 if (targetB==2 && targetQ==0)
return "nn";
231 if (targetB==2 && targetQ==1)
return "pn";
232 if (targetB==2 && targetQ==2)
return "pp";
235 G4cout <<
" ERROR identifying target: deltaB " << targetB
236 <<
" deltaQ " << targetQ <<
" from\n" << cpart <<
" to" <<
G4endl;
237 for (
G4int j=0; j<entry.
n; j++) {
G4LorentzVector getMomentum() const
G4bool PrintingDone(G4int iEntry) const
G4int getGeneration() const
void setHistoryId(G4int id)
void Print(std::ostream &os) const
const G4ParticleDefinition * getDefinition() const
void AssignHistoryID(G4CascadParticle &cpart)
const G4InuclElementaryParticle & getParticle() const
const G4String & GetParticleName() const
void PrintEntry(std::ostream &os, G4int iEntry) const
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
void DropEntry(const G4CascadParticle &cpart)
G4int AddEntry(G4CascadParticle &cpart)
std::ostream & operator<<(std::ostream &os, const G4CascadeHistory &history)
G4int getCurrentZone() const
G4double getCharge() const
G4int getHistoryId() const
const G4ThreeVector & getPosition() const
const char * GuessTarget(const HistoryEntry &entry) const
G4int AddVertex(G4CascadParticle &cpart, std::vector< G4CascadParticle > &daug)
std::set< G4int > entryPrinted
void FillDaughters(G4int iEntry, std::vector< G4CascadParticle > &daug)