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
DumpSvtxPHG4ParticleMap.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DumpSvtxPHG4ParticleMap.cc
1
#include "
DumpSvtxPHG4ParticleMap.h
"
2
3
#include <
phool/PHIODataNode.h
>
4
5
#include <
trackbase_historic/SvtxPHG4ParticleMap.h
>
6
7
#include <map>
8
#include <ostream>
9
#include <set>
10
#include <string>
11
#include <utility>
12
13
using
MyNode_t
=
PHIODataNode<SvtxPHG4ParticleMap>
;
14
15
DumpSvtxPHG4ParticleMap::DumpSvtxPHG4ParticleMap
(
const
std::string
&NodeName)
16
:
DumpObject
(NodeName)
17
{
18
return
;
19
}
20
21
int
DumpSvtxPHG4ParticleMap::process_Node
(
PHNode
*myNode)
22
{
23
SvtxPHG4ParticleMap
*svtxphg4particlemap =
nullptr
;
24
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
25
if
(thisNode)
26
{
27
svtxphg4particlemap = thisNode->
getData
();
28
}
29
if
(svtxphg4particlemap)
30
{
31
*
fout
<<
"size "
<< svtxphg4particlemap->
size
() << std::endl;
32
for
(
auto
const
&iter : *svtxphg4particlemap)
33
{
34
*
fout
<<
"Cluster: "
<< std::hex << iter.first << std::dec << std::endl;
35
36
for
(
auto
const
&iter2 : iter.second)
37
{
38
*
fout
<<
"weight: "
<< iter2.first << std::endl;
39
for
(
int
iter3 : iter2.second)
40
{
41
*
fout
<<
"track id "
<< iter3 << std::endl;
42
}
43
}
44
}
45
}
46
return
0;
47
}
coresoftware
blob
master
offline
packages
NodeDump
DumpSvtxPHG4ParticleMap.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration