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
SvtxTrack_FastSim_v2.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SvtxTrack_FastSim_v2.cc
1
/*
2
* SvtxTrack_FastSim_v2.C
3
*
4
* Created on: Jul 28, 2016
5
* Author: yuhw
6
*/
7
8
#include "
SvtxTrack_FastSim_v2.h
"
9
10
#include "
SvtxTrack.h
"
// for SvtxTrack::ConstClusterIter, SvtxTrack
11
12
#include <map>
// for _Rb_tree_const_iterator
13
#include <ostream>
// for operator<<, basic_ostream, basic_ostream<>::_...
14
15
SvtxTrack_FastSim_v2::SvtxTrack_FastSim_v2
(
const
SvtxTrack
& source)
16
{
SvtxTrack_FastSim_v2::CopyFrom
( source ); }
17
18
void
SvtxTrack_FastSim_v2::CopyFrom
(
const
SvtxTrack
& source )
19
{
20
// do nothing if copying onto oneself
21
if
(
this
== &source )
return
;
22
23
// parent class method
24
SvtxTrack_v2::CopyFrom
( source );
25
26
// additional members
27
_truth_track_id
= source.
get_truth_track_id
();
28
_nmeas
= source.
get_num_measurements
();
29
_g4hit_ids
= source.
g4hit_ids
();
30
}
31
32
void
SvtxTrack_FastSim_v2::identify
(std::ostream& os)
const
33
{
34
SvtxTrack_v2::identify
(os);
35
36
os <<
"SvtxTrack_FastSim_v2 Object "
;
37
os <<
"_truth_Track_id: "
<<
_truth_track_id
<< std::endl;
38
os <<
"_nmeas: "
<<
_nmeas
<< std::endl;
39
40
os <<
"G4Hit IDs:"
<< std::endl;
41
for
(
const
auto
& pair:
_g4hit_ids
)
42
{
43
os <<
"\thit container ID"
<< pair.first <<
" with hits: "
;
44
for
(
const
auto
& hitid:pair.second )
45
{ os << hitid <<
" "
; }
46
os << std::endl;
47
}
48
return
;
49
}
50
51
int
SvtxTrack_FastSim_v2::isValid
()
const
52
{
53
return
1;
54
}
fun4all_coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim_v2.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:46
using
1.8.2 with
EIC GitHub integration