DataFormats
Alignment
src
TkLasBeam.cc
Go to the documentation of this file.
1
#include "
DataFormats/Alignment/interface/TkLasBeam.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
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
}
TkLasBeam::isTecInternal
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
TkLasBeam::beamId
unsigned int beamId
Definition:
TkLasBeam.h:50
TkLasBeam.h
Exception
Definition:
hltDiff.cc:246
Exception.h
Generated for CMSSW Reference Manual by
1.8.16