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: GammaRayTelCalorimeterHit.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 // ------------ GammaRayTelCalorimeterHit 31 // ------------ GammaRayTelCalorimeterHit ------ 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 "GammaRayTelCalorimeterHit.hh" 38 #include "GammaRayTelCalorimeterHit.hh" 38 39 >> 40 G4Allocator<GammaRayTelCalorimeterHit> GammaRayTelCalorimeterHitAllocator; >> 41 39 //....oooOO0OOooo........oooOO0OOooo........oo 42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 40 43 41 G4ThreadLocal G4Allocator<GammaRayTelCalorimet << 44 GammaRayTelCalorimeterHit::GammaRayTelCalorimeterHit() >> 45 { >> 46 EdepCAL = 0.; >> 47 CALBarNumber = 0; >> 48 CALPlaneNumber = 0; >> 49 IsCALPlane = 0; >> 50 pos = 0.; >> 51 } 42 52 43 //....oooOO0OOooo........oooOO0OOooo........oo 53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 44 54 45 GammaRayTelCalorimeterHit::GammaRayTelCalorime << 55 GammaRayTelCalorimeterHit::~GammaRayTelCalorimeterHit() 46 } << 56 {;} 47 57 48 //....oooOO0OOooo........oooOO0OOooo........oo 58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 49 59 50 GammaRayTelCalorimeterHit::~GammaRayTelCalorim << 60 GammaRayTelCalorimeterHit::GammaRayTelCalorimeterHit(const GammaRayTelCalorimeterHit& right) >> 61 :G4VHit() >> 62 { >> 63 EdepCAL = right.EdepCAL; >> 64 CALBarNumber = right.CALBarNumber; >> 65 CALPlaneNumber = right.CALPlaneNumber; >> 66 IsCALPlane = right.IsCALPlane; >> 67 pos = right.pos; 51 } 68 } 52 69 53 //....oooOO0OOooo........oooOO0OOooo........oo 70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 54 71 55 GammaRayTelCalorimeterHit::GammaRayTelCalorime << 72 const GammaRayTelCalorimeterHit& GammaRayTelCalorimeterHit::operator=(const GammaRayTelCalorimeterHit& right) 56 calBarNumber(right.calBarNumber), << 73 { 57 calPlaneNumber(right.calPlaneNumber), << 74 EdepCAL = right.EdepCAL; 58 isCALPlane(right.isCALPlane), << 75 CALBarNumber = right.CALBarNumber; 59 calDepositedEnergy(right.calDepositedEnerg << 76 CALPlaneNumber = right.CALPlaneNumber; 60 position(right.position) { << 77 IsCALPlane = right.IsCALPlane; >> 78 pos = right.pos; >> 79 return *this; 61 } 80 } 62 81 63 //....oooOO0OOooo........oooOO0OOooo........oo 82 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 64 83 65 auto GammaRayTelCalorimeterHit::operator=(cons << 84 int GammaRayTelCalorimeterHit::operator==(const GammaRayTelCalorimeterHit& right) const 66 calBarNumber = right.calBarNumber; << 85 { 67 calPlaneNumber = right.calPlaneNumber; << 86 return((EdepCAL==right.EdepCAL)&&(CALBarNumber==right.CALBarNumber)&&(CALPlaneNumber==right.CALPlaneNumber)&&(IsCALPlane==right.IsCALPlane)&& (pos==right.pos)); 68 isCALPlane = right.isCALPlane; << 69 calDepositedEnergy = right.calDepositedEne << 70 position = right.position; << 71 << 72 return *this; << 73 } 87 } 74 88 75 //....oooOO0OOooo........oooOO0OOooo........oo 89 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 76 90 77 auto GammaRayTelCalorimeterHit::operator==(con << 91 void GammaRayTelCalorimeterHit::Draw() 78 return ( << 92 {;} 79 (calBarNumber == right.calBarNumber) && << 80 (calPlaneNumber == right.calPlaneNumber) & << 81 (isCALPlane == right.isCALPlane) && << 82 (calDepositedEnergy == right.calDeposi << 83 (position == right.position) << 84 ); << 85 } << 86 93 87 //....oooOO0OOooo........oooOO0OOooo........oo 94 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 88 95 89 void GammaRayTelCalorimeterHit::Draw() { << 96 void GammaRayTelCalorimeterHit::Print() 90 } << 97 {;} 91 98 92 //....oooOO0OOooo........oooOO0OOooo........oo 99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 93 100 94 void GammaRayTelCalorimeterHit::Print() { << 101 95 } << 102 >> 103 >> 104 >> 105 >> 106 >> 107 >> 108 >> 109 >> 110 96 111