Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4eplusAnnihilation.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 //
0032 // File name:     G4eplusAnnihilation
0033 //
0034 // Author:        Vladimir Ivanchenko on base of Michel Maire code
0035 //
0036 // Creation date: 02.08.2004
0037 //
0038 // Modifications:
0039 // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivanchenko)
0040 // 15-03-05 Update interface according to changings 
0041 //           in G4VEmProcess (V.Ivanchenko)
0042 // 08-04-05 Major optimisation of internal interfaces (V.Ivanchenko)
0043 // 04-05-05 Make class to be default (V.Ivanchenko)
0044 // 04-12-05 SetProposedKineticEnergy(0.) for annihilated positron (mma)
0045 // 09-08-06 add SetModel(G4VEmModel*) (mma)
0046 // 12-09-06, move SetModel(G4VEmModel*) in G4VEmProcess (mma)
0047 //
0048 //
0049 // Class Description:
0050 //
0051 // This class manages the process of e+ annihilation at rest and on fly
0052 // It is possible to enable ApplyCuts and Entanglement options via
0053 // G4EmParameters class using UI commands or C++ interface.
0054 // EM splitting or Russian roulette are allowed is corresponding options
0055 // are enabled.
0056 //
0057 // -------------------------------------------------------------------
0058 //
0059 
0060 #ifndef G4eplusAnnihilation_h
0061 #define G4eplusAnnihilation_h 1
0062 
0063 #include "G4VEmProcess.hh"
0064 
0065 class G4ParticleDefinition;
0066 class G4VPositronAtRestModel;
0067 
0068 class G4eplusAnnihilation : public G4VEmProcess
0069 {
0070 
0071 public:
0072 
0073   explicit G4eplusAnnihilation(const G4String& name = "annihil");
0074 
0075   ~G4eplusAnnihilation() override;
0076 
0077   G4bool IsApplicable(const G4ParticleDefinition& p) final;
0078 
0079   G4VParticleChange* AtRestDoIt(
0080                              const G4Track& track,
0081                              const G4Step& stepData) override;
0082 
0083   G4double AtRestGetPhysicalInteractionLength(
0084                              const G4Track& track,
0085                              G4ForceCondition* condition
0086                             ) override;
0087 
0088   // print documentation in html format
0089   void ProcessDescription(std::ostream&) const override;
0090 
0091   G4eplusAnnihilation & operator=(const G4eplusAnnihilation &right) = delete;
0092   G4eplusAnnihilation(const G4eplusAnnihilation&) = delete;
0093 
0094 protected:
0095 
0096   void InitialiseProcess(const G4ParticleDefinition*) override;
0097 
0098   // Print out of the class parameters
0099   void StreamProcessInfo(std::ostream& outFile) const override;
0100 
0101 private:
0102 
0103   G4VPositronAtRestModel* f2GammaAtRestModel{nullptr};
0104   G4VPositronAtRestModel* f3GammaAtRestModel{nullptr};
0105   G4int fEntanglementModelID;
0106   G4bool isInitialised{false};
0107   G4bool fEntangled{false};
0108   G4bool fApplyCuts{false};
0109 };
0110 
0111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0112 
0113 #endif