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