test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkLasBeam.cc
Go to the documentation of this file.
3 
4 bool TkLasBeam::isTecInternal(int side) const
5 {
6  switch (side) {
7  case 0:
8  return beamId%1000/100 < 2;
9  case -1:
10  return beamId%1000/100 == 1;
11  case 1:
12  return beamId%1000/100 == 0;
13  }
14 
15  throw cms::Exception("[TkLasBeam::isTecInternal]")
16  << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
17  return false; // unreached
18 }
bool isTecInternal(int side=0) const
true if this is a TEC internal beam (from 10^2 digit of beamId). side parameter: -1 = ask if TEC-...
Definition: TkLasBeam.cc:4
unsigned int beamId
Definition: TkLasBeam.h:54