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
EpdGeomV1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EpdGeomV1.cc
1
#include "
EpdGeomV1.h
"
2
3
#include <calobase/TowerInfoDefs.h>
4
5
#include <
phool/PHObject.h
>
6
7
#include <map>
8
#include <utility>
9
#include <tuple>
10
#include <iostream>
11
#include <fstream>
12
#include <sstream>
13
14
15
float
EpdGeomV1::get_r
(
unsigned
int
key)
const
16
{
17
return
tile_r
[
TowerInfoDefs::get_epd_rbin
(key)];
18
}
19
20
float
EpdGeomV1::get_z
(
unsigned
int
key)
const
21
{
22
return
tile_z
[
TowerInfoDefs::get_epd_arm
(key)];
23
}
24
25
float
EpdGeomV1::get_phi
(
unsigned
int
key)
const
26
{
27
28
if
(
TowerInfoDefs::get_epd_rbin
(key) == 0)
29
{
30
return
tile_phi0
[
TowerInfoDefs::get_epd_phibin
(key)];
31
}
32
else
33
{
34
return
tile_phi
[
TowerInfoDefs::get_epd_phibin
(key)];
35
}
36
37
}
38
39
void
EpdGeomV1::set_z
(
unsigned
int
key,
float
z
)
40
{
41
tile_z
[
TowerInfoDefs::get_epd_arm
(key)] =
z
;
42
}
43
44
void
EpdGeomV1::set_r
(
unsigned
int
key,
float
r
)
45
{
46
tile_r
[
TowerInfoDefs::get_epd_rbin
(key)] =
r
;
47
}
48
49
void
EpdGeomV1::set_phi
(
unsigned
int
key,
float
f
)
50
{
51
tile_phi
[
TowerInfoDefs::get_epd_phibin
(key)] =
f
;
52
}
53
54
void
EpdGeomV1::set_phi0
(
unsigned
int
key,
float
f0)
55
{
56
tile_phi0
[
TowerInfoDefs::get_epd_phibin
(key)] = f0;
57
}
58
coresoftware
blob
master
offline
packages
epd
EpdGeomV1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration