EIC Software
Reference for
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
DumpRawTowerGeomContainer.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DumpRawTowerGeomContainer.cc
1
#include "
DumpRawTowerGeomContainer.h
"
2
3
#include <
phool/PHIODataNode.h
>
4
5
#include <calobase/RawTowerGeom.h>
6
#include <calobase/RawTowerGeomContainer.h>
7
8
#include <map>
9
#include <ostream>
10
#include <string>
11
#include <utility>
12
13
using namespace
std;
14
15
typedef
PHIODataNode<RawTowerGeomContainer>
MyNode_t
;
16
17
DumpRawTowerGeomContainer::DumpRawTowerGeomContainer
(
const
string
&NodeName)
18
:
DumpObject
(NodeName)
19
{
20
return
;
21
}
22
23
int
DumpRawTowerGeomContainer::process_Node
(
PHNode
*myNode)
24
{
25
RawTowerGeomContainer
*rawtowergeom =
nullptr
;
26
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
27
if
(thisNode)
28
{
29
rawtowergeom = thisNode->
getData
();
30
}
31
if
(rawtowergeom)
32
{
33
*
fout
<<
"Calorimeter ID: "
<< rawtowergeom->
get_calorimeter_id
() << endl;
34
*
fout
<<
"size: "
<< rawtowergeom->
size
() << endl;
35
rawtowergeom->
identify
(*
fout
);
36
RawTowerGeomContainer::ConstRange
all_towers = rawtowergeom->
get_tower_geometries
();
37
for
(
RawTowerGeomContainer::ConstIterator
it
= all_towers.first;
38
it
!= all_towers.second; ++
it
)
39
{
40
it
->second->
identify
(*
fout
);
41
}
42
}
43
return
0;
44
}
fun4all_coresoftware
blob
master
offline
packages
NodeDump
DumpRawTowerGeomContainer.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:45
using
1.8.2 with
EIC GitHub integration