|
||||
File indexing completed on 2025-01-18 09:58:01
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 // GEANT 4 class header file 0030 // 0031 // Class Description: 0032 // Extends G4Track properties with information needed for the 0033 // channeling biasing operator. 0034 // 0035 // ------------------ G4ChannelingTrackData ------------------ 0036 // 0037 // Author: M.Verderi (LLR), E. Bagli (INFN) April 2016 0038 // 0039 // -------------------------------------------------------------------- 0040 0041 #ifndef G4ChannelingTrackData_hh 0042 #define G4ChannelingTrackData_hh 0043 0044 class G4Channeling; 0045 #include "G4VAuxiliaryTrackInformation.hh" 0046 #include "G4ThreeVector.hh" 0047 0048 class G4ChannelingTrackData : public G4VAuxiliaryTrackInformation { 0049 friend class G4Channeling; 0050 0051 public: 0052 G4ChannelingTrackData(); 0053 ~G4ChannelingTrackData(); 0054 0055 void Print() const; 0056 0057 private: 0058 const G4Channeling* fChannelingProcess; 0059 0060 public: 0061 void Reset(){ 0062 fChannelingProcess = nullptr; 0063 fNuD = fElD = 1.; 0064 fPosCh = fMomCh = fDBL; 0065 } 0066 0067 public: 0068 G4double GetDensity() {return (fNuD + fElD) * 0.5;} 0069 0070 void SetNuD(G4double aDouble) {fNuD = aDouble;}; 0071 G4double GetNuD() {return fNuD;}; 0072 0073 void SetElD(G4double aDouble) {fElD = aDouble;}; 0074 G4double GetElD() {return fElD;}; 0075 0076 void SetEFX(G4double aDouble) {fEFX = aDouble;}; 0077 G4double GetEFX() {return fEFX;}; 0078 0079 void SetEFY(G4double aDouble) {fEFY = aDouble;}; 0080 G4double GetEFY() {return fEFY;}; 0081 0082 G4ThreeVector GetMomCh() {return fMomCh;} 0083 void SetMomCh(G4ThreeVector a3vec) {fMomCh = a3vec;} 0084 0085 G4ThreeVector GetPosCh() {return fPosCh;} 0086 void SetPosCh(G4ThreeVector a3vec) {fPosCh = a3vec;} 0087 0088 private: 0089 // ---------- 0090 // DBL_MAX vector for reset 0091 // ---------- 0092 G4ThreeVector fDBL; 0093 0094 // ---------- 0095 // Positiona and momentum in the crystal reference frame 0096 // ---------- 0097 G4ThreeVector fMomCh; 0098 G4ThreeVector fPosCh; 0099 0100 G4double fNuD; 0101 G4double fElD; 0102 0103 G4double fEFX; 0104 G4double fEFY; 0105 }; 0106 0107 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |