CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DataFormats/Alignment/src/TkLasBeam.cc

Go to the documentation of this file.
00001 #include "DataFormats/Alignment/interface/TkLasBeam.h"
00002 #include "FWCore/Utilities/interface/Exception.h"
00003 
00004 bool TkLasBeam::isTecInternal(int side) const 
00005 {
00006   switch (side) { 
00007   case  0: 
00008     return beamId%1000/100  < 2; 
00009   case -1: 
00010     return beamId%1000/100 == 1; 
00011   case  1: 
00012     return beamId%1000/100 == 0; 
00013   }
00014 
00015   throw cms::Exception("[TkLasBeam::isTecInternal]") 
00016     << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
00017   return false; // unreached
00018 }