G4QGSPPionBuilder.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 //---------------------------------------------------------------------------
00029 //
00030 // ClassName:   G4QGSPPionBuilder
00031 //
00032 // Author: 2010 G.Folger
00033 //  devired from G4QGSPPiKBuilder
00034 //
00035 // Modified:
00036 // 17.11.2010 G.Folger, use G4CrossSectionPairGG for relativistic rise of cross
00037 //             section at high energies.
00038 // 30.03.2009 V.Ivanchenko create cross section by new
00039 //
00040 //----------------------------------------------------------------------------
00041 //
00042 #include "G4QGSPPionBuilder.hh"
00043 #include "G4SystemOfUnits.hh"
00044 #include "G4ParticleDefinition.hh"
00045 #include "G4ParticleTable.hh"
00046 #include "G4ProcessManager.hh"
00047 #include "G4PiNuclearCrossSection.hh"
00048 #include "G4CrossSectionPairGG.hh"
00049 
00050 G4QGSPPionBuilder::
00051 G4QGSPPionBuilder(G4bool quasiElastic, G4bool projectileDiffraction) 
00052 {
00053   thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV);
00054   theMin = 12*GeV;
00055   theModel = new G4TheoFSGenerator("QGSP");
00056 
00057   theStringModel = new G4QGSModel< G4QGSParticipants >;
00058   theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
00059   theStringModel->SetFragmentationModel(theStringDecay);
00060   
00061 
00062   theCascade = new G4GeneratorPrecompoundInterface;
00063   thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
00064   theCascade->SetDeExcitation(thePreEquilib);  
00065 
00066   theModel->SetHighEnergyGenerator(theStringModel);
00067   if (quasiElastic)
00068   {
00069      theQuasiElastic=new G4QuasiElasticChannel;
00070      theModel->SetQuasiElasticChannel(theQuasiElastic);
00071   } else 
00072   {  theQuasiElastic=0;}
00073   if ( projectileDiffraction )
00074   {
00075      theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
00076      theModel->SetProjectileDiffraction(theProjectileDiffraction);
00077   } else 
00078   {  theProjectileDiffraction=0;}
00079    
00080   theModel->SetTransport(theCascade);
00081 }
00082  
00083 G4QGSPPionBuilder::
00084 ~G4QGSPPionBuilder() 
00085 {
00086   delete theCascade;
00087   delete thePreEquilib;
00088   if ( theQuasiElastic ) delete theQuasiElastic;
00089   if ( theProjectileDiffraction ) delete theProjectileDiffraction;
00090   delete theStringDecay;
00091   delete theStringModel;
00092   delete theModel;
00093   delete theQGSM;
00094   //delete theHandler;
00095 }
00096 
00097 void G4QGSPPionBuilder::
00098 Build(G4HadronElasticProcess * ) {}
00099 
00100 void G4QGSPPionBuilder::
00101 Build(G4PionPlusInelasticProcess * aP)
00102 {
00103   theModel->SetMinEnergy(theMin);
00104   theModel->SetMaxEnergy(100*TeV);
00105   aP->AddDataSet(thePiData);
00106   aP->RegisterMe(theModel);
00107 }
00108 
00109 void G4QGSPPionBuilder::
00110 Build(G4PionMinusInelasticProcess * aP)
00111 {
00112   theModel->SetMinEnergy(theMin);
00113   theModel->SetMaxEnergy(100*TeV);
00114   aP->AddDataSet(thePiData);
00115   aP->RegisterMe(theModel);
00116 }
00117 
00118 
00119 // 2002 by J.P. Wellisch

Generated on Mon May 27 17:49:34 2013 for Geant4 by  doxygen 1.4.7