60 theTotalResult( NULL ), isInitialized( false )
68 delete theTotalResult;
75 productionModel =
model;
86 void CexmcHadronicProcess::CalculateTargetNucleus(
90 if ( numberOfElements > 1 )
93 "material is more than 1.\n Only the first "
94 "element will be chosen for target nucleus" <<
G4endl;
109 void CexmcHadronicProcess::FillTotalResult(
G4HadFinalState * hadFinalState,
114 theTotalResult->
Clear();
125 for (
G4int i( 0 ); i < numberOfSecondaries; ++i )
137 newTrack->SetWeight( newWeight );
142 hadFinalState->
Clear();
153 theTotalResult->
Clear();
156 return theTotalResult;
166 if ( ! isInitialized )
169 isInitialized =
true;
175 FillTotalResult( result, track );
186 static_cast< CexmcIncidentParticleTrackInfo * >( trackInfo ) );
191 return theTotalResult;
198 if ( ! productionModel )
204 if ( ! incidentParticle )
207 return particle == *incidentParticle;