42 for (
G4int i=0; i<10; i++)
dId[i] = -1;
59 std::vector<G4CascadParticle>& daug) {
83 G4cout <<
" >>> G4CascadeHistory::FillDaughters " << iEntry <<
G4endl;
89 for (
G4int i=0; i<nDaug; i++) {
140 G4cout <<
" >>> G4CascadeHistory::NewHistoryID assigning ID "
156 if (
verboseLevel) os <<
" >>> G4CascadeHistory::Print" << std::endl;
158 os <<
" Cascade structure: vertices, (-O-) exciton, (***) outgoing"
169 if (iEntry >=
size())
return;
180 std::ios::fmtflags osFlags = os.flags();
181 os.setf(std::ios::left);
182 os <<
"#" << std::setw(3+indent) << iEntry;
194 os <<
" -> N=" << entry.
n << std::endl;
195 for (
G4int i=0; i<entry.
n; i++) {
198 }
else os << std::endl;
207 if (entry.
n < 0)
return "-O-";
208 if (entry.
n == 0)
return "***";
217 for (
G4int i=0; i<entry.
n; i++) {
220 G4cout <<
"cdaug " << i <<
" ID " << entry.
dId[i] <<
": " << cdaug;
227 if (targetB==1 && targetQ==0)
return "n";
228 if (targetB==1 && targetQ==1)
return "p";
229 if (targetB==2 && targetQ==0)
return "nn";
230 if (targetB==2 && targetQ==1)
return "pn";
231 if (targetB==2 && targetQ==2)
return "pp";
234 G4cout <<
" ERROR identifying target: deltaB " << targetB
235 <<
" deltaQ " << targetQ <<
" from\n" << cpart <<
" to" <<
G4endl;
236 for (
G4int j=0; j<entry.
n; j++) {
std::ostream & operator<<(std::ostream &os, const G4CascadeHistory &history)
G4GLOB_DLL std::ostream G4cout
G4int getHistoryId() const
G4int getGeneration() const
const G4InuclElementaryParticle & getParticle() const
void setHistoryId(G4int id)
G4LorentzVector getMomentum() const
G4int getCurrentZone() const
const G4ThreeVector & getPosition() const
void PrintEntry(std::ostream &os, G4int iEntry) const
void FillDaughters(G4int iEntry, std::vector< G4CascadParticle > &daug)
void Print(std::ostream &os) const
G4int AddVertex(G4CascadParticle &cpart, std::vector< G4CascadParticle > &daug)
void DropEntry(const G4CascadParticle &cpart)
G4int AddEntry(G4CascadParticle &cpart)
std::set< G4int > entryPrinted
void AssignHistoryID(G4CascadParticle &cpart)
G4bool PrintingDone(G4int iEntry) const
const char * GuessTarget(const HistoryEntry &entry) const
std::vector< HistoryEntry > theHistory
const G4ParticleDefinition * getDefinition() const
G4double getCharge() const
const G4String & GetParticleName() const