ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ExGflashHit.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ExGflashHit.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
//
26
//
29
//
30
#ifndef ExGflashHit_h
31
#define ExGflashHit_h 1
32
33
#include "
G4VHit.hh
"
34
#include "G4THitsCollection.hh"
35
#include "
G4Allocator.hh
"
36
#include "
G4ThreeVector.hh
"
37
#include "
G4RotationMatrix.hh
"
38
39
class
G4LogicalVolume
;
40
41
class
ExGflashHit
:
public
G4VHit
42
{
43
public
:
44
45
ExGflashHit
();
46
ExGflashHit
(
G4LogicalVolume
* logVol);
47
~ExGflashHit
();
48
ExGflashHit
(
const
ExGflashHit
&
right
);
49
const
ExGflashHit
&
operator=
(
const
ExGflashHit
&
right
);
50
G4bool
operator==
(
const
ExGflashHit
&
right
)
const
;
51
52
inline
void
*
operator
new
(size_t);
53
inline
void
operator
delete
(
void
*aHit);
54
void
*
operator
new
(size_t,
void
*
p
){
return
p
;}
55
#ifndef G4NOT_ISO_DELETES
56
void
operator
delete
(
void
*,
void
*){}
57
#endif
58
59
virtual
void
Draw
();
60
virtual
void
Print
();
61
62
private
:
63
G4double
fEdep
;
64
G4ThreeVector
fPos
;
65
G4int
fCrystalNumber
;
66
G4ThreeVector
fStart
;
67
G4RotationMatrix
fRot
;
68
const
G4LogicalVolume
*
fLogV
;
69
70
public
:
71
inline
void
SetEdep
(
G4double
de)
72
{
fEdep
= de; };
73
inline
void
AddEdep
(
G4double
de)
74
{
fEdep
+= de; };
75
inline
G4double
GetEdep
()
76
{
return
fEdep
; };
77
inline
void
SetPos
(
G4ThreeVector
xyz)
78
{
fPos
= xyz; };
79
inline
G4int
GetCrystalNum
()
80
{
return
fCrystalNumber
; };
81
inline
void
SetCrystalNum
(
G4int
num
)
82
{
fCrystalNumber
=
num
; };
83
inline
G4ThreeVector
GetPos
()
84
{
return
fPos
; };
85
inline
void
SetStart
(
G4ThreeVector
xyz)
86
{
fStart
= xyz; };
87
inline
G4ThreeVector
GetStart
()
88
{
return
fStart
; };
89
90
inline
void
SetRot
(
G4RotationMatrix
rmat)
91
{
fRot
= rmat; };
92
inline
G4RotationMatrix
GetRot
()
93
{
return
fRot
; };
94
inline
const
G4LogicalVolume
*
GetLogV
()
95
{
return
fLogV
; };
96
};
97
98
typedef
G4THitsCollection<ExGflashHit>
ExGflashHitsCollection
;
99
100
extern
G4ThreadLocal
G4Allocator<ExGflashHit>
*
ExGflashHitAllocator
;
101
102
inline
void
* ExGflashHit::operator
new
(size_t)
103
{
104
if
(!
ExGflashHitAllocator
)
ExGflashHitAllocator
=
new
G4Allocator<ExGflashHit>
;
105
return
(
void
*)
ExGflashHitAllocator
->MallocSingle();
106
}
107
108
inline
void
ExGflashHit::operator
delete
(
void
*aHit)
109
{
110
ExGflashHitAllocator
->FreeSingle((
ExGflashHit
*) aHit);
111
}
112
113
#endif
114
115
116
117
118
geant4
tree
geant4-10.6-release
examples
extended
parameterisations
gflash
gflash3
include
ExGflashHit.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:09
using
1.8.2 with
ECCE GitHub integration