Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // 27 // ------------------------------------------- 27 // ------------------------------------------------------------ 28 // GEANT 4 class implementation file 28 // GEANT 4 class implementation file 29 // CERN Geneva Switzerland 29 // CERN Geneva Switzerland 30 // 30 // 31 // 31 // 32 // ------------ GammaRayTelTrackerHit --- << 32 // ------------ GammaRayTelTrackerHit ------ 33 // by R.Giannitrapani, F.Longo & G.S 33 // by R.Giannitrapani, F.Longo & G.Santin (13 nov 2000) 34 // 34 // 35 // ******************************************* 35 // ************************************************************ 36 36 >> 37 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... >> 38 37 #include "GammaRayTelTrackerHit.hh" 39 #include "GammaRayTelTrackerHit.hh" 38 40 >> 41 G4ThreadLocal G4Allocator<GammaRayTelTrackerHit> *GammaRayTelTrackerHitAllocator = 0; >> 42 39 //....oooOO0OOooo........oooOO0OOooo........oo 43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 40 44 41 G4ThreadLocal G4Allocator<GammaRayTelTrackerHi << 45 GammaRayTelTrackerHit::GammaRayTelTrackerHit() >> 46 { >> 47 EdepSil = 0.; >> 48 NStrip = 0; NSilPlane = 0; IsXPlane = 0; >> 49 pos = G4ThreeVector(0.,0.,0.); >> 50 } 42 51 43 //....oooOO0OOooo........oooOO0OOooo........oo 52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 44 53 45 GammaRayTelTrackerHit::GammaRayTelTrackerHit() << 54 GammaRayTelTrackerHit::~GammaRayTelTrackerHit() 46 } << 55 {;} 47 56 48 //....oooOO0OOooo........oooOO0OOooo........oo 57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 49 58 50 GammaRayTelTrackerHit::~GammaRayTelTrackerHit( << 59 GammaRayTelTrackerHit::GammaRayTelTrackerHit(const GammaRayTelTrackerHit& right) >> 60 :G4VHit() >> 61 { >> 62 EdepSil = right.EdepSil; >> 63 NStrip = right.NStrip; NSilPlane = right.NSilPlane; >> 64 IsXPlane = right.IsXPlane; >> 65 pos = right.pos; 51 } 66 } 52 67 53 //....oooOO0OOooo........oooOO0OOooo........oo 68 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 54 69 55 GammaRayTelTrackerHit::GammaRayTelTrackerHit(c << 70 const GammaRayTelTrackerHit& GammaRayTelTrackerHit::operator=(const GammaRayTelTrackerHit& right) 56 stripNumber = right.stripNumber; << 71 { 57 siliconPlaneNumber = right.siliconPlaneNum << 72 EdepSil = right.EdepSil; 58 isXPlane = right.isXPlane; << 73 NStrip = right.NStrip; NSilPlane = right.NSilPlane; 59 siliconDepositedEnergy = right.siliconDepo << 74 IsXPlane = right.IsXPlane; 60 position = right.position; << 75 pos =right.pos; >> 76 return *this; 61 } 77 } 62 78 63 //....oooOO0OOooo........oooOO0OOooo........oo 79 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 64 80 65 auto GammaRayTelTrackerHit::operator=(const Ga << 81 G4bool GammaRayTelTrackerHit::operator==(const GammaRayTelTrackerHit& right) const 66 stripNumber = right.stripNumber; << 82 { 67 siliconPlaneNumber = right.siliconPlaneNum << 83 return((EdepSil==right.EdepSil)&&(NStrip==right.NStrip)&&(IsXPlane==right.IsXPlane)&& (pos==right.pos)); 68 isXPlane = right.isXPlane; << 69 siliconDepositedEnergy = right.siliconDepo << 70 position = right.position; << 71 << 72 return *this; << 73 } 84 } 74 85 75 //....oooOO0OOooo........oooOO0OOooo........oo 86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 76 87 77 auto GammaRayTelTrackerHit::operator==(const G << 88 void GammaRayTelTrackerHit::Draw() 78 return ( << 89 {;} 79 (stripNumber == right.stripNumber) && << 80 (isXPlane == right.isXPlane) && << 81 (siliconDepositedEnergy == right.silic << 82 (position == right.position) << 83 ); << 84 } << 85 90 86 //....oooOO0OOooo........oooOO0OOooo........oo 91 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 87 92 88 void GammaRayTelTrackerHit::Draw() { << 93 void GammaRayTelTrackerHit::Print() 89 } << 94 {;} 90 95 91 //....oooOO0OOooo........oooOO0OOooo........oo 96 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 92 97 93 void GammaRayTelTrackerHit::Print() { << 98 94 } << 99 >> 100 >> 101 >> 102 >> 103 >> 104 >> 105 >> 106 >> 107 95 108