CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CMSQGSPSIMPBuilder.cc
Go to the documentation of this file.
1 
4 
5 #include "G4SystemOfUnits.hh"
6 #include "G4ParticleDefinition.hh"
7 #include "G4TheoFSGenerator.hh"
8 #include "G4PreCompoundModel.hh"
9 #include "G4GeneratorPrecompoundInterface.hh"
10 #include "G4QGSParticipants.hh"
11 #include "G4QGSMFragmentation.hh"
12 #include "G4ExcitedStringDecay.hh"
13 
15  theStringModel = new G4QGSModel<G4QGSParticipants>;
16  theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
17  theStringModel->SetFragmentationModel(theStringDecay);
18 }
19 
21  delete theStringDecay;
22  delete theStringModel;
23  delete theQGSM;
24 }
25 
27  G4GeneratorPrecompoundInterface* theCascade = new G4GeneratorPrecompoundInterface;
28  G4PreCompoundModel* thePreEquilib = new G4PreCompoundModel();
29  theCascade->SetDeExcitation(thePreEquilib);
30 
31  G4TheoFSGenerator* theModel = new G4TheoFSGenerator("QGSP");
32  theModel->SetTransport(theCascade);
33  theModel->SetHighEnergyGenerator(theStringModel);
34  theModel->SetMinEnergy(0.0);
35  theModel->SetMaxEnergy(100 * CLHEP::TeV);
36  aP->RegisterMe(theModel);
37 }
void Build(CMSSIMPInelasticProcess *aP)
G4QGSMFragmentation * theQGSM
G4QGSModel< G4QGSParticipants > * theStringModel
G4ExcitedStringDecay * theStringDecay