Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:49:13

0001 #include "DataFormats/Alignment/interface/TkLasBeam.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003 
0004 bool TkLasBeam::isTecInternal(int side) const {
0005   switch (side) {
0006     case 0:
0007       return beamId % 1000 / 100 < 2;
0008     case -1:
0009       return beamId % 1000 / 100 == 1;
0010     case 1:
0011       return beamId % 1000 / 100 == 0;
0012   }
0013 
0014   throw cms::Exception("[TkLasBeam::isTecInternal]") << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
0015   return false;  // unreached
0016 }