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 // $Id: FCALCalorHit.cc,v 1.6 2006/06/29 16:02:51 gunter Exp $ >> 27 // GEANT4 tag $Name: geant4-08-03-patch-01 $ 26 // 28 // 27 // 29 // 28 30 29 //....oooOO0OOooo........oooOO0OOooo........oo 31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 30 //....oooOO0OOooo........oooOO0OOooo........oo 32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 31 33 32 #include "FCALCalorHit.hh" 34 #include "FCALCalorHit.hh" 33 35 34 G4ThreadLocal G4Allocator<FCALCalorHit>* FCALC << 36 G4Allocator<FCALCalorHit> FCALCalorHitAllocator; 35 37 36 //....oooOO0OOooo........oooOO0OOooo........oo 38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 37 39 38 FCALCalorHit::FCALCalorHit() 40 FCALCalorHit::FCALCalorHit() 39 { 41 { 40 EdepAbs = 0.; TrackLengthAbs = 0.; 42 EdepAbs = 0.; TrackLengthAbs = 0.; 41 EdepGap = 0.; TrackLengthGap = 0.; 43 EdepGap = 0.; TrackLengthGap = 0.; 42 } 44 } 43 45 44 //....oooOO0OOooo........oooOO0OOooo........oo 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 45 47 46 FCALCalorHit::~FCALCalorHit() 48 FCALCalorHit::~FCALCalorHit() 47 {;} 49 {;} 48 50 49 //....oooOO0OOooo........oooOO0OOooo........oo 51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 50 52 51 FCALCalorHit::FCALCalorHit(const FCALCalorHit& 53 FCALCalorHit::FCALCalorHit(const FCALCalorHit& right) 52 : G4VHit(right) 54 : G4VHit(right) 53 { 55 { 54 EdepAbs = right.EdepAbs; TrackLengthAbs = ri 56 EdepAbs = right.EdepAbs; TrackLengthAbs = right.TrackLengthAbs; 55 EdepGap = right.EdepGap; TrackLengthGap = ri 57 EdepGap = right.EdepGap; TrackLengthGap = right.TrackLengthGap; 56 } 58 } 57 59 58 //....oooOO0OOooo........oooOO0OOooo........oo 60 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 59 61 60 const FCALCalorHit& FCALCalorHit::operator=(co 62 const FCALCalorHit& FCALCalorHit::operator=(const FCALCalorHit& right) 61 { 63 { 62 EdepAbs = right.EdepAbs; TrackLengthAbs = ri 64 EdepAbs = right.EdepAbs; TrackLengthAbs = right.TrackLengthAbs; 63 EdepGap = right.EdepGap; TrackLengthGap = ri 65 EdepGap = right.EdepGap; TrackLengthGap = right.TrackLengthGap; 64 return *this; 66 return *this; 65 } 67 } 66 68 67 //....oooOO0OOooo........oooOO0OOooo........oo 69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 68 70 69 G4bool FCALCalorHit::operator==(const FCALCalo << 71 int FCALCalorHit::operator==(const FCALCalorHit& right) const 70 { 72 { 71 return (this==&right) ? true : false; << 73 return (this==&right) ? 1 : 0; 72 } 74 } 73 75 74 //....oooOO0OOooo........oooOO0OOooo........oo 76 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 75 77 76 void FCALCalorHit::Draw() 78 void FCALCalorHit::Draw() 77 {;} 79 {;} 78 80 79 //....oooOO0OOooo........oooOO0OOooo........oo 81 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 80 82 81 void FCALCalorHit::Print() 83 void FCALCalorHit::Print() 82 {;} 84 {;} 83 85 84 //....oooOO0OOooo........oooOO0OOooo........oo 86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 85 87 86 88