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