#include <DTSequentialLayerNumber.h>
|
static int | id (int wheel, int station, int sector, int superlayer, int layer) |
|
static int | max () |
|
Description: Class to compute a sequential number for drift tube layers
- Date:
- 2010/04/30 16:20:08
- Revision:
- 1.1
- Author
- Paolo Ronchese INFN Padova
Definition at line 33 of file DTSequentialLayerNumber.h.
DTSequentialLayerNumber::DTSequentialLayerNumber |
( |
| ) |
|
DTSequentialLayerNumber::~DTSequentialLayerNumber |
( |
| ) |
|
int DTSequentialLayerNumber::id |
( |
int |
wheel, |
|
|
int |
station, |
|
|
int |
sector, |
|
|
int |
superlayer, |
|
|
int |
layer |
|
) |
| |
|
static |
Definition at line 51 of file DTSequentialLayerNumber.cc.
References relativeConstraints::station.
58 if ( wheel <= 0 )
return -1;
60 if ( sector <= 0 )
return -3;
61 if ( superlayer <= 0 )
return -4;
62 if ( layer <= 0 )
return -5;
66 if ( wheel > 5 )
return -1;
67 seqLayerNum += ( wheel - 1 ) * layersPerWheel;
69 if ( sector > 14 )
return -2;
72 if ( sector > 13 ) seqLayerNum += layersIn13Sectors;
74 seqLayerNum += ( sector - 1 ) * layersPerSector;
78 seqLayerNum += offsetChamber[
station];
80 if ( superlayer > 3 )
return -4;
81 if ( layer > 4 )
return -5;
82 if ( superlayer != 2 ) {
83 if ( superlayer == 3 ) layer += 4;
90 return seqLayerNum + layer;
int DTSequentialLayerNumber::max |
( |
| ) |
|
|
static |