Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
eventgenerator
HepMC
HepMCEx01
src
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc
이 파일의 문서화 페이지로 가기
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.cc 77801 2013-11-28 13:33:20Z gcosmo $
30
//
31
32
#include "
G4Colour.hh
"
33
#include "
G4LogicalVolume.hh
"
34
#include "
G4VisAttributes.hh
"
35
#include "
G4VVisManager.hh
"
36
#include "ExN04CalorimeterHit.hh"
37
38
G4Allocator<ExN04CalorimeterHit>
ExN04CalorimeterHitAllocator
;
39
40
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
ExN04CalorimeterHit::ExN04CalorimeterHit
()
42
: fpLogV(NULL)
43
{
44
}
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
ExN04CalorimeterHit::ExN04CalorimeterHit
(
G4LogicalVolume
* logVol,
48
G4int
z
,
G4int
phi)
49
: fZCellID(z), fPhiCellID(phi), fpLogV(logVol)
50
{
51
}
52
53
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54
ExN04CalorimeterHit::ExN04CalorimeterHit
(
const
ExN04CalorimeterHit
&
right
)
55
:
G4VHit
()
56
{
57
fZCellID
= right.
fZCellID
;
58
fPhiCellID
= right.
fPhiCellID
;
59
fedep
= right.
fedep
;
60
fpos
= right.
fpos
;
61
frot
= right.
frot
;
62
fpLogV
= right.
fpLogV
;
63
}
64
65
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
66
ExN04CalorimeterHit::~ExN04CalorimeterHit
()
67
{
68
}
69
70
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
71
const
ExN04CalorimeterHit
& ExN04CalorimeterHit::operator=
72
(
const
ExN04CalorimeterHit
&
right
)
73
{
74
fZCellID =
right
.fZCellID;
75
fPhiCellID =
right
.fPhiCellID;
76
fedep =
right
.fedep;
77
fpos =
right
.fpos;
78
frot =
right
.frot;
79
fpLogV =
right
.fpLogV;
80
81
return
*
this
;
82
}
83
84
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85
G4int
ExN04CalorimeterHit::operator==
(
const
ExN04CalorimeterHit
&
right
)
const
86
{
87
return
( (
fZCellID
== right.
fZCellID
) &&
88
(
fPhiCellID
== right.
fPhiCellID
) );
89
}
90
91
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
92
void
ExN04CalorimeterHit::Draw
()
93
{
94
G4VVisManager
* pVVisManager =
G4VVisManager::GetConcreteInstance
();
95
96
if
(pVVisManager) {
97
G4Transform3D
trans(
frot
,
fpos
);
98
G4VisAttributes
attribs;
99
const
G4VisAttributes
* pVA =
fpLogV
-> GetVisAttributes();
100
if
( pVA ) attribs = *pVA;
101
G4Colour
colour(1., 0., 0.);
102
attribs.
SetColour
(colour);
103
attribs.
SetForceWireframe
(
false
);
104
attribs.
SetForceSolid
(
true
);
105
pVVisManager->
Draw
(*
fpLogV
, attribs, trans);
106
}
107
}
108
109
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
110
void
ExN04CalorimeterHit::Print
()
111
{
112
}
G4Colour.hh
right
Definition:
F04UserTrackInformation.hh:37
ExN04CalorimeterHit::fZCellID
G4int fZCellID
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:73
ExN04CalorimeterHit::~ExN04CalorimeterHit
virtual ~ExN04CalorimeterHit()
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:66
ExN04CalorimeterHit::ExN04CalorimeterHit
ExN04CalorimeterHit()
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:41
HepGeom::Transform3D
Definition:
Transform3D.h:171
G4Colour
Definition:
G4Colour.hh:83
G4VHit
Definition:
G4VHit.hh:48
z
Double_t z
Definition:
advanced/microbeam/plot.C:277
ExN04CalorimeterHitAllocator
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:38
G4VVisManager
Definition:
G4VVisManager.hh:93
ExN04CalorimeterHit::operator==
G4int operator==(const ExN04CalorimeterHit &right) const
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:85
G4VVisManager.hh
ExN04CalorimeterHit
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:43
G4VVisManager::GetConcreteInstance
static G4VVisManager * GetConcreteInstance()
Definition:
G4VVisManager.cc:39
ExN04CalorimeterHit::frot
G4RotationMatrix frot
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:77
ExN04CalorimeterHit::fpos
G4ThreeVector fpos
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:76
G4VisAttributes
Definition:
G4VisAttributes.hh:69
ExN04CalorimeterHit::fpLogV
const G4LogicalVolume * fpLogV
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:78
ExN04CalorimeterHit::fedep
G4double fedep
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:75
G4VisAttributes::SetForceSolid
void SetForceSolid(G4bool=true)
Definition:
G4VisAttributes.cc:175
ExN04CalorimeterHit::Print
virtual void Print()
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:110
G4LogicalVolume.hh
G4int
int G4int
Definition:
G4Types.hh:78
G4LogicalVolume
Definition:
G4LogicalVolume.hh:190
G4VisAttributes::SetColour
void SetColour(const G4Colour &)
G4VisAttributes.hh
G4VisAttributes::SetForceWireframe
void SetForceWireframe(G4bool=true)
Definition:
G4VisAttributes.cc:166
ExN04CalorimeterHit::fPhiCellID
G4int fPhiCellID
Definition:
eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh:74
G4Allocator
Definition:
G4Allocator.hh:67
ExN04CalorimeterHit::Draw
virtual void Draw()
Definition:
eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc:92
다음에 의해 생성됨 :
1.8.5