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
PHTrackPropagating.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHTrackPropagating.cc
1
#include "
PHTrackPropagating.h
"
2
3
#include <
trackbase_historic/SvtxTrackMap.h
>
4
#include <
globalvertex/SvtxVertexMap.h
>
5
6
#include <
trackbase/TrkrClusterContainer.h
>
7
#include <
trackbase/TrkrHitSet.h
>
8
#include <
trackbase/TrkrDefs.h
>
9
10
#include <
fun4all/Fun4AllReturnCodes.h
>
11
#include <
fun4all/SubsysReco.h
>
// for SubsysReco
12
13
#include <
phool/getClass.h
>
14
#include <
phool/phool.h
>
// for PHWHERE
15
16
#include <iostream>
// for operator<<, basic_ostream
17
18
using namespace
std;
19
20
PHTrackPropagating::PHTrackPropagating
(
const
std::string
&
name
)
21
:
SubsysReco
(name)
22
{}
23
24
int
PHTrackPropagating::InitRun
(
PHCompositeNode
* topNode)
25
{
26
return
Setup
(topNode);
27
}
28
29
int
PHTrackPropagating::process_event
(
PHCompositeNode
*
/*topNode*/
)
30
{
31
return
Process
();
32
}
33
34
int
PHTrackPropagating::End
(
PHCompositeNode
*
/*topNode*/
)
35
{
36
End
();
37
return
Fun4AllReturnCodes::EVENT_OK
;
38
}
39
40
int
PHTrackPropagating::Setup
(
PHCompositeNode
* topNode)
41
{
42
int
ret =
GetNodes
(topNode);
43
if
(ret !=
Fun4AllReturnCodes::EVENT_OK
)
return
ret;
44
45
return
Fun4AllReturnCodes::EVENT_OK
;
46
}
47
48
int
PHTrackPropagating::GetNodes
(
PHCompositeNode
* topNode)
49
{
50
//---------------------------------
51
// Get Objects off of the Node Tree
52
//---------------------------------
53
std::cout <<
""
<<
_use_truth_clusters
<< std::endl;
54
if
(
_use_truth_clusters
)
55
_cluster_map
= findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER_TRUTH"
);
56
else
57
_cluster_map
= findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER"
);
58
59
if
(!_cluster_map)
60
{
61
cerr <<
PHWHERE
<<
" ERROR: Can't find node TRKR_CLUSTER"
<< endl;
62
return
Fun4AllReturnCodes::ABORTEVENT
;
63
}
64
65
_vertex_map
= findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMap"
);
66
if
(!
_vertex_map
)
67
{
68
cerr <<
PHWHERE
<<
" ERROR: Can't find SvtxVertexMap."
<< endl;
69
return
Fun4AllReturnCodes::ABORTEVENT
;
70
}
71
72
_track_map
= findNode::getClass<SvtxTrackMap>(topNode,
_track_map_name
);
73
if
(!
_track_map
)
74
{
75
cerr <<
PHWHERE
<<
" ERROR: Can't find SvtxTrackMap: "
<<
_track_map_name
<< endl;
76
return
Fun4AllReturnCodes::ABORTEVENT
;
77
}
78
79
return
Fun4AllReturnCodes::EVENT_OK
;
80
}
coresoftware
blob
master
offline
packages
trackreco
PHTrackPropagating.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:11
using
1.8.2 with
sPHENIX GitHub integration