Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
{
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
}
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.h
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:21
TkLasBeam::beamId
unsigned int beamId
Definition:
TkLasBeam.h:54
Generated for CMSSW Reference Manual by
1.8.5