processes/electromagnetic/utils/include/G4EmMultiModel.hh

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: G4EmMultiModel.hh,v 1.6 2007/05/22 17:31:57 vnivanch Exp $
00027 // GEANT4 tag $Name: geant4-09-01-patch-01 $
00028 //
00029 // -------------------------------------------------------------------
00030 //
00031 // GEANT4 Class header file
00032 //
00033 //
00034 // File name:     G4EmMultiModel
00035 //
00036 // Author:        Vladimir Ivanchenko
00037 //
00038 // Creation date: 03.05.2004
00039 //
00040 // Modifications:
00041 // 15-04-05 optimize internal interface (V.Ivanchenko)
00042 //
00043 // Class Description:
00044 //
00045 // Energy loss model using several G4VEmModels
00046 
00047 // -------------------------------------------------------------------
00048 //
00049 
00050 #ifndef G4EmMultiModel_h
00051 #define G4EmMultiModel_h 1
00052 
00053 #include "globals.hh"
00054 #include "G4VEmModel.hh"
00055 #include <vector>
00056 
00057 class G4Region;
00058 class G4PhysicsTable;
00059 class G4DynamicParticle;
00060 
00061 class G4EmMultiModel :  public G4VEmModel
00062 {
00063 
00064 public:
00065 
00066   G4EmMultiModel(const G4String& nam = "MultiModel");
00067 
00068   virtual ~G4EmMultiModel();
00069 
00070   void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00071 
00072   G4double MinEnergyCut(const G4ParticleDefinition*,
00073                         const G4MaterialCutsCouple*);
00074 
00075 
00076   G4double ComputeDEDX(const G4MaterialCutsCouple*,
00077                        const G4ParticleDefinition*,
00078                        G4double kineticEnergy,
00079                        G4double cutEnergy);
00080 
00081   G4double CrossSection(const G4MaterialCutsCouple*,
00082                         const G4ParticleDefinition*,
00083                         G4double kineticEnergy,
00084                         G4double cutEnergy,
00085                         G4double maxEnergy);
00086 
00087   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00088                          const G4MaterialCutsCouple*,
00089                          const G4DynamicParticle*,
00090                          G4double tmin,
00091                          G4double tmax);
00092 
00093   void DefineForRegion(const G4Region*);
00094 
00095   void AddModel(G4VEmModel*, G4double tmin, G4double tmax);
00096 
00097 protected:
00098 
00099   G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
00100                                     G4double kineticEnergy);
00101 
00102 private: 
00103 
00104   //  hide assignment operator
00105   G4EmMultiModel & operator=(const  G4EmMultiModel &right);
00106   G4EmMultiModel(const  G4EmMultiModel&);
00107 
00108   G4int                         nModels;
00109   std::vector<G4VEmModel*>      model;
00110   G4DataVector                  tsecmin;
00111   G4DataVector                  cross_section;
00112 
00113 };
00114 
00115 #endif
00116 

Generated on Fri Apr 11 17:10:11 2008 for Geant4 by  doxygen 1.4.7