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
PH3DVertexing.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PH3DVertexing.cc
1
#include "
PH3DVertexing.h
"
2
3
#include "
AssocInfoContainer.h
"
4
5
#include <
trackbase_historic/SvtxTrackMap.h
>
6
#include <
trackbase_historic/SvtxVertexMap.h
>
7
8
//#include <trackbase/TrkrClusterContainer.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
PH3DVertexing::PH3DVertexing
(
const
std::string&
name
)
21
:
SubsysReco
(name)
22
// , _cluster_map(nullptr)
23
, _vertex_map(nullptr)
24
, _track_map(nullptr)
25
, _assoc_container(nullptr)
26
{
27
}
28
29
int
PH3DVertexing::InitRun
(
PHCompositeNode
* topNode)
30
{
31
return
Setup
(topNode);
32
}
33
34
int
PH3DVertexing::process_event
(
PHCompositeNode
*
/*topNode*/
)
35
{
36
return
Process
();
37
}
38
39
int
PH3DVertexing::Setup
(
PHCompositeNode
* topNode)
40
{
41
int
ret =
GetNodes
(topNode);
42
if
(ret !=
Fun4AllReturnCodes::EVENT_OK
)
return
ret;
43
44
return
Fun4AllReturnCodes::EVENT_OK
;
45
}
46
47
int
PH3DVertexing::GetNodes
(
PHCompositeNode
* topNode)
48
{
49
//---------------------------------
50
// Get Objects off of the Node Tree
51
//---------------------------------
52
53
// _cluster_map = findNode::getClass<SvtxClusterMap>(topNode, "SvtxClusterMap");
54
/*_cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTERS");
55
if (!_cluster_map)
56
{
57
cerr << PHWHERE << " ERROR: Can't find node TRKR_CLUSTERS" << endl;
58
return Fun4AllReturnCodes::ABORTEVENT;
59
}
60
*/
61
_vertex_map
= findNode::getClass<SvtxVertexMap>(topNode,
"SvtxVertexMap"
);
62
if
(!
_vertex_map
)
63
{
64
cerr <<
PHWHERE
<<
" ERROR: Can't find SvtxVertexMap."
<< endl;
65
return
Fun4AllReturnCodes::ABORTEVENT
;
66
}
67
68
_track_map
= findNode::getClass<SvtxTrackMap>(topNode,
"SvtxTrackMap"
);
69
if
(!
_track_map
)
70
{
71
cerr <<
PHWHERE
<<
" ERROR: Can't find SvtxTrackMap."
<< endl;
72
return
Fun4AllReturnCodes::ABORTEVENT
;
73
}
74
75
_assoc_container
= findNode::getClass<AssocInfoContainer>(topNode,
"AssocInfoContainer"
);
76
if
(!
_assoc_container
)
77
{
78
cerr <<
PHWHERE
<<
" ERROR: Can't find AssocInfoContainer."
<< endl;
79
return
Fun4AllReturnCodes::ABORTEVENT
;
80
}
81
82
return
Fun4AllReturnCodes::EVENT_OK
;
83
}
fun4all_coresoftware
blob
master
offline
packages
trackreco
PH3DVertexing.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:46
using
1.8.2 with
EIC GitHub integration