Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
parallel
ParN04
include
ExN04CalorimeterHit.hh
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
30
#ifndef ExN04CalorimeterHit_h
31
#define ExN04CalorimeterHit_h 1
32
33
34
//MSH_include_begin
35
#include "
MarshaledG4String.h
"
36
//MSH_include_end
37
38
39
#include "
G4VHit.hh
"
40
#include "G4THitsCollection.hh"
41
#include "
G4Allocator.hh
"
42
#include "
G4ThreeVector.hh
"
43
#include "
G4LogicalVolume.hh
"
44
#include "
G4Transform3D.hh
"
45
#include "
G4RotationMatrix.hh
"
46
47
48
//MSH_BEGIN
49
class
ExN04CalorimeterHit
:
public
G4VHit
50
{
51
public
:
52
53
ExN04CalorimeterHit
();
54
ExN04CalorimeterHit
(
G4LogicalVolume
* logVol,
G4int
z
,
G4int
phi);
55
~ExN04CalorimeterHit
();
56
ExN04CalorimeterHit
(
const
ExN04CalorimeterHit
&
right
);
57
const
ExN04CalorimeterHit
&
operator=
(
const
ExN04CalorimeterHit
&
right
);
58
G4int
operator==
(
const
ExN04CalorimeterHit
&
right
)
const
;
59
60
inline
void
*
operator
new
(size_t);
61
inline
void
operator
delete
(
void
*aHit);
62
63
void
Draw
();
64
void
Print
();
65
66
private
:
67
68
G4int
ZCellID;
/*MSH: primitive
69
[elementGet: { $ELEMENT = $THIS->GetZ(); }]
70
[elementSet: { $THIS->SetCellID($ELEMENT, $THIS->GetPhi()); }] */
71
72
G4int
PhiCellID;
/*MSH: primitive
73
[elementGet: { $ELEMENT = $THIS->GetPhi(); }]
74
[elementSet: { $THIS->SetCellID($THIS->GetZ(), $ELEMENT); }] */
75
76
77
G4double
edep;
/*MSH: primitive
78
[elementGet: { $ELEMENT = $THIS->GetEdep(); }]
79
[elementSet: { $THIS->SetEdep($ELEMENT); }] */
80
81
G4ThreeVector
pos;
/*MSH: primitive
82
[elementGet: { $ELEMENT = $THIS->GetPos(); }]
83
[elementSet: { $THIS->SetPos($ELEMENT); }] */
84
85
G4RotationMatrix
rot;
86
const
G4LogicalVolume
* pLogV;
87
88
89
90
public
:
91
inline
void
SetCellID
(
G4int
z
,
G4int
phi)
92
{
93
ZCellID =
z
;
94
PhiCellID = phi;
95
}
96
inline
G4int
GetZ
() {
return
ZCellID; }
97
inline
G4int
GetPhi
() {
return
PhiCellID; }
98
inline
void
SetEdep
(
G4double
de)
99
{ edep = de; }
100
inline
void
AddEdep
(
G4double
de)
101
{ edep += de; }
102
inline
G4double
GetEdep
()
103
{
return
edep; }
104
inline
void
SetPos
(
G4ThreeVector
xyz)
105
{ pos = xyz; }
106
inline
G4ThreeVector
GetPos
()
107
{
return
pos; }
108
inline
void
SetRot
(
G4RotationMatrix
rmat)
109
{ rot = rmat; }
110
inline
G4RotationMatrix
GetRot
()
111
{
return
rot; }
112
inline
const
G4LogicalVolume
*
GetLogV
()
113
{
return
pLogV; }
114
115
};
116
//MSH_END
117
118
typedef
G4THitsCollection<ExN04CalorimeterHit>
ExN04CalorimeterHitsCollection
;
119
120
extern
G4Allocator<ExN04CalorimeterHit>
ExN04CalorimeterHitAllocator
;
121
122
inline
void
* ExN04CalorimeterHit::operator
new
(size_t)
123
{
124
void
*aHit;
125
aHit = (
void
*) ExN04CalorimeterHitAllocator.
MallocSingle
();
126
return
aHit;
127
}
128
129
inline
void
ExN04CalorimeterHit::operator
delete
(
void
*aHit)
130
{
131
ExN04CalorimeterHitAllocator.
FreeSingle
((
ExN04CalorimeterHit
*) aHit);
132
}
133
134
#endif
135
136
Generated on Sat May 25 2013 14:32:22 for Geant4 by
1.8.4