L1Trigger
L1TCommon
interface
BitShift.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1TCommon_BitShift_h
2
#define L1Trigger_L1TCommon_BitShift_h
3
4
namespace
l1t
{
5
6
inline
int
bitShift
(
int
num
,
int
bits
) {
7
if
(
num
< 0) {
8
return
-1 * ((-1 *
num
) <<
bits
);
9
}
else
{
10
return
(
num
<<
bits
);
11
}
12
}
13
14
}
// namespace l1t
15
#endif
gpuClustering::pixelStatus::bits
constexpr uint32_t bits
Definition:
gpuClustering.h:23
l1t
delete x;
Definition:
CaloConfig.h:22
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:33
l1t::bitShift
int bitShift(int num, int bits)
Definition:
BitShift.h:6
Generated for CMSSW Reference Manual by
1.8.14