G4MuMinusCapturePrecompound.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:  G4MuMinusCapturePrecompound
00033 //
00034 // Author:        V.Ivanchenko 
00035 // 
00036 // Creation date: 24 April 2012 on base of G4MuonMinusCaptureAtRest
00037 //
00038 // Class Description: 
00039 //
00040 // Sampling of mu- capture by atomic nucleus
00041 //
00042 //-----------------------------------------------------------------------------
00043 //
00044 // Modifications: 
00045 //
00046 //-----------------------------------------------------------------------------
00047 
00048 #ifndef G4MuMinusCapturePrecompound_h
00049 #define G4MuMinusCapturePrecompound_h 1
00050 
00051 #include "globals.hh"
00052 #include "G4Nucleus.hh"
00053 #include "G4Track.hh"
00054 #include "G4HadProjectile.hh"
00055 #include "G4HadSecondary.hh"
00056 #include "G4HadFinalState.hh"
00057 #include "G4HadronicInteraction.hh"
00058 #include "G4ParticleDefinition.hh"
00059 #include "G4DynamicParticle.hh"
00060 #include "G4ThreeVector.hh"
00061 #include "G4Fancy3DNucleus.hh"
00062 
00063 class G4VPreCompoundModel;
00064 
00065 class G4MuMinusCapturePrecompound : public G4HadronicInteraction
00066 { 
00067 public:
00068  
00069   G4MuMinusCapturePrecompound(G4VPreCompoundModel* ptr=0);
00070  
00071   ~G4MuMinusCapturePrecompound();
00072 
00073   G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack, 
00074                                  G4Nucleus & targetNucleus );
00075 
00076   void ModelDescription(std::ostream& outFile) const; 
00077 
00078 private:
00079 
00080   inline void AddNewParticle(G4ParticleDefinition* aParticle,
00081                              G4ThreeVector& direction,
00082                              G4double kinEnergy);
00083 
00084   // hide assignment operator as private 
00085   G4MuMinusCapturePrecompound& operator=(const G4MuMinusCapturePrecompound &right);
00086   G4MuMinusCapturePrecompound(const G4MuMinusCapturePrecompound& );
00087 
00088   G4HadFinalState result;
00089   G4Fancy3DNucleus fNucleus;
00090   G4ParticleDefinition* fProton;
00091   G4ParticleDefinition* fNeutron;
00092   G4VPreCompoundModel* fPreCompound;
00093   G4double fMuMass;
00094   G4double fThreshold;
00095   G4double fTime;
00096 
00097 };
00098 
00099 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00100 
00101 inline void 
00102 G4MuMinusCapturePrecompound::AddNewParticle(G4ParticleDefinition* aParticle,
00103                                             G4ThreeVector& direction,
00104                                             G4double kinEnergy)
00105 {
00106   G4DynamicParticle* dp = new G4DynamicParticle(aParticle,
00107                                                 direction,
00108                                                 kinEnergy);
00109   G4HadSecondary hs(dp);
00110   hs.SetTime(fTime);
00111   result.AddSecondary(hs);
00112 }
00113 
00114 #endif
00115 
00116 

Generated on Mon May 27 17:48:54 2013 for Geant4 by  doxygen 1.4.7