#include <DTSequentialCellNumber.h>
|
static int | id (int wheel, int station, int sector, int superlayer, int layer, int cell) |
|
static int | max () |
|
Description: Class to compute a sequential number for drift tube cells
- Date:
- 2012/02/07 18:34:59
- Revision:
- 1.1.2.1
- Author
- Paolo Ronchese INFN Padova
Definition at line 33 of file DTSequentialCellNumber.h.
int DTSequentialCellNumber::id |
( |
int |
wheel, |
|
|
int |
station, |
|
|
int |
sector, |
|
|
int |
superlayer, |
|
|
int |
layer, |
|
|
int |
cell |
|
) |
| |
|
static |
Definition at line 44 of file DTSequentialCellNumber.cc.
References relativeConstraints::station.
Referenced by DTT0::get(), and DTT0::set().
52 if ( wheel <= 0 )
return -1;
54 if ( sector <= 0 )
return -3;
55 if ( superlayer <= 0 )
return -4;
56 if ( layer <= 0 )
return -5;
57 if ( cell <= 0 )
return -6;
61 if ( wheel > 5 )
return -1;
62 seqWireNum += ( wheel - 1 ) * cellsPerWheel;
64 if ( sector > 14 )
return -2;
67 if ( sector > 13 ) seqWireNum += cellsIn13Sectors;
69 seqWireNum += ( sector - 1 ) * cellsPerSector;
73 seqWireNum += offsetChamber[
station];
75 if ( superlayer > 3 )
return -4;
76 if ( layer > 4 )
return -5;
77 if ( superlayer != 2 ) {
78 if ( cell > cellsPerLayer[
station] )
return -6;
79 if ( superlayer == 3 ) layer += 4;
80 seqWireNum += ( layer - 1 ) * cellsPerLayer[station];
83 if ( station == 4 )
return -4;
84 if ( cell > cellsInTheta )
return -6;
85 seqWireNum += ( 8 * cellsPerLayer[
station] ) +
86 ( ( layer - 1 ) * cellsInTheta );
89 return seqWireNum + cell;
int DTSequentialCellNumber::max |
( |
| ) |
|
|
static |