1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "DataFormats/Alignment/interface/TkLasBeam.h"
#include "FWCore/Utilities/interface/Exception.h"
bool TkLasBeam::isTecInternal(int side) const {
switch (side) {
case 0:
return beamId % 1000 / 100 < 2;
case -1:
return beamId % 1000 / 100 == 1;
case 1:
return beamId % 1000 / 100 == 0;
}
throw cms::Exception("[TkLasBeam::isTecInternal]") << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
return false; // unreached
}
|