G4AntiNeutronAnnihilationAtRest.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 //     G4AntiNeutronAnnihilationAtRest physics process
00027 //     Larry Felawka (TRIUMF), April 1998
00028 //---------------------------------------------------------------------
00029 
00030 #ifndef G4AntiNeutronAnnihilationAtRest_h
00031 #define G4AntiNeutronAnnihilationAtRest_h 1
00032 
00033 // Class Description:
00034 //
00035 // Process for absorption of n-bar at rest. 
00036 // To be used in your physics list in case you need this physics.
00037  
00038 #include "globals.hh"
00039 #include "Randomize.hh" 
00040 #include "G4VRestProcess.hh"
00041 #include "G4VParticleChange.hh"
00042 #include "G4ParticleDefinition.hh"
00043 #include "G4GHEKinematicsVector.hh"
00044 #include "G4HadronicProcessType.hh"
00045 
00046 class G4AntiNeutronAnnihilationAtRest : public G4VRestProcess
00047  
00048 { 
00049   private:
00050   // hide assignment operator as private 
00051       G4AntiNeutronAnnihilationAtRest& operator=(const G4AntiNeutronAnnihilationAtRest &right);
00052       G4AntiNeutronAnnihilationAtRest(const G4AntiNeutronAnnihilationAtRest& );
00053    
00054   public:
00055  
00056      G4AntiNeutronAnnihilationAtRest(const G4String& processName ="AntiNeutronAnnihilationAtRest", 
00057                        G4ProcessType   aType = fHadronic );
00058  
00059     ~G4AntiNeutronAnnihilationAtRest();
00060 
00061      G4bool IsApplicable(const G4ParticleDefinition&);
00062 
00063      void PreparePhysicsTable(const G4ParticleDefinition&);
00064 
00065      void BuildPhysicsTable(const G4ParticleDefinition&);
00066 
00067      G4double AtRestGetPhysicalInteractionLength(const G4Track&,
00068                                                  G4ForceCondition*);
00069 
00070   // zero mean lifetime
00071      G4double GetMeanLifeTime(const G4Track& ,
00072                               G4ForceCondition* ) {return 0.0;}
00073 
00074      G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&); 
00075 
00076   // return number of secondaries produced
00077      G4int GetNumberOfSecondaries();
00078 
00079   // pointer to array containg kinematics of secondaries
00080      G4GHEKinematicsVector* GetSecondaryKinematics();
00081 
00082   private:
00083 
00084      void GenerateSecondaries();
00085      void Poisso( G4float, G4int* );
00086      void Normal( G4float* );
00087      void AntiNeutronAnnihilation( G4int* );
00088      G4double ExNu( G4float );
00089      G4int NFac( G4int );
00090 
00091   private:
00092 
00093 // global time-of-flight of stopped AntiNeutron
00094      G4float  globalTime;
00095 
00096 // atomic mass of target nucleus
00097      G4float  targetAtomicMass;
00098 
00099 // charge of target nucleus
00100      G4float  targetCharge;
00101 
00102      G4GHEKinematicsVector* pv;
00103      G4GHEKinematicsVector* eve;
00104      G4GHEKinematicsVector* gkin;
00105 
00106      G4float  evapEnergy1;
00107      G4float  evapEnergy3;
00108 
00109      G4int    ngkine;
00110 
00111      G4int    ntot;
00112      G4GHEKinematicsVector result;
00113 
00114      G4float  massPionMinus;
00115      G4float  massPionZero;
00116      G4float  massPionPlus;
00117      G4float  massGamma;
00118      G4float  massAntiNeutron;
00119      G4float  massNeutron;
00120 
00121      G4ParticleDefinition* pdefGamma;
00122      G4ParticleDefinition* pdefPionPlus;
00123      G4ParticleDefinition* pdefPionZero;
00124      G4ParticleDefinition* pdefPionMinus;
00125      G4ParticleDefinition* pdefProton;
00126      G4ParticleDefinition* pdefNeutron;
00127      G4ParticleDefinition* pdefAntiNeutron;
00128      G4ParticleDefinition* pdefDeuteron;
00129      G4ParticleDefinition* pdefTriton;
00130      G4ParticleDefinition* pdefAlpha;
00131 
00132 };
00133 
00134 #endif
00135  

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