Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:43

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:     G4MuonMinusAtomicCapture
0032 //
0033 // 20160701 K.L. Genser - New process using G4MuonicAtom
0034 //
0035 // Class Description:
0036 //
0037 // Stopping of mu-
0038 //
0039 // Modifications: 
0040 //   20160912 K.L. Genser made it rest process
0041 //
0042 //------------------------------------------------------------------------
0043 
0044 #ifndef G4MuonMinusAtomicCapture_h
0045 #define G4MuonMinusAtomicCapture_h 1
0046  
0047 #include "globals.hh"
0048 #include "G4VRestProcess.hh"
0049 #include "G4ParticleDefinition.hh"
0050 #include "G4ElementSelector.hh"
0051 #include "G4HadronicInteraction.hh"
0052 #include "G4Track.hh"
0053 #include "G4Step.hh"
0054 #include "G4ForceCondition.hh"
0055 #include "G4HadronicProcessType.hh"
0056 #include "G4HadFinalState.hh"
0057 
0058 class G4HadronicInteraction;
0059 
0060 class G4MuonMinusAtomicCapture : public G4VRestProcess
0061 
0062 { 
0063 public:
0064  
0065   explicit G4MuonMinusAtomicCapture(const G4String& name
0066                                     = "muMinusAtomicCaptureAtRest" );
0067 
0068   ~G4MuonMinusAtomicCapture();
0069 
0070   G4bool IsApplicable(const G4ParticleDefinition&);
0071 
0072   virtual void PreparePhysicsTable(const G4ParticleDefinition&);
0073 
0074   virtual void BuildPhysicsTable(const G4ParticleDefinition&);
0075 
0076   virtual G4double 
0077   AtRestGetPhysicalInteractionLength(const G4Track& track,
0078                      G4ForceCondition* condition);
0079 
0080   virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
0081 
0082   void ProcessDescription(std::ostream& outFile) const;
0083 
0084   inline void SetElementSelector(G4ElementSelector* ptr);
0085 
0086   inline void SetEmCascade(G4HadronicInteraction* ptr);
0087 
0088 protected:
0089   // set effective lifetime for at-rest process (default is forced action)
0090   // FIXME: This should be computed by subprocesses via cross-section analogue
0091   G4double GetMeanLifeTime(const G4Track& /*aTrack*/,
0092                            G4ForceCondition* /*condition*/) { return -1.0; }
0093 
0094 private:
0095 
0096   // hide assignment operator as private 
0097   G4MuonMinusAtomicCapture& operator=(const G4MuonMinusAtomicCapture &right);
0098   G4MuonMinusAtomicCapture(const G4MuonMinusAtomicCapture& );
0099 
0100   G4ElementSelector* fElementSelector;
0101 
0102   G4HadronicInteraction* fEmCascade;
0103 
0104   G4ParticleChange* theTotalResult;
0105 
0106   G4HadFinalState* result;
0107 
0108   G4HadProjectile thePro;
0109 
0110   G4Nucleus targetNucleus;
0111 
0112 };
0113 
0114 #endif
0115  
0116 
0117 
0118 
0119 
0120