Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4MuMinusCapturePrecompound.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //-----------------------------------------------------------------------------
0028 //
0029 // GEANT4 Class header file 
0030 //
0031 // File name:  G4MuMinusCapturePrecompound
0032 //
0033 // Author:        V.Ivanchenko 
0034 // 
0035 // Creation date: 24 April 2012 on base of G4MuonMinusCaptureAtRest
0036 //
0037 // Class Description: 
0038 //
0039 // Sampling of mu- capture by atomic nucleus
0040 //
0041 //-----------------------------------------------------------------------------
0042 //
0043 // Modifications: 
0044 //
0045 //-----------------------------------------------------------------------------
0046 
0047 #ifndef G4MuMinusCapturePrecompound_h
0048 #define G4MuMinusCapturePrecompound_h 1
0049 
0050 #include "globals.hh"
0051 #include "G4Nucleus.hh"
0052 #include "G4Track.hh"
0053 #include "G4HadProjectile.hh"
0054 #include "G4HadSecondary.hh"
0055 #include "G4HadFinalState.hh"
0056 #include "G4HadronicInteraction.hh"
0057 #include "G4ParticleDefinition.hh"
0058 #include "G4DynamicParticle.hh"
0059 #include "G4ThreeVector.hh"
0060 #include "G4Fancy3DNucleus.hh"
0061 
0062 class G4VPreCompoundModel;
0063 
0064 class G4MuMinusCapturePrecompound : public G4HadronicInteraction
0065 { 
0066 public:
0067  
0068   G4MuMinusCapturePrecompound(G4VPreCompoundModel* ptr=0);
0069  
0070   ~G4MuMinusCapturePrecompound();
0071 
0072   G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack, 
0073                  G4Nucleus & targetNucleus );
0074 
0075   void ModelDescription(std::ostream& outFile) const; 
0076 
0077 private:
0078 
0079   inline void AddNewParticle(const G4ParticleDefinition* aParticle,
0080                  G4ThreeVector& direction,
0081                  G4double kinEnergy);
0082 
0083   // hide assignment operator as private 
0084   G4MuMinusCapturePrecompound& operator=(const G4MuMinusCapturePrecompound &right);
0085   G4MuMinusCapturePrecompound(const G4MuMinusCapturePrecompound& );
0086 
0087   G4HadFinalState result;
0088   G4Fancy3DNucleus fNucleus;
0089   const G4ParticleDefinition* fProton;
0090   const G4ParticleDefinition* fNeutron;
0091   G4VPreCompoundModel* fPreCompound;
0092   G4double fMuMass;
0093   G4double fThreshold;
0094   G4double fTime;
0095 
0096 };
0097 
0098 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0099 
0100 inline void G4MuMinusCapturePrecompound::AddNewParticle(
0101                       const G4ParticleDefinition* aParticle,
0102               G4ThreeVector& direction,
0103               G4double kinEnergy)
0104 {
0105   G4DynamicParticle* dp = new G4DynamicParticle(aParticle,
0106                                                 direction,
0107                                                 kinEnergy);
0108   G4HadSecondary hs(dp);
0109   hs.SetTime(fTime);
0110   result.AddSecondary(hs);
0111 }
0112 
0113 #endif
0114 
0115