G4AdjointPrimaryGenerator.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 //
00029 //      Module:         G4AdjointPrimaryGenerator
00030 //      Author:         L. Desorgher
00031 //      Organisation:   SpaceIT GmbH
00032 //      Contract:       ESA contract 21435/08/NL/AT
00033 //      Customer:       ESA/ESTEC
00035 //
00036 // CHANGE HISTORY
00037 // --------------
00038 //      ChangeHistory: 
00039 //              November 2009 creation by L. Desorgher, Splitting of G4AdjointPrimaryGeneratorAction in two classes  G4AdjointPrimaryGeneratorAction and G4AdjointPrimaryGenerator              
00040 //
00041 //-------------------------------------------------------------
00042 //      Documentation:
00043 //              This class represents the Primary Generator that generate vertex (energy,position and direction) of primary adjoint particles.
00044 //              It is used by  G4AdjointPrimaryGeneratorAction. If the adjoint source is selected by the user as being on the external boundary of a volume
00045 //              it uses the class G4AdjointPosOnPhysVolGenerator to generate the vertex positions and directions. Otherwise  G4SingleParticleSource is used. 
00046 //              
00047 //              
00048 //
00049 #ifndef G4AdjointPrimaryGenerator_h
00050 #define G4AdjointPrimaryGenerator_h 1
00051 #include "globals.hh"
00052 #include"G4ThreeVector.hh"
00053 #include <vector>
00054 #include <map>
00055 #include <iterator>
00056 
00057 class G4AdjointPosOnPhysVolGenerator;
00058 class G4Event;
00059 class G4SingleParticleSource;
00060 class G4ParticleDefinition;
00062 //
00063 class G4AdjointPrimaryGenerator 
00064 {
00065   public: //constructor, destructor
00066 
00067     G4AdjointPrimaryGenerator();    
00068    ~G4AdjointPrimaryGenerator();
00069 
00070   public: //public methods
00071     
00072     void GenerateAdjointPrimaryVertex(G4Event* anEvt,G4ParticleDefinition* adj_part,G4double E1,G4double E2);
00073     void SetSphericalAdjointPrimarySource(G4double radius, G4ThreeVector pos);
00074     void SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(const G4String& volume_name);
00075 
00076   private: //attributes
00077 
00078     //The class responsible for the random generation of  positions and direction of primaries for adjoint source set on the external surface of
00079     //a G4 volume
00080     G4AdjointPosOnPhysVolGenerator* theG4AdjointPosOnPhysVolGenerator;
00081     
00082     G4SingleParticleSource* theSingleParticleSource;
00083     
00084     //Type of adjoint source
00085     //--------------------
00086     G4String type_of_adjoint_source; //Spherical ExtSurfaceOfAVolume
00087     G4double radius_spherical_source;
00088     G4ThreeVector center_spherical_source;
00089 };
00090 #endif
00091 

Generated on Mon May 27 17:47:37 2013 for Geant4 by  doxygen 1.4.7