Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
g4gdml
g4histos
g4ihcal
g4intt
g4jets
g4main
g4micromegas
g4mvtx
g4ohcal
g4tpc
g4trackfastsim
g4tracking
EmbRecoMatch.h
EmbRecoMatchContainer.cc
EmbRecoMatchContainer.h
EmbRecoMatchContainerLinkDef.h
EmbRecoMatchContainerv1.cc
EmbRecoMatchContainerv1.h
EmbRecoMatchContainerv1LinkDef.h
EmbRecoMatchLinkDef.h
EmbRecoMatchv1.cc
EmbRecoMatchv1.h
EmbRecoMatchv1LinkDef.h
TrkrTruthTrack.cc
TrkrTruthTrack.h
TrkrTruthTrackContainer.cc
TrkrTruthTrackContainer.h
TrkrTruthTrackContainerLinkDef.h
TrkrTruthTrackContainerv1.cc
TrkrTruthTrackContainerv1.h
TrkrTruthTrackContainerv1LinkDef.h
TrkrTruthTrackLinkDef.h
TrkrTruthTrackv1.cc
TrkrTruthTrackv1.h
TrkrTruthTrackv1LinkDef.h
TruthClusterizerBase.cc
TruthClusterizerBase.h
g4vertex
g4waveformsim
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrkrTruthTrackv1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrkrTruthTrackv1.h
1
#ifndef TRACKBASE_TRKRTRUTHTRACKV1_H
2
#define TRACKBASE_TRKRTRUTHTRACKV1_H
3
9
#include "
TrkrTruthTrack.h
"
10
11
class
PHG4Particle
;
12
class
PHG4VtxPoint
;
13
14
class
TrkrTruthTrackv1
:
public
TrkrTruthTrack
15
{
16
public
:
18
TrkrTruthTrackv1
();
19
TrkrTruthTrackv1
(
unsigned
int
,
PHG4Particle
*,
PHG4VtxPoint
*);
20
22
~TrkrTruthTrackv1
()
override
=
default
;
23
24
unsigned
int
getTrackid
()
const override
{
return
trackid
; };
25
float
getX0
()
const override
{
return
X0
; };
26
float
getY0
()
const override
{
return
Y0
; };
27
float
getZ0
()
const override
{
return
Z0
; };
28
29
float
getPseudoRapidity
()
const override
{
return
pseudoRapidity
; };
30
float
getPt
()
const override
{
return
pt
; };
31
float
getPhi
()
const override
{
return
phi
; };
32
33
std::vector<TrkrDefs::cluskey>&
getClusters
()
override
{
return
clusters
; };
34
void
addCluster
(
TrkrDefs::cluskey
)
override
;
35
36
bool
has_hitsetkey
(
TrkrDefs::hitsetkey
)
const override
;
// note, only works when the data is sorted
37
bool
has_hitsetkey
(
TrkrDefs::cluskey
)
const override
;
38
std::pair<bool, TrkrDefs::cluskey>
get_cluskey
(
TrkrDefs::hitsetkey
)
const override
;
// bool is if there is the key, and
39
40
void
setTrackid
(
unsigned
int
_
)
override
{
trackid
=
_
; };
41
42
void
setX0
(
float
_
)
override
{
X0
=
_
; };
43
void
setY0
(
float
_
)
override
{
Y0
=
_
; };
44
void
setZ0
(
float
_
)
override
{
Z0
=
_
; };
45
46
void
setPseudoRapity
(
float
_
)
override
{
pseudoRapidity
=
_
; };
47
void
setPt
(
float
_
)
override
{
pt
=
_
; };
48
void
setPhi
(
float
_
)
override
{
phi
=
_
; };
49
50
void
identify
(std::ostream&
os
= std::cout)
const override
;
51
52
struct
CompHitSetKey
{
53
bool
operator()
(
const
TrkrDefs::cluskey
&
lhs
,
const
TrkrDefs::cluskey
&
rhs
) {
54
return
TrkrDefs::getHitSetKeyFromClusKey
(lhs) <
TrkrDefs::getHitSetKeyFromClusKey
(rhs);
55
};
56
bool
operator()
(
const
TrkrDefs::cluskey
&
lhs
,
const
TrkrDefs::hitsetkey
&
rhs
) {
57
return
TrkrDefs::getHitSetKeyFromClusKey
(lhs) <
rhs
;
58
};
59
bool
operator()
(
const
TrkrDefs::hitsetkey
&
lhs
,
const
TrkrDefs::cluskey
&
rhs
) {
60
return
lhs <
TrkrDefs::getHitSetKeyFromClusKey
(rhs);
61
};
62
};
63
64
protected
:
65
unsigned
int
trackid
;
66
float
X0
;
67
float
Y0
;
68
float
Z0
;
69
70
float
pseudoRapidity
;
71
float
pt
;
72
float
phi
;
73
74
std::vector<TrkrDefs::cluskey>
clusters
;
75
ClassDefOverride(
TrkrTruthTrackv1
, 1)
76
};
77
#endif
coresoftware
blob
master
simulation
g4simulation
g4tracking
TrkrTruthTrackv1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration