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