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.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SvtxTrack_FastSim.cc
1
/*
2
* SvtxTrack_FastSim.C
3
*
4
* Created on: Jul 28, 2016
5
* Author: yuhw
6
*/
7
8
#include "
SvtxTrack_FastSim.h
"
9
10
#include "
SvtxTrack.h
"
// for SvtxTrack::ConstClusterIter, SvtxTrack
11
12
#include <climits>
13
#include <map>
// for _Rb_tree_const_iterator
14
#include <ostream>
// for operator<<, basic_ostream, basic_ostream<>::_...
15
16
SvtxTrack_FastSim::SvtxTrack_FastSim
(
const
SvtxTrack
&
source
)
17
{
SvtxTrack_FastSim::CopyFrom
( source ); }
18
19
void
SvtxTrack_FastSim::CopyFrom
(
const
SvtxTrack
&
source
)
20
{
21
22
// parent class method
23
SvtxTrack_v1::CopyFrom
( source );
24
25
// additional members
26
_truth_track_id
= source.
get_truth_track_id
();
27
_nmeas
= source.
get_num_measurements
();
28
29
}
30
31
void
SvtxTrack_FastSim::identify
(std::ostream&
os
)
const
32
{
33
SvtxTrack_v1::identify
( os );
34
35
os <<
"SvtxTrack_FastSim Object "
;
36
os <<
"truth_track_id:"
<<
get_truth_track_id
();
37
os <<
"id: "
<<
get_id
() <<
" "
;
38
os <<
"charge: "
<<
get_charge
() <<
" "
;
39
os <<
"chisq: "
<<
get_chisq
() <<
" ndf:"
<<
get_ndf
() <<
" "
;
40
os << std::endl;
41
42
os <<
"(px,py,pz) = ("
43
<<
get_px
() <<
","
44
<<
get_py
() <<
","
45
<<
get_pz
() <<
")"
<< std::endl;
46
47
os <<
"(x,y,z) = ("
<<
get_x
() <<
","
<<
get_y
() <<
","
<<
get_z
() <<
")"
<< std::endl;
48
49
if
(!
empty_clusters
())
50
{
51
os <<
"clusters: "
;
52
for
(
SvtxTrack::ConstClusterIter
iter =
begin_clusters
();
53
iter !=
end_clusters
();
54
++iter)
55
{
56
unsigned
int
cluster_id = *iter;
57
os << cluster_id <<
" "
;
58
}
59
os << std::endl;
60
}
61
62
return
;
63
}
64
65
int
SvtxTrack_FastSim::isValid
()
const
66
{
67
return
1;
68
}
coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:09
using
1.8.2 with
sPHENIX GitHub integration