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
DumpPHG4ParticleSvtxMap.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DumpPHG4ParticleSvtxMap.cc
1
#include "
DumpPHG4ParticleSvtxMap.h
"
2
3
#include <
phool/PHIODataNode.h
>
4
5
#include <
trackbase_historic/PHG4ParticleSvtxMap.h
>
6
7
#include <map>
8
#include <ostream>
9
#include <set>
10
#include <string>
11
#include <utility>
12
13
using
MyNode_t
=
PHIODataNode<PHG4ParticleSvtxMap>
;
14
15
DumpPHG4ParticleSvtxMap::DumpPHG4ParticleSvtxMap
(
const
std::string
&NodeName)
16
:
DumpObject
(NodeName)
17
{
18
return
;
19
}
20
21
int
DumpPHG4ParticleSvtxMap::process_Node
(
PHNode
*myNode)
22
{
23
PHG4ParticleSvtxMap
*phg4particlesvtxmap =
nullptr
;
24
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
25
if
(thisNode)
26
{
27
phg4particlesvtxmap = thisNode->
getData
();
28
}
29
if
(phg4particlesvtxmap)
30
{
31
*
fout
<<
"size "
<< phg4particlesvtxmap->
size
() << std::endl;
32
for
(
auto
const
&iter : *phg4particlesvtxmap)
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
(
unsigned
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
DumpPHG4ParticleSvtxMap.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration