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