G4VEmAngularDistribution.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$
00027 //
00028 // -------------------------------------------------------------------
00029 //
00030 // GEANT4 Class header file
00031 //
00032 // File name:     G4VEmAngularDistribution
00033 //
00034 // Author:        V. Ivanchenko using design of existing 
00035 //                interface G4VBremAngularDistribution
00036 // 
00037 // Creation date: 13 October 2010
00038 //
00039 // Modifications: 
00040 //
00041 // Class Description: 
00042 //
00043 // Abstract base class for polar angle sampling
00044 //
00045 // Class Description: End 
00046 
00047 // -------------------------------------------------------------------
00048 //
00049 
00050 #ifndef G4VEmAngularDistribution_h
00051 #define G4VEmAngularDistribution_h 1
00052 
00053 #include "globals.hh"
00054 #include "Randomize.hh"
00055 #include "G4ThreeVector.hh"
00056 #include "G4DynamicParticle.hh"
00057 
00058 class G4Material;
00059 
00060 class G4VEmAngularDistribution
00061 {
00062 public:
00063 
00064   G4VEmAngularDistribution(const G4String& name);
00065 
00066   virtual ~G4VEmAngularDistribution();
00067 
00068   // Sample direction in global coordinate system,
00069   // this means for zero scattering angle this direction is the same
00070   // as the direction of primary 
00071   virtual G4ThreeVector& SampleDirection(const G4DynamicParticle* dp,
00072                                          G4double finalTotalEnergy,
00073                                          G4int Z,
00074                                          const G4Material*) = 0;
00075 
00076   inline const G4String& GetName() const;
00077 
00078 protected:
00079 
00080   G4ThreeVector fLocalDirection;
00081 
00082 private:
00083 
00084   // hide assignment operator 
00085   G4VEmAngularDistribution & operator=(const  G4VEmAngularDistribution &right);
00086   G4VEmAngularDistribution(const  G4VEmAngularDistribution&);
00087 
00088   G4String fName;
00089 };
00090 
00091 inline const G4String& G4VEmAngularDistribution::GetName() const
00092 {
00093   return fName;
00094 }
00095 
00096 #endif
00097 

Generated on Mon May 27 17:50:11 2013 for Geant4 by  doxygen 1.4.7