![]() |
|
|||
File indexing completed on 2025-02-23 09:22:19
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 /// \file radiobiology/src/Hit.cc 0028 /// \brief Implementation of the RadioBio::Hit class 0029 0030 #include "Hit.hh" 0031 0032 #include "G4Circle.hh" 0033 #include "G4Colour.hh" 0034 #include "G4UnitsTable.hh" 0035 #include "G4VVisManager.hh" 0036 #include "G4VisAttributes.hh" 0037 0038 // for touchable handle 0039 #include "G4TouchableHandle.hh" 0040 0041 #include <iomanip> 0042 0043 namespace RadioBio 0044 { 0045 0046 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0047 0048 G4ThreadLocal G4Allocator<Hit>* RadioBioHitAllocator = 0; 0049 0050 Hit::Hit() : G4VHit() {} 0051 0052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0053 0054 Hit::Hit(const Hit& right) : G4VHit() 0055 { 0056 fTrackID = right.fTrackID; 0057 fParticleType = right.fParticleType; 0058 fEkinMean = right.fEkinMean; 0059 fDeltaE = right.fDeltaE; 0060 fEinit = right.fEinit; 0061 fTrackLength = right.fTrackLength; 0062 fPhysicalVolume = right.fPhysicalVolume; 0063 fxIndex = right.fxIndex; 0064 fyIndex = right.fyIndex; 0065 fzIndex = right.fzIndex; 0066 } 0067 0068 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0069 0070 const Hit& Hit::operator=(const Hit& right) 0071 { 0072 fTrackID = right.fTrackID; 0073 fParticleType = right.fParticleType; 0074 fEkinMean = right.fEkinMean; 0075 fDeltaE = right.fDeltaE; 0076 fEinit = right.fEinit; 0077 fTrackLength = right.fTrackLength; 0078 fPhysicalVolume = right.fPhysicalVolume; 0079 fxIndex = right.fxIndex; 0080 fyIndex = right.fyIndex; 0081 fzIndex = right.fzIndex; 0082 0083 return *this; 0084 } 0085 0086 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0087 0088 G4int Hit::operator==(const Hit& right) const 0089 { 0090 return (this == &right) ? 1 : 0; 0091 } 0092 0093 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0094 0095 void Hit::Draw() 0096 { 0097 // Not implemented 0098 } 0099 0100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0101 0102 void Hit::Print() 0103 { 0104 // Not implemented 0105 } 0106 0107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0108 0109 void Hit::SetVoxelIndexes(const G4TouchableHandle& TH) 0110 { 0111 // Calculation of voxel number 0112 fxIndex = TH->GetReplicaNumber(2); 0113 fyIndex = TH->GetReplicaNumber(1); 0114 fzIndex = TH->GetReplicaNumber(); 0115 } 0116 0117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0118 0119 } // namespace RadioBio
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |