#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 |
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 |
Definition at line 40 of file FP420NumberingScheme.h.
43 int sScale = zScale*(pn0-1);
44 int dScale = sScale*(sn0-1);
46 unsigned int intindex = dScale*(det - 1)+sScale*(sector - 1)+zScale*(zmodule - 1)+
zside;
static int FP420NumberingScheme::realzside |
( |
int |
rn0, |
|
|
int |
zsideinorder |
|
) |
| |
|
inlinestatic |
Definition at line 99 of file FP420NumberingScheme.h.
References ecaldqm::zside().
106 if(zsideinorder<0) {zside = 0;}
107 else if(zsideinorder<4) {zside = 2*zsideinorder-1;}
108 else if(zsideinorder<7) {zside = 2*zsideinorder-6;}
114 if(zside>2) zsidereal=0;
119 if(zside==4 || zside==5) zsidereal=0;
static int FP420NumberingScheme::unpackCopyIndex |
( |
int |
rn0, |
|
|
int |
zside |
|
) |
| |
|
inlinestatic |
Definition at line 73 of file FP420NumberingScheme.h.
References a, and b.
79 int layerIndex = 1,
b;
82 if(a-
b != 0.) layerIndex = 2;
83 if(layerIndex==2) copyIndex =
zside/2;
84 if(layerIndex==1) copyIndex = (
zside+1)/2;
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.
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);
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
static int FP420NumberingScheme::unpackOrientation |
( |
int |
rn0, |
|
|
int |
zside |
|
) |
| |
|
inlinestatic |