|
||||
File indexing completed on 2025-01-18 09:59:26
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 /// \file processes/phonon/include/G4VPhononProcess.hh 0027 /// \brief Definition of the G4VPhononProcess base class 0028 // 0029 // 0030 #ifndef G4VPhononProcess_h 0031 #define G4VPhononProcess_h 1 0032 0033 #include "globals.hh" 0034 #include "G4VDiscreteProcess.hh" 0035 #include "G4ThreeVector.hh" 0036 0037 class G4PhononTrackMap; 0038 class G4LatticePhysical; 0039 0040 0041 class G4VPhononProcess : public G4VDiscreteProcess { 0042 public: 0043 G4VPhononProcess(const G4String& processName); 0044 virtual ~G4VPhononProcess(); 0045 0046 virtual G4bool IsApplicable(const G4ParticleDefinition& aPD); 0047 0048 // Initialize wave vectors for currently active track(s) 0049 // NOTE: These functions must call back to base class implementations! 0050 virtual void StartTracking(G4Track* track); 0051 virtual void EndTracking(); 0052 0053 protected: 0054 // For convenience, map phonon type to polarization code 0055 virtual G4int GetPolarization(const G4Track& track) const; 0056 virtual G4int GetPolarization(const G4Track* track) const { 0057 return GetPolarization(*track); 0058 } 0059 0060 // For convenience, generate random polarization from density of states 0061 // Values passed may be zero to suppress particular states 0062 virtual G4int ChoosePolarization(G4double Ldos, G4double STdos, 0063 G4double FTdos) const; 0064 0065 // Construct new track with correct momentum, position, etc. 0066 virtual G4Track* CreateSecondary(G4int polarization, const G4ThreeVector& K, 0067 G4double energy) const; 0068 0069 protected: 0070 G4PhononTrackMap* trackKmap; // For convenient access by processes 0071 const G4LatticePhysical* theLattice; 0072 0073 private: 0074 const G4Track* currentTrack; // For use by Start/EndTracking 0075 0076 // hide assignment operators as private 0077 G4VPhononProcess(G4VPhononProcess&); 0078 G4VPhononProcess& operator=(const G4VPhononProcess& right); 0079 }; 0080 0081 #endif /* G4VPhononProcess_h */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |