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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloReco
centrality
ClusterIso
compressor
Half
HelixHough
intt
jetbackground
KFParticle_sPHENIX
micromegas
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
PHTpcTracker
tpc
tpccalib
tpcdaq
trackbase
trackbase_historic
ActsTransformations.cc
ActsTransformations.h
SvtxTrack.cc
SvtxTrack.h
SvtxTrack_FastSim.cc
SvtxTrack_FastSim.h
SvtxTrack_FastSim_v1.cc
SvtxTrack_FastSim_v1.h
SvtxTrack_FastSim_v1LinkDef.h
SvtxTrack_FastSim_v2.cc
SvtxTrack_FastSim_v2.h
SvtxTrack_FastSim_v2LinkDef.h
SvtxTrack_FastSimLinkDef.h
SvtxTrack_v1.cc
SvtxTrack_v1.h
SvtxTrack_v1LinkDef.h
SvtxTrack_v2.cc
SvtxTrack_v2.h
SvtxTrack_v2LinkDef.h
SvtxTrackLinkDef.h
SvtxTrackMap.cc
SvtxTrackMap.h
SvtxTrackMap_v1.cc
SvtxTrackMap_v1.h
SvtxTrackMap_v1LinkDef.h
SvtxTrackMapLinkDef.h
SvtxTrackState.h
SvtxTrackState_v1.cc
SvtxTrackState_v1.h
SvtxTrackState_v1LinkDef.h
SvtxTrackStateLinkDef.h
SvtxVertex.cc
SvtxVertex.h
SvtxVertex_v1.cc
SvtxVertex_v1.h
SvtxVertex_v1LinkDef.h
SvtxVertexLinkDef.h
SvtxVertexMap.cc
SvtxVertexMap.h
SvtxVertexMap_v1.cc
SvtxVertexMap_v1.h
SvtxVertexMap_v1LinkDef.h
SvtxVertexMapLinkDef.h
trackreco
trigger
vararray
QA
simulation
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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
}
coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim_v2.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration