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
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 namespace
std;
14
15
typedef
PHIODataNode<TrkrClusterContainer>
MyNode_t
;
16
17
DumpTrkrClusterContainer::DumpTrkrClusterContainer
(
const
string
&NodeName)
18
:
DumpObject
(NodeName)
19
{
20
return
;
21
}
22
23
int
DumpTrkrClusterContainer::process_Node
(
PHNode
*myNode)
24
{
25
TrkrClusterContainer
*trkrclustercontainer =
nullptr
;
26
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
27
if
(thisNode)
28
{
29
trkrclustercontainer = thisNode->
getData
();
30
}
31
if
(trkrclustercontainer)
32
{
33
TrkrClusterContainer::ConstIterator
hiter;
34
TrkrClusterContainer::ConstRange
begin_end = trkrclustercontainer->
getClusters
();
35
*
fout
<<
"size: "
<< trkrclustercontainer->
size
() << endl;
36
for
(hiter = begin_end.first; hiter != begin_end.second; ++hiter)
37
{
38
TrkrCluster
*trkrcluster = hiter->second;
39
*
fout
<<
"getX: "
<< trkrcluster->
getX
() << endl;
40
*
fout
<<
"getY: "
<< trkrcluster->
getY
() << endl;
41
*
fout
<<
"getZ: "
<< trkrcluster->
getZ
() << endl;
42
*
fout
<<
"getAdc: "
<< trkrcluster->
getAdc
() << endl;
43
*
fout
<<
"getPhiSize: "
<< trkrcluster->
getPhiSize
() << endl;
44
*
fout
<<
"getPhiError: "
<< trkrcluster->
getPhiError
() << endl;
45
*
fout
<<
"getRPhiError: "
<< trkrcluster->
getRPhiError
() << endl;
46
*
fout
<<
"getZError: "
<< trkrcluster->
getZError
() << endl;
47
}
48
}
49
return
0;
50
}
coresoftware
blob
master
offline
packages
NodeDump
DumpTrkrClusterContainer.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:36
using
1.8.2 with
ECCE GitHub integration