Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
Par01CalorimeterHit.hh
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
28 //
29 //
30 // $Id: Par01CalorimeterHit.hh 100936 2016-11-03 11:07:41Z gcosmo $
31 //
32 
33 #ifndef Par01CalorimeterHit_h
34 #define Par01CalorimeterHit_h 1
35 
36 #include "G4VHit.hh"
37 #include "G4THitsCollection.hh"
38 #include "G4Allocator.hh"
39 #include "G4ThreeVector.hh"
40 #include "G4LogicalVolume.hh"
41 #include "G4Transform3D.hh"
42 #include "G4RotationMatrix.hh"
43 
45 {
46 public:
47 
53  G4int operator==(const Par01CalorimeterHit &right) const;
54 
55 
56  inline void *operator new(size_t);
57  inline void operator delete(void *aHit);
58  void *operator new(size_t,void*p){return p;}
59 #ifndef G4NOT_ISO_DELETES
60  void operator delete(void *,void*){}
61 #endif
62 
63  // methods from base class
64  virtual void Draw();
65  virtual void Print();
66 
67 private:
72 
73 public:
74  inline void SetEdep(G4double de)
75  { fEdep = de; };
76  inline void AddEdep(G4double de)
77  { fEdep += de; };
78  inline G4double GetEdep()
79  { return fEdep; };
80  inline void SetPos(G4ThreeVector xyz)
81  { fPosition = xyz; };
83  { return fPosition; };
84  inline void SetRot(G4RotationMatrix rmat)
85  { fRot = rmat; };
87  { return fRot; };
88  inline const G4LogicalVolume * GetLogV()
89  { return fLogV; };
90 
91 };
92 
94 
96 
97 inline void* Par01CalorimeterHit::operator new(size_t)
98 {
101  return (void *) Par01CalorimeterHitAllocator->MallocSingle();
102 }
103 
104 inline void Par01CalorimeterHit::operator delete(void *aHit)
105 {
107 }
108 
109 #endif
G4int operator==(const Par01CalorimeterHit &right) const
const char * p
Definition: xmltok.h:285
Definition: G4VHit.hh:48
const G4LogicalVolume * fLogV
void AddEdep(G4double de)
#define G4ThreadLocal
Definition: tls.hh:69
double G4double
Definition: G4Types.hh:76
void SetPos(G4ThreeVector xyz)
G4THitsCollection< Par01CalorimeterHit > Par01CalorimeterHitsCollection
G4ThreadLocal G4Allocator< Par01CalorimeterHit > * Par01CalorimeterHitAllocator
const G4LogicalVolume * GetLogV()
void SetRot(G4RotationMatrix rmat)
int G4int
Definition: G4Types.hh:78
G4RotationMatrix GetRot()
const Par01CalorimeterHit & operator=(const Par01CalorimeterHit &right)
void SetEdep(G4double de)