CMS 3D CMS Logo

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 }
CMSQGSPSIMPBuilder::theQGSM
G4QGSMFragmentation * theQGSM
Definition: CMSQGSPSIMPBuilder.h:26
CMSSIMPInelasticProcess
Definition: CMSSIMPInelasticProcess.h:8
CMSQGSPSIMPBuilder::theStringDecay
G4ExcitedStringDecay * theStringDecay
Definition: CMSQGSPSIMPBuilder.h:25
CMSSIMPInelasticProcess.h
CMSQGSPSIMPBuilder::CMSQGSPSIMPBuilder
CMSQGSPSIMPBuilder()
Definition: CMSQGSPSIMPBuilder.cc:14
CMSQGSPSIMPBuilder.h
CMSQGSPSIMPBuilder::theStringModel
G4QGSModel< G4QGSParticipants > * theStringModel
Definition: CMSQGSPSIMPBuilder.h:24
CMSQGSPSIMPBuilder::~CMSQGSPSIMPBuilder
~CMSQGSPSIMPBuilder()
Definition: CMSQGSPSIMPBuilder.cc:20
CMSQGSPSIMPBuilder::Build
void Build(CMSSIMPInelasticProcess *aP)
Definition: CMSQGSPSIMPBuilder.cc:26