Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SvtxTrack_FastSim_v1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SvtxTrack_FastSim_v1.h
1
/*
2
* SvtxTrack_FastSim_v1.h
3
*/
4
5
#ifndef TRACKBASEHISTORIC_SVTXTRACKFASTSIMV1_H
6
#define TRACKBASEHISTORIC_SVTXTRACKFASTSIMV1_H
7
8
#include "
SvtxTrack_FastSim.h
"
9
10
// SvtxTrack_FastSim with recording of associated G4hits
11
class
SvtxTrack_FastSim_v1
final:
public
SvtxTrack_FastSim
12
{
13
public
:
14
15
//* constructor
16
SvtxTrack_FastSim_v1
() =
default
;
17
18
//* base class copy constructor
19
SvtxTrack_FastSim_v1
(
const
SvtxTrack
& );
20
21
//* destructor
22
~SvtxTrack_FastSim_v1
()
override
=
default
;
23
24
// copy content from base class
25
using
PHObject::CopyFrom
;
// avoid warning for not implemented CopyFrom methods
26
void
CopyFrom
(
const
SvtxTrack
& )
override
;
27
void
CopyFrom
(
SvtxTrack
*
source
)
override
28
{
CopyFrom
( *source ); }
29
30
// The "standard PHObject response" functions...
31
void
identify
(std::ostream&
os
= std::cout)
const override
;
32
void
Reset
()
override
33
{ *
this
=
SvtxTrack_FastSim_v1
(); }
34
35
int
isValid
()
const override
;
36
37
PHObject
*
CloneMe
()
const override
38
{
return
new
SvtxTrack_FastSim_v1
(*
this
); }
39
40
42
43
44
const
HitIdMap
&
g4hit_ids
()
const override
45
{
return
_g4hit_ids
; }
46
47
bool
empty_g4hit_id
()
const override
48
{
return
_g4hit_ids
.empty(); }
49
50
size_t
size_g4hit_id
()
const override
51
{
return
_g4hit_ids
.size(); }
52
53
SvtxTrack::HitIdConstIter
begin_g4hit_id
()
const override
54
{
return
_g4hit_ids
.begin(); }
55
56
SvtxTrack::HitIdConstIter
end_g4hit_id
()
const override
57
{
return
_g4hit_ids
.end(); }
58
59
SvtxTrack::HitIdConstIter
find_g4hit_id
(
int
volume)
const override
60
{
return
_g4hit_ids
.find(volume); }
61
63
64
66
67
68
void
add_g4hit_id
(
int
volume,
PHG4HitDefs::keytype
id
)
override
69
{
_g4hit_ids
[volume].insert(
id
); }
70
71
size_t
remove_g4hit_id
(
int
volume,
PHG4HitDefs::keytype
id
)
override
72
{
return
_g4hit_ids
[volume].erase(
id
); }
73
74
size_t
remove_g4hit_volume
(
int
volume)
override
75
{
return
_g4hit_ids
.erase(volume); }
76
77
SvtxTrack::HitIdIter
begin_g4hit_id
()
override
78
{
return
_g4hit_ids
.begin(); }
79
80
SvtxTrack::HitIdIter
end_g4hit_id
()
override
81
{
return
_g4hit_ids
.end(); }
82
83
SvtxTrack::HitIdIter
find_g4hit_id
(
int
volume)
override
84
{
return
_g4hit_ids
.find(volume); }
85
86
void
clear_g4hit_id
()
override
87
{
return
_g4hit_ids
.clear(); }
88
90
91
private
:
92
93
HitIdMap
_g4hit_ids
;
94
95
ClassDefOverride
(
SvtxTrack_FastSim_v1
, 1)
96
};
97
98
#endif
/* __SVTXTRACK_FAST_SIMV1_H__ */
coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim_v1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration