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