#include <G4CascadeHistory.hh>
Definition at line 41 of file G4CascadeHistory.hh.
◆ G4CascadeHistory() [1/2]
G4CascadeHistory::G4CascadeHistory |
( |
G4int |
verbose = 0 | ) |
|
|
inline |
◆ ~G4CascadeHistory()
G4CascadeHistory::~G4CascadeHistory |
( |
| ) |
|
|
inline |
◆ G4CascadeHistory() [2/2]
◆ AddEntry()
Definition at line 106 of file G4CascadeHistory.cc.
void AssignHistoryID(G4CascadParticle &cpart)
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
G4int getHistoryId() const
◆ AddVertex()
Definition at line 59 of file G4CascadeHistory.cc.
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
G4int AddEntry(G4CascadParticle &cpart)
void FillDaughters(G4int iEntry, std::vector< G4CascadParticle > &daug)
◆ AssignHistoryID()
Definition at line 137 of file G4CascadeHistory.cc.
141 G4cout <<
" >>> G4CascadeHistory::NewHistoryID assigning ID " void setHistoryId(G4int id)
G4GLOB_DLL std::ostream G4cout
G4int getHistoryId() const
◆ Clear()
void G4CascadeHistory::Clear |
( |
| ) |
|
Definition at line 50 of file G4CascadeHistory.cc.
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
std::set< G4int > entryPrinted
◆ DropEntry()
Definition at line 127 of file G4CascadeHistory.cc.
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
G4int getHistoryId() const
◆ FillDaughters()
Definition at line 80 of file G4CascadeHistory.cc.
84 G4cout <<
" >>> G4CascadeHistory::FillDaughters " << iEntry <<
G4endl;
90 for (
G4int i=0; i<nDaug; i++) {
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
G4int AddEntry(G4CascadParticle &cpart)
◆ GuessTarget()
const char * G4CascadeHistory::GuessTarget |
( |
const HistoryEntry & |
entry | ) |
const |
|
protected |
Definition at line 205 of file G4CascadeHistory.cc.
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++) {
G4GLOB_DLL std::ostream G4cout
std::vector< HistoryEntry > theHistory
G4double getCharge() const
const G4InuclElementaryParticle & getParticle() const
◆ operator=()
◆ Print()
void G4CascadeHistory::Print |
( |
std::ostream & |
os | ) |
const |
Definition at line 156 of file G4CascadeHistory.cc.
157 if (
verboseLevel) os <<
" >>> G4CascadeHistory::Print" << std::endl;
159 os <<
" Cascade structure: vertices, (-O-) exciton, (***) outgoing" void PrintEntry(std::ostream &os, G4int iEntry) const
G4bool PrintingDone(G4int iEntry) const
◆ PrintEntry()
void G4CascadeHistory::PrintEntry |
( |
std::ostream & |
os, |
|
|
G4int |
iEntry |
|
) |
| const |
|
protected |
Definition at line 169 of file G4CascadeHistory.cc.
170 if (iEntry >=
size())
return;
175 const HistoryEntry& entry =
theHistory[iEntry];
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;
const G4ThreeVector & getPosition() const
void PrintEntry(std::ostream &os, G4int iEntry) const
const char * GuessTarget(const HistoryEntry &entry) const
G4int getGeneration() const
G4bool PrintingDone(G4int iEntry) const
const G4String & GetParticleName() const
std::vector< HistoryEntry > theHistory
G4int getCurrentZone() const
const G4InuclElementaryParticle & getParticle() const
const G4ParticleDefinition * getDefinition() const
G4LorentzVector getMomentum() const
std::set< G4int > entryPrinted
◆ PrintingDone()
G4bool G4CascadeHistory::PrintingDone |
( |
G4int |
iEntry | ) |
const |
|
inlineprotected |
◆ PrintParticle()
void G4CascadeHistory::PrintParticle |
( |
std::ostream & |
os, |
|
|
const G4CascadParticle & |
cpart |
|
) |
| const |
|
protected |
◆ setVerboseLevel()
void G4CascadeHistory::setVerboseLevel |
( |
G4int |
verbose = 0 | ) |
|
|
inline |
◆ size()
G4int G4CascadeHistory::size |
( |
| ) |
const |
|
inlineprotected |
◆ entryPrinted
std::set<G4int> G4CascadeHistory::entryPrinted |
|
mutableprivate |
◆ theHistory
◆ verboseLevel
G4int G4CascadeHistory::verboseLevel |
|
private |
The documentation for this class was generated from the following files: