CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TkLasBeam.cc
Go to the documentation of this file.
3 
4 bool TkLasBeam::isTecInternal(int side) const {
5  switch (side) {
6  case 0:
7  return beamId % 1000 / 100 < 2;
8  case -1:
9  return beamId % 1000 / 100 == 1;
10  case 1:
11  return beamId % 1000 / 100 == 0;
12  }
13 
14  throw cms::Exception("[TkLasBeam::isTecInternal]") << " ** ERROR: side=" << side << " undefined, must be -1, 0 or 1.";
15  return false; // unreached
16 }
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:50