EIC Software
Reference for
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
PrtHit.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PrtHit.h
1
// -----------------------------------------
2
// PrtHit.h
3
//
4
// Author : R.Dzhygadlo at gsi.de
5
// -----------------------------------------
6
7
#ifndef PrtHit_h
8
#define PrtHit_h 1
9
10
#include <Rtypes.h>
11
12
#include <
g4main/PHG4Hit.h
>
13
#include <
g4main/PHG4Hitv1.h
>
14
#include "TVector3.h"
15
16
/*namespace bar_vectors
17
{
18
std::vector<TVector3> vector_p_bar;
19
std::vector<TVector3> vector_hit_pos_bar;
20
21
std::vector<TVector3> get_p_bar() { return vector_p_bar; }
22
std::vector<TVector3> get_pos_bar() { return vector_hit_pos_bar;}
23
24
}*/
25
26
class
PrtHit
:
public
PHG4Hitv1
27
{
28
public
:
29
//Constructor
30
PrtHit
();
31
32
~PrtHit
(){};
33
34
// Accessors
35
Int_t
GetParticleId
() {
return
fParticleId
; }
36
Int_t
GetParentParticleId
() {
return
fParentParticleId
; }
37
38
Int_t
GetNreflectionsInPrizm
() {
return
fNreflectionsInPrizm
; }
39
Long64_t
GetPathInPrizm
() {
return
fPathInPrizm
; }
40
41
TVector3
GetLocalPos
() {
return
fLocalPos
; }
42
TVector3
GetGlobalPos
() {
return
fGlobalPos
; }
43
TVector3
GetDigiPos
() {
return
fDigiPos
; }
44
TVector3
GetMomentum
() {
return
fMomentum
; }
45
TVector3
GetPosition
() {
return
fPosition
; }
46
TVector3
GetMomentumAtBar
()
const
{
return
fMomBar
; };
47
TVector3
GetPositionAtBar
()
const
{
return
fPosBar
; };
48
49
Int_t
GetMcpId
() {
return
fMcpId
; }
50
Int_t
GetPixelId
() {
return
fPixelId
; }
51
Int_t
GetChannel
() {
return
fChannel
; }
52
Int_t
GetMultiplicity
() {
return
fMultiplicity
; }
53
Double_t
GetLeadTime
() {
return
fLeadTime
; }
54
Double_t
GetTotTime
() {
return
fTotTime
; }
55
56
// Mutators
57
void
SetParticleId
(Int_t val) {
fParticleId
= val; }
58
void
SetParentParticleId
(Int_t val) {
fParentParticleId
= val; }
59
60
void
SetNreflectionsInPrizm
(Int_t val) {
fNreflectionsInPrizm
= val; }
61
void
SetPathInPrizm
(Long64_t val) {
fPathInPrizm
= val; }
62
63
void
SetLocalPos
(TVector3 val) {
fLocalPos
= val; }
64
void
SetGlobalPos
(TVector3 val) {
fGlobalPos
= val; }
65
void
SetDigiPos
(TVector3 val) {
fDigiPos
= val; }
66
void
SetMomentum
(TVector3 val) {
fMomentum
= val; }
67
void
SetPosition
(TVector3 val) {
fPosition
= val; }
68
void
SetMomentumAtBar
(TVector3 val) {
fMomBar
= val; }
69
void
SetPositionAtBar
(TVector3 val) {
fPosBar
= val; }
70
71
void
SetMcpId
(Int_t val) {
fMcpId
= val; }
72
void
SetPixelId
(Int_t val) {
fPixelId
= val; }
73
void
SetChannel
(Int_t val) {
fChannel
= val; }
74
void
SetMultiplicity
(Int_t val) {
fMultiplicity
= val; }
75
void
SetLeadTime
(Double_t val) {
fLeadTime
= val; }
76
void
SetTotTime
(Double_t val) {
fTotTime
= val; }
77
78
protected
:
79
Int_t
fParticleId
;
80
Int_t
fParentParticleId
;
81
Int_t
fNreflectionsInPrizm
;
82
Long64_t
fPathInPrizm
;
83
TVector3
fLocalPos
;
84
TVector3
fGlobalPos
;
85
TVector3
fDigiPos
;
86
TVector3
fMomentum
;
87
TVector3
fPosition
;
88
TVector3
fMomBar
;
89
TVector3
fPosBar
;
90
91
Int_t
fMcpId
;
92
Int_t
fPixelId
;
93
Int_t
fChannel
;
94
Int_t
fMultiplicity
;
95
Double_t
fLeadTime
;
96
Double_t
fTotTime
;
97
98
ClassDef(
PrtHit
, 2)
99
};
100
101
#endif
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4eicdirc
PrtHit.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:52
using
1.8.2 with
EIC GitHub integration