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
PHG4ScintillatorSlatDefs.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatDefs.cc
1
#include "
PHG4ScintillatorSlatDefs.h
"
2
3
PHG4ScintillatorSlatDefs::keytype
4
PHG4ScintillatorSlatDefs::genkey
(
const
short
irow,
const
short
icolumn)
5
{
6
keytype
key = irow;
// lower bits used by row
7
key |= (icolumn <<
columnbits
);
// upper bits used by column, so we can easily extract
8
// slats by column which are combined to towers
9
return
key;
10
}
11
12
std::pair<short, short>
13
PHG4ScintillatorSlatDefs::getrowcol
(
const
keytype
key)
14
{
15
short
irow = key & 0xFFFF;
16
short
icolumn = key >>
columnbits
;
17
return
std::make_pair(irow, icolumn);
18
}
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4ScintillatorSlatDefs.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration