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.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SvtxTrack_FastSim_v1.cc
1
/*
2
* SvtxTrack_FastSim_v1.C
3
*
4
* Created on: Jul 28, 2016
5
* Author: yuhw
6
*/
7
8
#include "
SvtxTrack_FastSim_v1.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_v1::SvtxTrack_FastSim_v1
(
const
SvtxTrack
& source)
17
{
SvtxTrack_FastSim_v1::CopyFrom
( source ); }
18
19
void
SvtxTrack_FastSim_v1::CopyFrom
(
const
SvtxTrack
& source )
20
{
21
// do nothing if copying onto oneself
22
if
(
this
== &source )
return
;
23
24
// parent class method
25
SvtxTrack_FastSim::CopyFrom
( source );
26
27
// additional members
28
_g4hit_ids
= source.
g4hit_ids
();
29
}
30
31
void
SvtxTrack_FastSim_v1::identify
(std::ostream& os)
const
32
{
33
SvtxTrack_FastSim::identify
(os);
34
35
os <<
"SvtxTrack_FastSim_v1 Object "
;
36
os <<
"G4Hit IDs:"
<< std::endl;
37
for
(
const
auto
& pair:
_g4hit_ids
)
38
{
39
os <<
"\thit container ID"
<< pair.first <<
" with hits: "
;
40
for
(
const
auto
& hitid:pair.second )
41
{ os << hitid <<
" "
; }
42
os << std::endl;
43
}
44
return
;
45
}
46
47
int
SvtxTrack_FastSim_v1::isValid
()
const
48
{
49
return
1;
50
}
coresoftware
blob
master
offline
packages
trackbase_historic
SvtxTrack_FastSim_v1.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:37
using
1.8.2 with
ECCE GitHub integration