Definition at line 54 of file G4QCHIPSWorld.hh.
Definition at line 95 of file G4QCHIPSWorld.cc.
96{
97
98
99 static const G4int mnofParts = 512;
100 static const G4bool cf =
true;
101#ifdef debug
102 G4cout<<
"G4QCHIPSWorld::GetParticles: n="<<nOfParts<<
" particles"<<
G4endl;
103#endif
104
105 if(nOfParts>0)
106 {
107#ifdef debug
108 G4cout<<
"G4QCHIPSWorld::GetParticles: Creating CHIPS World of nP="<<nOfParts<<
G4endl;
109#endif
110 G4int curNP=GetQWorld().size();
111
112 if(nOfParts>curNP)
113 {
114 if (nOfParts>mnofParts)
115 {
116 G4cerr<<
"***G4QCHIPSWorld::GetPartics:nOfParts="<<nOfParts<<
">"<<mnofParts<<
G4endl;
117 nOfParts=mnofParts;
118 }
119 if (nOfParts<10) nOfParts=10;
120#ifdef debug
121 G4cout<<
"G4QCHIPSWorld::GetParticles: n="<<nOfParts<<
",c="<<curNP<<
G4endl;
122#endif
123 for (
G4int i=curNP; i<nOfParts; i++)
124 {
125#ifdef debug
126 G4cout<<
"G4QCHIPSWorld::GetParticles: Create particle QCode="<<i<<
G4endl;
127#endif
129#ifdef debug
130 G4cout<<
"G4QCHIPSWorld::GetParticles: Particle QCode="<<i<<
" is created."<<
G4endl;
131#endif
132
133
134 GetQWorld().push_back(curPart);
135#ifdef debug
136 G4cout<<
"G4QCHIPSWorld::GetParticles: Pt#"<<i<<
"("<<nOfParts<<
") is done"<<
G4endl;
137#endif
138 }
139 }
140
141 }
142#ifdef debug
143 G4cout<<
"G4QCHIPSWorld::GetParticles: TotalPt#"<<GetQWorld().size()<<
G4endl;
144#endif
145 return &GetQWorld();
146}
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
Referenced by G4ChiralInvariantPhaseSpace::ApplyYourself(), G4QCaptureAtRest::AtRestDoIt(), G4QAtomicElectronScattering::G4QAtomicElectronScattering(), G4QDiffraction::G4QDiffraction(), G4QLowEnergy::G4QLowEnergy(), G4QCoherentChargeExchange::PostStepDoIt(), G4QDiffraction::PostStepDoIt(), G4QElastic::PostStepDoIt(), G4QInelastic::PostStepDoIt(), G4QIonIonElastic::PostStepDoIt(), G4QLowEnergy::PostStepDoIt(), G4QStringChipsParticleLevelInterface::Propagate(), G4StringChipsInterface::Propagate(), G4StringChipsParticleLevelInterface::Propagate(), G4QAtomicElectronScattering::SetParameters(), G4QCaptureAtRest::SetParameters(), and G4QInelastic::SetParameters().