⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mt01trackerhit.hh

📁 利用linux环境下蒙特卡罗计算工具geant4实现伽玛射线与探测器乘积能量的模拟过程
💻 HH
字号:
//// ********************************************************************// * DISCLAIMER                                                       *// *                                                                  *// * The following disclaimer summarizes all the specific disclaimers *// * of contributors to this software. The specific disclaimers,which *// * govern, are listed with their locations in:                      *// *   http://cern.ch/geant4/license                                  *// *                                                                  *// * Neither the authors of this software system, nor their employing *// * institutes,nor the agencies providing financial support for this *// * work  make  any representation or  warranty, express or implied, *// * regarding  this  software system or assume any liability for its *// * use.                                                             *// *                                                                  *// * This  code  implementation is the  intellectual property  of the *// * GEANT4 collaboration.                                            *// * By copying,  distributing  or modifying the Program (or any work *// * based  on  the Program)  you indicate  your  acceptance of  this *// * statement, and all its terms.                                    *// ********************************************************************////// $Id: ExN02TrackerHit.hh,v 1.7 2003/05/28 09:54:09 gcosmo Exp $// GEANT4 tag $Name: geant4-07-00-patch-01 $////....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......#ifndef mt01TrackerHit_h#define mt01TrackerHit_h 1#include "G4VHit.hh"#include "G4THitsCollection.hh"#include "G4Allocator.hh"#include "G4ThreeVector.hh"//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......class mt01TrackerHit : public G4VHit{  public:      mt01TrackerHit();     ~mt01TrackerHit();      mt01TrackerHit(const mt01TrackerHit&);      const mt01TrackerHit& operator=(const mt01TrackerHit&);      G4int operator==(const mt01TrackerHit&) const;      inline void* operator new(size_t);      inline void  operator delete(void*);      void Draw();      void Print();  public:        void SetTrackID  (G4int track)      { trackID = track; };      void SetChamberNb(G4int chamb)      { chamberNb = chamb; };        void SetEdep     (G4double de)      { edep = de; };      void SetPos      (G4ThreeVector xyz){ pos = xyz; };            G4int GetTrackID()    { return trackID; };      G4int GetChamberNb()  { return chamberNb; };      G4double GetEdep()    { return edep; };            G4ThreeVector GetPos(){ return pos; };        private:        G4int         trackID;      G4int         chamberNb;      G4double      edep;      G4ThreeVector pos;};//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......typedef G4THitsCollection<mt01TrackerHit> mt01TrackerHitsCollection;extern G4Allocator<mt01TrackerHit> mt01TrackerHitAllocator;//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......inline void* mt01TrackerHit::operator new(size_t){  void *aHit;  aHit = (void *) mt01TrackerHitAllocator.MallocSingle();  return aHit;}//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......inline void mt01TrackerHit::operator delete(void *aHit){  mt01TrackerHitAllocator.FreeSingle((mt01TrackerHit*) aHit);}//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -