#include <FP420NumberingScheme.h>
|
static unsigned int | packFP420Index (int det, int zside, int station, int superplane) |
|
static unsigned | packMYIndex (int rn0, int pn0, int sn0, int det, int zside, int sector, int zmodule) |
|
static int | realzside (int rn0, int zsideinorder) |
|
static int | unpackCopyIndex (int rn0, int zside) |
|
static void | unpackFP420Index (const unsigned int &idx, int &det, int &zside, int &station, int &superplane) |
|
static int | unpackLayerIndex (int rn0, int zside) |
|
static void | unpackMYIndex (const int &idx, int rn0, int pn0, int sn0, int &det, int &zside, int §or, int &zmodule) |
|
static int | unpackOrientation (int rn0, int zside) |
|
Definition at line 16 of file FP420NumberingScheme.h.
FP420NumberingScheme::FP420NumberingScheme |
( |
| ) |
|
FP420NumberingScheme::~FP420NumberingScheme |
( |
| ) |
|
|
virtual |
int FP420NumberingScheme::detectorLevel |
( |
const G4Step * |
aStep | ) |
const |
|
virtual |
void FP420NumberingScheme::detectorLevel |
( |
const G4Step * |
aStep, |
|
|
int & |
level, |
|
|
int * |
copyno, |
|
|
G4String * |
name |
|
) |
| const |
|
virtual |
unsigned int FP420NumberingScheme::getUnitID |
( |
const G4Step * |
aStep | ) |
const |
|
virtual |
Definition at line 51 of file FP420NumberingScheme.cc.
References detectorLevel(), testEve_cfg::level, mergeVDriftHistosByStation::name, packFP420Index(), relativeConstraints::station, and ecaldqm::zside().
Referenced by FP420SD::setDetUnitId().
60 int* copyno =
new int[
level];
71 for (
int ich=0; ich <
level; ich++) {
87 if(name[ich] ==
"FP420E") {
89 }
else if(name[ich] ==
"HPS240E") {
90 det = copyno[ich] + 2 ;
91 }
else if(name[ich] ==
"FP420Ex1" || name[ich] ==
"HPS240Ex1") {
95 }
else if(name[ich] ==
"FP420Ex3" || name[ich] ==
"HPS240Ex3") {
97 }
else if(name[ich] ==
"SISTATION" || name[ich] ==
"HPS240SISTATION") {
99 }
else if(name[ich] ==
"SIPLANE" || name[ich] ==
"HPS240SIPLANE") {
109 }
else if(name[ich] ==
"SENSOR2" || name[ich] ==
"HPS240SENSOR2") {
112 zside = 3 * copyno[ich];
113 }
else if(name[ich] ==
"SENSOR1" || name[ich] ==
"HPS240SENSOR1") {
virtual int detectorLevel(const G4Step *) const
static unsigned int packFP420Index(int det, int zside, int station, int superplane)
unsigned FP420NumberingScheme::packFP420Index |
( |
int |
det, |
|
|
int |
zside, |
|
|
int |
station, |
|
|
int |
superplane |
|
) |
| |
|
static |
static unsigned FP420NumberingScheme::packMYIndex |
( |
int |
rn0, |
|
|
int |
pn0, |
|
|
int |
sn0, |
|
|
int |
det, |
|
|
int |
zside, |
|
|
int |
sector, |
|
|
int |
zmodule |
|
) |
| |
|
inlinestatic |
static int FP420NumberingScheme::realzside |
( |
int |
rn0, |
|
|
int |
zsideinorder |
|
) |
| |
|
inlinestatic |
static int FP420NumberingScheme::unpackCopyIndex |
( |
int |
rn0, |
|
|
int |
zside |
|
) |
| |
|
inlinestatic |
void FP420NumberingScheme::unpackFP420Index |
( |
const unsigned int & |
idx, |
|
|
int & |
det, |
|
|
int & |
zside, |
|
|
int & |
station, |
|
|
int & |
superplane |
|
) |
| |
|
static |
static int FP420NumberingScheme::unpackLayerIndex |
( |
int |
rn0, |
|
|
int |
zside |
|
) |
| |
|
inlinestatic |
static void FP420NumberingScheme::unpackMYIndex |
( |
const int & |
idx, |
|
|
int |
rn0, |
|
|
int |
pn0, |
|
|
int |
sn0, |
|
|
int & |
det, |
|
|
int & |
zside, |
|
|
int & |
sector, |
|
|
int & |
zmodule |
|
) |
| |
|
inlinestatic |
Definition at line 51 of file FP420NumberingScheme.h.
Referenced by cms::DigitizerFP420::produce().
54 int zScale=(rn0-1), sScale = (rn0-1)*(pn0-1), dScale = (rn0-1)*(pn0-1)*(sn0-1);
56 det = (idx-1)/dScale + 1;
57 sector = (idx-1- dScale*(det - 1))/sScale + 1;
58 zmodule = (idx-1- dScale*(det - 1)- sScale*(sector - 1) )/ zScale + 1;
59 zside = idx - dScale*(det - 1) - sScale*(sector - 1) - zScale*(zmodule - 1);
static int FP420NumberingScheme::unpackOrientation |
( |
int |
rn0, |
|
|
int |
zside |
|
) |
| |
|
inlinestatic |