src
L1Trigger
RPCTechnicalTrigger
src
TTUInput.cc
Go to the documentation of this file.
1
// Include files
2
3
// local
4
#include "
L1Trigger/RPCTechnicalTrigger/interface/TTUInput.h
"
5
#include <iostream>
6
7
//-----------------------------------------------------------------------------
8
// Implementation file for class : TTUInput
9
//
10
// 2008-10-16 : Andres Osorio
11
//-----------------------------------------------------------------------------
12
13
//=============================================================================
14
// Standard constructor, initializes variables
15
//=============================================================================
16
TTUInput::TTUInput
() {
17
m_bx
= 0;
18
m_wheelId
= 0;
19
m_hasHits
=
false
;
20
m_rbcDecision
.reset();
21
22
m_debug
=
false
;
23
}
24
//=============================================================================
25
26
void
TTUInput::reset
() {
27
m_bx
= 0;
28
m_wheelId
= 0;
29
m_hasHits
=
false
;
30
31
for
(
int
i
= 0;
i
< 12; ++
i
)
32
input_sec
[
i
].
reset
();
33
34
m_rbcDecision
.reset();
35
}
36
37
void
TTUInput::mask
(
const
std::vector<int>& maskvec) {
38
//for(int i=0; i < 15; ++i)
39
// if ( maskvec[i] ) input_sec[0].set(i,0);
40
41
//for(int i=15; i < 30; ++i)
42
// if ( maskvec[i] ) input_sec[1].set( (i-15),0);
43
}
44
45
void
TTUInput::force
(
const
std::vector<int>& forcevec) {
46
//if( m_debug ) std::cout << forcevec.size() << std::endl;
47
48
//std::bitset<15> tmp;
49
50
//for(int i=0; i < 15; ++i)
51
// tmp.set(i,forcevec[i]);
52
53
//... operate on the first sector
54
//input_sec[0]|=tmp;
55
//tmp.reset();
56
57
//for(int i=15; i < 30; ++i)
58
// tmp.set( (i-15),forcevec[i]);
59
60
//input_sec[1]|=tmp;
61
62
//tmp.reset();
63
}
TTUInput::m_bx
int m_bx
Definition:
TTUInput.h:30
TTUInput::mask
void mask(const std::vector< int > &)
Definition:
TTUInput.cc:37
mps_fire.i
i
Definition:
mps_fire.py:429
TTUInput::m_wheelId
int m_wheelId
Definition:
TTUInput.h:32
TTUInput::force
void force(const std::vector< int > &)
Definition:
TTUInput.cc:45
TTUInput::reset
void reset()
Definition:
TTUInput.cc:26
TTUInput::TTUInput
TTUInput()
Standard constructor.
Definition:
TTUInput.cc:16
TTUInput::m_rbcDecision
std::bitset< 12 > m_rbcDecision
Definition:
TTUInput.h:37
TTUInput::input_sec
std::array< std::bitset< 6 >, 12 > input_sec
Definition:
TTUInput.h:36
TTUInput::m_debug
bool m_debug
Definition:
TTUInput.h:44
TTUInput::m_hasHits
bool m_hasHits
Definition:
TTUInput.h:34
TTUInput.h
Generated for CMSSW Reference Manual by
1.8.14