Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.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 // $Id: ExN04CalorimeterHit.hh 77801 2013-11-28 13:33:20Z gcosmo $
30 //
31 
32 #ifndef ExN04CalorimeterHit_h
33 #define ExN04CalorimeterHit_h 1
34 
35 #include "G4Allocator.hh"
36 #include "G4LogicalVolume.hh"
37 #include "G4RotationMatrix.hh"
38 #include "G4THitsCollection.hh"
39 #include "G4ThreeVector.hh"
40 #include "G4Transform3D.hh"
41 #include "G4VHit.hh"
42 
43 class ExN04CalorimeterHit : public G4VHit {
44 public:
48 
49  virtual ~ExN04CalorimeterHit();
50 
52  G4int operator==(const ExN04CalorimeterHit& right) const;
53 
54  inline void* operator new(size_t);
55  inline void operator delete(void* aHit);
56 
57  virtual void Draw();
58  virtual void Print();
59 
60  void SetCellID(G4int z,G4int phi);
61  G4int GetZ();
62  G4int GetPhi();
63  void SetEdep(G4double de);
64  void AddEdep(G4double de);
65  G4double GetEdep();
66  void SetPos(G4ThreeVector xyz);
68  void SetRot(G4RotationMatrix rmat);
70  const G4LogicalVolume* GetLogV();
71 
72 private:
79 };
80 
81 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83  {
84  fZCellID = z;
85  fPhiCellID = phi;
86 }
87 
89 {
90  return fZCellID;
91 }
92 
94 {
95  return fPhiCellID;
96 }
97 
99 {
100  fedep = de;
101 }
102 
104 {
105  fedep += de;
106 }
107 
109 {
110  return fedep;
111 }
112 
114 {
115  fpos = xyz;
116 }
117 
119 {
120  return fpos;
121 }
122 
124 {
125  frot = rmat;
126 }
127 
129 {
130  return frot;
131 }
132 
134 {
135  return fpLogV;
136 }
137 
138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
140 
142 
143 inline void* ExN04CalorimeterHit::operator new(size_t)
144 {
145  void* aHit;
146  aHit = (void*) ExN04CalorimeterHitAllocator.MallocSingle();
147  return aHit;
148 }
149 
150 inline void ExN04CalorimeterHit::operator delete(void* aHit)
151 {
152  ExN04CalorimeterHitAllocator.FreeSingle((ExN04CalorimeterHit*) aHit);
153 }
154 
155 #endif
const ExN04CalorimeterHit & operator=(const ExN04CalorimeterHit &right)
Definition: G4VHit.hh:48
Double_t z
Type * MallocSingle()
Definition: G4Allocator.hh:202
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
void FreeSingle(Type *anElement)
Definition: G4Allocator.hh:212
G4int operator==(const ExN04CalorimeterHit &right) const
G4THitsCollection< ExN04CalorimeterHit > ExN04CalorimeterHitsCollection
double G4double
Definition: G4Types.hh:76
int G4int
Definition: G4Types.hh:78