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
DumpTrkrClusterContainer.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DumpTrkrClusterContainer.cc
1
#include "
DumpTrkrClusterContainer.h
"
2
3
#include <
phool/PHIODataNode.h
>
4
5
#include <
trackbase/TrkrCluster.h
>
6
#include <
trackbase/TrkrClusterContainer.h
>
7
8
#include <map>
9
#include <ostream>
10
#include <string>
11
#include <utility>
12
13
using
MyNode_t
=
PHIODataNode<TrkrClusterContainer>
;
14
15
DumpTrkrClusterContainer::DumpTrkrClusterContainer
(
const
std::string
&NodeName)
16
:
DumpObject
(NodeName)
17
{
18
return
;
19
}
20
21
int
DumpTrkrClusterContainer::process_Node
(
PHNode
*myNode)
22
{
23
TrkrClusterContainer
*trkrclustercontainer =
nullptr
;
24
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
25
if
(thisNode)
26
{
27
trkrclustercontainer = thisNode->
getData
();
28
}
29
if
(trkrclustercontainer)
30
{
31
TrkrClusterContainer::ConstIterator
hiter;
32
*
fout
<<
"size: "
<< trkrclustercontainer->
size
() << std::endl;
33
trkrclustercontainer->
identify
(*
fout
);
34
TrkrClusterContainer::HitSetKeyList
keylist
= trkrclustercontainer->
getHitSetKeys
();
35
for
(
unsigned
int
&iter : keylist)
36
{
37
TrkrClusterContainer::ConstRange
begin_end = trkrclustercontainer->
getClusters
(iter);
38
for
(hiter = begin_end.first; hiter != begin_end.second; ++hiter)
39
{
40
TrkrCluster
*trkrcluster = hiter->second;
41
*
fout
<<
"getAdc: "
<< trkrcluster->
getAdc
() << std::endl;
42
*
fout
<<
"getRPhiError: "
<< trkrcluster->
getRPhiError
() << std::endl;
43
*
fout
<<
"getZError: "
<< trkrcluster->
getZError
() << std::endl;
44
}
45
}
46
}
47
return
0;
48
}
coresoftware
blob
master
offline
packages
NodeDump
DumpTrkrClusterContainer.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration