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
RawTower.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RawTower.cc
1
#include "
RawTower.h
"
2
3
#include <
phool/phool.h
>
// for PHOOL_VIRTUAL_WARN
4
5
#include <cstdlib>
// for exit
6
7
RawTower::CellMap
DummyCellMap
;
8
RawTower::ShowerMap
DummyShowerMap
;
9
10
RawTower::CellIterator
RawTower::find_g4cell
(
CellKeyType
/*id*/
)
11
{
12
return
DummyCellMap
.end();
13
}
14
15
RawTower::CellConstIterator
RawTower::find_g4cell
(
CellKeyType
/*id*/
)
const
16
{
17
return
DummyCellMap
.end();
18
}
19
20
RawTower::CellConstRange
RawTower::get_g4cells
()
const
21
{
22
PHOOL_VIRTUAL_WARN
(
"get_g4cells()"
);
23
return
CellConstRange
(
DummyCellMap
.begin(),
DummyCellMap
.end());
24
}
25
26
RawTower::ShowerConstRange
RawTower::get_g4showers
()
const
27
{
28
PHOOL_VIRTUAL_WARN
(
"get_g4showers()"
);
29
return
ShowerConstRange
(
DummyShowerMap
.begin(),
DummyShowerMap
.end());
30
}
31
32
RawTower::ShowerIterator
RawTower::find_g4shower
(
int
/*id*/
)
33
{
34
return
DummyShowerMap
.end();
35
}
36
37
RawTower::ShowerConstIterator
RawTower::find_g4shower
(
int
/*id*/
)
const
38
{
39
return
DummyShowerMap
.end();
40
}
41
42
const
std::string
RawTower::get_property_info
(
RawTower::PROPERTY
prop_id)
43
{
44
switch
(prop_id)
45
{
46
case
prop_scint_gammas
:
47
return
"Scintillation photon count or energy"
;
48
case
prop_cerenkov_gammas
:
49
return
"Cherenkov photon count or energy"
;
50
51
default
:
52
std::cout <<
"RawTower::get_property_info - Fatal Error - unknown index "
<< prop_id << std::endl;
53
exit(1);
54
}
55
}
coresoftware
blob
master
offline
packages
CaloBase
RawTower.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration