Geant4
10.00.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ExN04CalorimeterHit.cc
Go to the documentation of this file.
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
}
ExN04CalorimeterHit
Definition:
ExN04CalorimeterHit.hh:43
G4VisAttributes::SetColour
void SetColour(const G4Colour &)
G4VisAttributes::SetForceWireframe
void SetForceWireframe(G4bool)
right
Definition:
F04UserTrackInformation.hh:37
ExN04CalorimeterHit::Print
virtual void Print()
Definition:
ExN04CalorimeterHit.cc:110
G4VVisManager::GetConcreteInstance
static G4VVisManager * GetConcreteInstance()
Definition:
G4VVisManager.cc:39
ExN04CalorimeterHit::Draw
virtual void Draw()
Definition:
ExN04CalorimeterHit.cc:92
z
G4double z
Definition:
TRTMaterials.hh:39
ExN04CalorimeterHit::fedep
G4double fedep
Definition:
ExN04CalorimeterHit.hh:75
ExN04CalorimeterHit::fpos
G4ThreeVector fpos
Definition:
ExN04CalorimeterHit.hh:76
G4Colour
Definition:
G4Colour.hh:83
G4VHit
Definition:
G4VHit.hh:48
G4VisAttributes::SetForceSolid
void SetForceSolid(G4bool)
G4VVisManager
Definition:
G4VVisManager.hh:93
G4int
int G4int
Definition:
G4Types.hh:78
ExN04CalorimeterHit::operator==
G4int operator==(const ExN04CalorimeterHit &right) const
Definition:
ExN04CalorimeterHit.cc:85
G4VVisManager.hh
G4VisAttributes.hh
G4VisAttributes
Definition:
G4VisAttributes.hh:65
G4Colour.hh
G4LogicalVolume
Definition:
G4LogicalVolume.hh:187
G4Transform3D
HepGeom::Transform3D G4Transform3D
Definition:
G4Transform3D.hh:35
ExN04CalorimeterHit::fZCellID
G4int fZCellID
Definition:
ExN04CalorimeterHit.hh:73
G4LogicalVolume.hh
G4Allocator
Definition:
G4Allocator.hh:65
ExN04CalorimeterHit::fPhiCellID
G4int fPhiCellID
Definition:
ExN04CalorimeterHit.hh:74
ExN04CalorimeterHit::frot
G4RotationMatrix frot
Definition:
ExN04CalorimeterHit.hh:77
ExN04CalorimeterHitAllocator
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
Definition:
ExN04CalorimeterHit.cc:38
ExN04CalorimeterHit::ExN04CalorimeterHit
ExN04CalorimeterHit()
Definition:
ExN04CalorimeterHit.cc:41
ExN04CalorimeterHit::fpLogV
const G4LogicalVolume * fpLogV
Definition:
ExN04CalorimeterHit.hh:78
ExN04CalorimeterHit::~ExN04CalorimeterHit
virtual ~ExN04CalorimeterHit()
Definition:
ExN04CalorimeterHit.cc:66
geant4.10.00.p02
examples
extended
eventgenerator
HepMC
HepMCEx01
src
ExN04CalorimeterHit.cc
Generated on Thu Dec 31 2015 10:39:41 for Geant4 by
1.8.8