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
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:
Wed Jun 29 2022 17:24:34
using
1.8.2 with
ECCE GitHub integration