#include "G4VProcess.hh"
// Lengths are in mm for OSCAR!
if( (aTrack->GetCreatorProcess()->GetProcessType() == fElectromagnetic &&
aTrack->GetCreatorProcess()->GetProcessName() == "conv") ||
(aTrack->GetCreatorProcess()->GetProcessType() == fDecay &&
aTrack->GetCreatorProcess()->GetProcessName() == "Decay") )
if(fabs(aTrack->GetPosition().z()) < 50. * 10 &&
fabs(aTrack->GetPosition().perp()) < 15. * 10)
trkInfo->storeTrack(true);
<use name=geant4> <use name=clhep>
Mantis/MantisApplication/src scramv1 build
nameoftherun.runid file (CARF:ResumeRun= @{[ ... a huge hexadecimal string ... ]}@) to the end of the .oscarrc file, and run again. The simulation should continue from the last successful event.
#include "CARF/Reco/interface/RecConfig.h"
#include "TrackerReco/TkEvent/interface/TkSimEvent.h"
scramv1 build --fast
theSimTrack.charge() != 0