L1Trigger
RPCTechnicalTrigger
src
RPCWheelMap.cc
Go to the documentation of this file.
1
// Include files
2
3
// local
4
#include "
L1Trigger/RPCTechnicalTrigger/interface/RPCWheelMap.h
"
5
#include <string>
6
#include <iostream>
7
//-----------------------------------------------------------------------------
8
// Implementation file for class : RPCWheelMap
9
//
10
// 2008-11-24 : Andres Felipe Osorio Oliveros
11
//-----------------------------------------------------------------------------
12
13
//=============================================================================
14
// Standard constructor, initializes variables
15
//=============================================================================
16
RPCWheelMap::RPCWheelMap
(
int
wheelid) {
17
m_wheelid
=
wheelid
;
18
m_debug
=
false
;
19
}
20
21
//=============================================================================
22
void
RPCWheelMap::addHit
(
int
bx
,
int
sec
,
int
layer
) {
23
// |--12--|--12--|--12--|--12--|--12--|--12--|--12--| (12 sectors x 6 layers x 7 bx)
24
// 0.....11
25
int
indx1 =
bx
+
m_maxBxWindow
;
26
int
indx2 =
sec
+ indx1 *
m_maxSectors
;
27
m_wheelMapBx
[indx2].set(
layer
- 1,
true
);
28
}
29
30
void
RPCWheelMap::prepareData
() {
31
bool
anyHits(
false
);
32
33
for
(
int
bx
= 0;
bx
<
m_maxBx
; ++
bx
) {
34
anyHits =
false
;
35
36
for
(
int
i
= 0;
i
<
m_maxSectors
; ++
i
) {
37
int
indx =
i
+
bx
*
m_maxSectors
;
38
39
m_ttuinVec
[
bx
].m_bx = (
bx
-
m_maxBxWindow
);
40
m_wheelMap
[
i
] =
m_wheelMapBx
[indx];
41
m_ttuinVec
[
bx
].input_sec[
i
] =
m_wheelMap
[
i
];
42
43
anyHits |=
m_wheelMap
[
i
].any();
44
45
if
(
m_debug
) {
46
std::string
test
;
47
test
=
m_wheelMap
[
i
].to_string<char, std::char_traits<char>, std::allocator<char> >();
48
std::cout
<<
"prepareData> sec: "
<<
i
<<
" "
<<
test
<<
" anyHits "
<< anyHits << std::endl;
49
}
50
}
51
52
m_ttuinVec
[
bx
].m_hasHits = anyHits;
53
}
54
55
if
(
m_debug
)
56
std::cout
<<
"prepareData> done."
<<
'\n'
;
57
}
mps_fire.i
i
Definition:
mps_fire.py:428
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
RPCWheelMap::prepareData
void prepareData()
Definition:
RPCWheelMap.cc:30
RPCWheelMap::m_debug
bool m_debug
Definition:
RPCWheelMap.h:41
RPCWheelMap::m_maxBx
static constexpr int m_maxBx
Definition:
RPCWheelMap.h:16
test
Definition:
SmallWORMDict.h:13
ctpps_dqm_sourceclient-live_cfg.test
test
Definition:
ctpps_dqm_sourceclient-live_cfg.py:7
RPCWheelMap::wheelid
int wheelid() const
Definition:
RPCWheelMap.h:27
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition:
phase1PixelTopology.h:99
RPCWheelMap::m_wheelid
int m_wheelid
Definition:
RPCWheelMap.h:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RPCWheelMap::RPCWheelMap
RPCWheelMap(int)
Definition:
RPCWheelMap.cc:16
RPCWheelMap.h
RPCWheelMap::m_maxBxWindow
static constexpr int m_maxBxWindow
Definition:
RPCWheelMap.h:18
fileinputsource_cfi.sec
sec
Definition:
fileinputsource_cfi.py:94
RPCWheelMap::m_wheelMap
std::array< std::bitset< 6 >, m_maxSectors > m_wheelMap
Definition:
RPCWheelMap.h:38
RPCWheelMap::m_wheelMapBx
std::array< std::bitset< 6 >, m_maxSectors *m_maxBx > m_wheelMapBx
Definition:
RPCWheelMap.h:39
RPCWheelMap::addHit
void addHit(int, int, int)
Definition:
RPCWheelMap.cc:22
RPCWheelMap::m_ttuinVec
std::array< TTUInput, m_maxBx > m_ttuinVec
Definition:
RPCWheelMap.h:29
RPCWheelMap::m_maxSectors
static constexpr int m_maxSectors
Definition:
RPCWheelMap.h:17
Generated for CMSSW Reference Manual by
1.8.16