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
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
void
CopyFrom
(
const
SvtxTrack
& )
override
;
26
void
CopyFrom
(
SvtxTrack
* source )
override
27
{
CopyFrom
( *source ); }
28
29
// The "standard PHObject response" functions...
30
void
identify
(std::ostream& os = std::cout)
const override
;
31
void
Reset
()
override
32
{ *
this
=
SvtxTrack_FastSim_v1
(); }
33
34
int
isValid
()
const override
;
35
36
PHObject
*
CloneMe
()
const override
37
{
return
new
SvtxTrack_FastSim_v1
(*
this
); }
38
39
41
42
43
const
HitIdMap
&
g4hit_ids
()
const override
44
{
return
_g4hit_ids
; }
45
46
bool
empty_g4hit_id
()
const override
47
{
return
_g4hit_ids
.empty(); }
48
49
size_t
size_g4hit_id
()
const override
50
{
return
_g4hit_ids
.size(); }
51
52
SvtxTrack::HitIdConstIter
begin_g4hit_id
()
const override
53
{
return
_g4hit_ids
.begin(); }
54
55
SvtxTrack::HitIdConstIter
end_g4hit_id
()
const override
56
{
return
_g4hit_ids
.end(); }
57
58
SvtxTrack::HitIdConstIter
find_g4hit_id
(
int
volume
)
const override
59
{
return
_g4hit_ids
.find(volume); }
60
62
63
65
66
67
void
add_g4hit_id
(
int
volume
,
PHG4HitDefs::keytype
id
)
override
68
{
_g4hit_ids
[
volume
].insert(
id
); }
69
70
size_t
remove_g4hit_id
(
int
volume
,
PHG4HitDefs::keytype
id
)
override
71
{
return
_g4hit_ids
[
volume
].erase(
id
); }
72
73
size_t
remove_g4hit_volume
(
int
volume
)
override
74
{
return
_g4hit_ids
.erase(volume); }
75
76
SvtxTrack::HitIdIter
begin_g4hit_id
()
override
77
{
return
_g4hit_ids
.begin(); }
78
79
SvtxTrack::HitIdIter
end_g4hit_id
()
override
80
{
return
_g4hit_ids
.end(); }
81
82
SvtxTrack::HitIdIter
find_g4hit_id
(
int
volume
)
override
83
{
return
_g4hit_ids
.find(volume); }
84
85
void
clear_g4hit_id
()
override
86
{
return
_g4hit_ids
.clear(); }
87
89
90
private
:
91
92
HitIdMap
_g4hit_ids
;
93
94
ClassDefOverride
(
SvtxTrack_FastSim_v1
, 1)
95
};
96
97
#endif
/* __SVTXTRACK_FAST_SIMV1_H__ */
coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim_v1.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration