Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
persistency
P01
src
ExP01TrackerHit.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
//
30
// $Id: ExP01TrackerHit.cc 71791 2013-06-24 14:08:28Z gcosmo $
31
//
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34
35
#include "
ExP01TrackerHit.hh
"
36
#include "
G4UnitsTable.hh
"
37
#include "
G4VVisManager.hh
"
38
#include "
G4Circle.hh
"
39
#include "
G4Colour.hh
"
40
#include "
G4VisAttributes.hh
"
41
42
G4Allocator<ExP01TrackerHit>
ExP01TrackerHitAllocator
;
43
44
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
45
46
ExP01TrackerHit::ExP01TrackerHit
()
47
:
G4VHit
(), fTrackID(0), fChamberNb(0), fEdep(0), fPos(0,0,0) {}
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
50
51
ExP01TrackerHit::~ExP01TrackerHit
() {}
52
53
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54
55
ExP01TrackerHit::ExP01TrackerHit
(
const
ExP01TrackerHit
&
right
)
56
:
G4VHit
()
57
{
58
fTrackID
= right.
fTrackID
;
59
fChamberNb
= right.
fChamberNb
;
60
fEdep
= right.
fEdep
;
61
fPos
= right.
fPos
;
62
}
63
64
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
65
66
const
ExP01TrackerHit
&
ExP01TrackerHit::operator=
(
const
ExP01TrackerHit
&
right
)
67
{
68
fTrackID
= right.
fTrackID
;
69
fChamberNb
= right.
fChamberNb
;
70
fEdep
= right.
fEdep
;
71
fPos
= right.
fPos
;
72
return
*
this
;
73
}
74
75
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
76
77
G4int
ExP01TrackerHit::operator==
(
const
ExP01TrackerHit
&
right
)
const
78
{
79
return
(
this
==&right) ? 1 : 0;
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
void
ExP01TrackerHit::Draw
()
85
{
86
G4VVisManager
* pVVisManager =
G4VVisManager::GetConcreteInstance
();
87
if
(pVVisManager)
88
{
89
G4Circle
circle(
fPos
);
90
circle.
SetScreenSize
(2.);
91
circle.
SetFillStyle
(
G4Circle::filled
);
92
G4Colour
colour(1.,0.,0.);
93
G4VisAttributes
attribs(colour);
94
circle.
SetVisAttributes
(attribs);
95
pVVisManager->
Draw
(circle);
96
}
97
}
98
99
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
100
101
void
ExP01TrackerHit::Print
()
102
{
103
G4cout
<<
" trackID: "
<<
fTrackID
<<
" chamberNb: "
<<
fChamberNb
104
<<
" energy deposit[MeV]: "
<<
fEdep
105
<<
" position[mm]: "
<<
fPos
<<
G4endl
;
106
}
107
108
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
G4Colour.hh
right
Definition:
F04UserTrackInformation.hh:37
ExP01TrackerHit::fEdep
G4double fEdep
Definition:
ExP01TrackerHit.hh:79
G4VVisManager::Draw
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
G4Colour
Definition:
G4Colour.hh:83
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4VHit
Definition:
G4VHit.hh:48
ExP01TrackerHit
Hit implementation for the persistency example.
Definition:
ExP01TrackerHit.hh:47
G4VVisManager
Definition:
G4VVisManager.hh:93
G4VVisManager.hh
ExP01TrackerHit::fTrackID
G4int fTrackID
Definition:
ExP01TrackerHit.hh:73
G4VMarker::filled
Definition:
G4VMarker.hh:97
G4VVisManager::GetConcreteInstance
static G4VVisManager * GetConcreteInstance()
Definition:
G4VVisManager.cc:39
ExP01TrackerHit::Draw
virtual void Draw()
Definition:
ExP01TrackerHit.cc:84
G4VMarker::SetScreenSize
void SetScreenSize(G4double)
ExP01TrackerHit::operator==
G4int operator==(const ExP01TrackerHit &) const
Definition:
ExP01TrackerHit.cc:77
ExP01TrackerHit::operator=
const ExP01TrackerHit & operator=(const ExP01TrackerHit &)
Definition:
ExP01TrackerHit.cc:66
ExP01TrackerHit::~ExP01TrackerHit
~ExP01TrackerHit()
Definition:
ExP01TrackerHit.cc:51
G4Circle.hh
G4VisAttributes
Definition:
G4VisAttributes.hh:69
ExP01TrackerHit::fChamberNb
G4int fChamberNb
Definition:
ExP01TrackerHit.hh:78
G4int
int G4int
Definition:
G4Types.hh:78
G4UnitsTable.hh
ExP01TrackerHit::ExP01TrackerHit
ExP01TrackerHit()
Definition:
ExP01TrackerHit.cc:46
ExP01TrackerHit::fPos
G4ThreeVector fPos
Definition:
ExP01TrackerHit.hh:80
ExP01TrackerHit.hh
Definition of the ExP01TrackerHit class.
G4Circle
Definition:
G4Circle.hh:43
G4cout
G4GLOB_DLL std::ostream G4cout
G4VisAttributes.hh
G4Allocator
Definition:
G4Allocator.hh:67
ExP01TrackerHit::Print
virtual void Print()
Definition:
ExP01TrackerHit.cc:101
G4Visible::SetVisAttributes
void SetVisAttributes(const G4VisAttributes *)
Definition:
G4Visible.cc:80
G4VMarker::SetFillStyle
void SetFillStyle(FillStyle)
ExP01TrackerHitAllocator
G4Allocator< ExP01TrackerHit > ExP01TrackerHitAllocator
Definition:
ExP01TrackerHit.cc:42
다음에 의해 생성됨 :
1.8.5