|
||||
Warning, file /geant4/examples/advanced/underground_physics/src/DMXScintHit.cc was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // -------------------------------------------------------------- 0028 // GEANT 4 - Underground Dark Matter Detector Advanced Example 0029 // 0030 // For information related to this code contact: Alex Howard 0031 // e-mail: alexander.howard@cern.ch 0032 // -------------------------------------------------------------- 0033 // Comments 0034 // 0035 // Underground Advanced 0036 // by A. Howard and H. Araujo 0037 // (27th November 2001) 0038 // 0039 // ScintHit (scintillator sensitive detector definition) program 0040 // -------------------------------------------------------------- 0041 0042 #include "DMXScintHit.hh" 0043 #include "G4UnitsTable.hh" 0044 #include "G4VVisManager.hh" 0045 #include "G4Circle.hh" 0046 #include "G4Colour.hh" 0047 #include "G4VisAttributes.hh" 0048 #include <iomanip> 0049 0050 G4ThreadLocal G4Allocator<DMXScintHit> *DMXScintHitAllocator; 0051 0052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0053 0054 DMXScintHit::DMXScintHit() 0055 { 0056 edep=0.; 0057 pos = G4ThreeVector(0., 0., 0.); 0058 time = 0.; 0059 particleEnergy = 0.; 0060 } 0061 0062 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0063 0064 DMXScintHit::~DMXScintHit() 0065 {;} 0066 0067 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0068 0069 DMXScintHit::DMXScintHit(const DMXScintHit& right) 0070 : G4VHit(right) 0071 { 0072 edep = right.edep; 0073 pos = right.pos; 0074 time = right.time; 0075 particleName = right.particleName; 0076 particleEnergy = right.particleEnergy; 0077 } 0078 0079 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0080 0081 const DMXScintHit& DMXScintHit::operator=(const DMXScintHit& right) 0082 { 0083 edep = right.edep; 0084 pos = right.pos; 0085 time = right.time; 0086 particleName = right.particleName; 0087 particleEnergy = right.particleEnergy; 0088 return *this; 0089 } 0090 0091 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0092 0093 G4bool DMXScintHit::operator==(const DMXScintHit& right) const 0094 { 0095 return (this==&right) ? true : false; 0096 } 0097 0098 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0099 void DMXScintHit::Draw() 0100 {;} 0101 0102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0103 0104 void DMXScintHit::Print() 0105 { 0106 0107 G4cout << " LXe hit ENERGY: " << std::setw(5) << G4BestUnit(edep,"Energy") 0108 << ", at " << G4BestUnit(pos,"Length") << G4endl; 0109 } 0110 0111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0112 0113
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |