|
|
|||
Warning, file /geant4/examples/extended/parameterisations/gflash/gflasha/src/ExGflashHit.cc was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // ******************************************************************** 0002 // * License and Disclaimer * 0003 // * * 0004 // * The Geant4 software is copyright of the Copyright Holders of * 0005 // * the Geant4 Collaboration. It is provided under the terms and * 0006 // * conditions of the Geant4 Software License, included in the file * 0007 // * LICENSE and available at http://cern.ch/geant4/license . These * 0008 // * include a list of copyright holders. * 0009 // * * 0010 // * Neither the authors of this software system, nor their employing * 0011 // * institutes,nor the agencies providing financial support for this * 0012 // * work make any representation or warranty, express or implied, * 0013 // * regarding this software system or assume any liability for its * 0014 // * use. Please see the license in the file LICENSE and URL above * 0015 // * for the full disclaimer and the limitation of liability. * 0016 // * * 0017 // * This code implementation is the result of the scientific and * 0018 // * technical work of the GEANT4 collaboration. * 0019 // * By using, copying, modifying or distributing the software (or * 0020 // * any work based on the software) you agree to acknowledge its * 0021 // * use in resulting scientific publications, and indicate your * 0022 // * acceptance of all terms of the Geant4 Software license. * 0023 // ******************************************************************** 0024 // 0025 // 0026 /// \file ExGflashHit.cc 0027 /// \brief Implementation of the ExGflashHit class 0028 // 0029 0030 #include "ExGflashHit.hh" 0031 0032 #include "G4Circle.hh" 0033 #include "G4Colour.hh" 0034 #include "G4LogicalVolume.hh" 0035 #include "G4Transform3D.hh" 0036 #include "G4VVisManager.hh" 0037 #include "G4VisAttributes.hh" 0038 0039 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0040 0041 G4ThreadLocal G4Allocator<ExGflashHit>* ExGflashHitAllocator = nullptr; 0042 0043 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0044 0045 ExGflashHit::ExGflashHit() = default; 0046 0047 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0048 0049 ExGflashHit::~ExGflashHit() = default; 0050 0051 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0052 0053 ExGflashHit::ExGflashHit(const ExGflashHit& right) : G4VHit(right) 0054 //@@@ ExGflashHit:Is it right with the init? 0055 { 0056 fEdep = right.fEdep; 0057 fPos = right.fPos; 0058 } 0059 0060 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0061 0062 ExGflashHit& ExGflashHit::operator=(const ExGflashHit& right) = default; 0063 0064 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0065 0066 G4bool ExGflashHit::operator==(const ExGflashHit& right) const 0067 { 0068 return ((fEdep == right.fEdep) && (fPos == right.fPos)); 0069 } 0070 0071 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0072 0073 void ExGflashHit::Draw() 0074 { 0075 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 0076 if (pVVisManager != nullptr) { 0077 G4Circle circle(fPos); 0078 circle.SetScreenSize(0.04); 0079 circle.SetFillStyle(G4Circle::filled); 0080 G4Colour colour(1., 0., 0.); 0081 G4VisAttributes attribs(colour); 0082 circle.SetVisAttributes(attribs); 0083 pVVisManager->Draw(circle); 0084 } 0085 } 0086 0087 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0088 0089 void ExGflashHit::Print() {} 0090 0091 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|