G4TheoFSGenerator* QGSP_model = new G4TheoFSGenerator();
G4GeneratorPrecompoundInterface* theCascade = new G4GeneratorPrecompoundInterface();
G4ExcitationHandler* theHandler = new G4ExcitationHandler();
G4PreCompoundModel* thePreEquilib = new G4PreCompoundModel(theHandler);
theCascade->SetDeExcitation(thePreEquilib);
QGSP_model->SetTransport(theCascade);
G4QGSMFragmentation* theFragmentation = new G4QGSMFragmentation();
G4ExcitedStringDecay* theStringDecay = new G4ExcitedStringDecay(theFragmentation);
G4QGSModel< G4QGSParticipants >* theStringModel = new G4QGSModel< G4QGSParticipants >;
theStringModel->SetFragmentationModel(theStringDecay);
QGSP_model->SetHighEnergyGenerator(theStringModel);