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 // $Id: GammaRayTelTrackerHit.cc 82268 2014-06-13 13:47:30Z gcosmo $ 27 // ------------------------------------------- 28 // ------------------------------------------------------------ 28 // GEANT 4 class implementation file 29 // GEANT 4 class implementation file 29 // CERN Geneva Switzerland 30 // CERN Geneva Switzerland 30 // 31 // 31 // 32 // 32 // ------------ GammaRayTelTrackerHit --- << 33 // ------------ GammaRayTelTrackerHit ------ 33 // by R.Giannitrapani, F.Longo & G.S 34 // by R.Giannitrapani, F.Longo & G.Santin (13 nov 2000) 34 // 35 // 35 // ******************************************* 36 // ************************************************************ 36 37 >> 38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... >> 39 37 #include "GammaRayTelTrackerHit.hh" 40 #include "GammaRayTelTrackerHit.hh" 38 41 >> 42 G4ThreadLocal G4Allocator<GammaRayTelTrackerHit> *GammaRayTelTrackerHitAllocator = 0; >> 43 39 //....oooOO0OOooo........oooOO0OOooo........oo 44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 40 45 41 G4ThreadLocal G4Allocator<GammaRayTelTrackerHi << 46 GammaRayTelTrackerHit::GammaRayTelTrackerHit() >> 47 { >> 48 EdepSil = 0.; >> 49 NStrip = 0; NSilPlane = 0; IsXPlane = 0; >> 50 pos = G4ThreeVector(0.,0.,0.); >> 51 } 42 52 43 //....oooOO0OOooo........oooOO0OOooo........oo 53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 44 54 45 GammaRayTelTrackerHit::GammaRayTelTrackerHit() << 55 GammaRayTelTrackerHit::~GammaRayTelTrackerHit() 46 } << 56 {;} 47 57 48 //....oooOO0OOooo........oooOO0OOooo........oo 58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 49 59 50 GammaRayTelTrackerHit::~GammaRayTelTrackerHit( << 60 GammaRayTelTrackerHit::GammaRayTelTrackerHit(const GammaRayTelTrackerHit& right) >> 61 :G4VHit() >> 62 { >> 63 EdepSil = right.EdepSil; >> 64 NStrip = right.NStrip; NSilPlane = right.NSilPlane; >> 65 IsXPlane = right.IsXPlane; >> 66 pos = right.pos; 51 } 67 } 52 68 53 //....oooOO0OOooo........oooOO0OOooo........oo 69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 54 70 55 GammaRayTelTrackerHit::GammaRayTelTrackerHit(c << 71 const GammaRayTelTrackerHit& GammaRayTelTrackerHit::operator=(const GammaRayTelTrackerHit& right) 56 stripNumber = right.stripNumber; << 72 { 57 siliconPlaneNumber = right.siliconPlaneNum << 73 EdepSil = right.EdepSil; 58 isXPlane = right.isXPlane; << 74 NStrip = right.NStrip; NSilPlane = right.NSilPlane; 59 siliconDepositedEnergy = right.siliconDepo << 75 IsXPlane = right.IsXPlane; 60 position = right.position; << 76 pos =right.pos; >> 77 return *this; 61 } 78 } 62 79 63 //....oooOO0OOooo........oooOO0OOooo........oo 80 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 64 81 65 auto GammaRayTelTrackerHit::operator=(const Ga << 82 int GammaRayTelTrackerHit::operator==(const GammaRayTelTrackerHit& right) const 66 stripNumber = right.stripNumber; << 83 { 67 siliconPlaneNumber = right.siliconPlaneNum << 84 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 } 85 } 74 86 75 //....oooOO0OOooo........oooOO0OOooo........oo 87 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 76 88 77 auto GammaRayTelTrackerHit::operator==(const G << 89 void GammaRayTelTrackerHit::Draw() 78 return ( << 90 {;} 79 (stripNumber == right.stripNumber) && << 80 (isXPlane == right.isXPlane) && << 81 (siliconDepositedEnergy == right.silic << 82 (position == right.position) << 83 ); << 84 } << 85 91 86 //....oooOO0OOooo........oooOO0OOooo........oo 92 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 87 93 88 void GammaRayTelTrackerHit::Draw() { << 94 void GammaRayTelTrackerHit::Print() 89 } << 95 {;} 90 96 91 //....oooOO0OOooo........oooOO0OOooo........oo 97 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 92 98 93 void GammaRayTelTrackerHit::Print() { << 99 94 } << 100 >> 101 >> 102 >> 103 >> 104 >> 105 >> 106 >> 107 >> 108 95 109