Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
RPCTechnicalTrigger
src
TTUInput.cc
Go to the documentation of this file.
1
// $Id: TTUInput.cc,v 1.7 2009/08/19 15:04:01 aosorio Exp $
2
// Include files
3
4
5
6
// local
7
#include "
L1Trigger/RPCTechnicalTrigger/interface/TTUInput.h
"
8
#include <iostream>
9
10
//-----------------------------------------------------------------------------
11
// Implementation file for class : TTUInput
12
//
13
// 2008-10-16 : Andres Osorio
14
//-----------------------------------------------------------------------------
15
16
//=============================================================================
17
// Standard constructor, initializes variables
18
//=============================================================================
19
TTUInput::TTUInput
( ) {
20
21
m_bx
= 0;
22
m_wheelId
= 0;
23
m_hasHits
=
false
;
24
input_sec
=
new
std::bitset<6>[12];
25
m_rbcDecision
.reset();
26
27
for
(
int
i
=0;
i
< 12; ++
i
)
28
input_sec
[
i
].
reset
();
29
30
m_debug
=
false
;
31
32
}
33
//=============================================================================
34
// Destructor
35
//=============================================================================
36
TTUInput::~TTUInput
() {
37
38
m_hasHits
=
false
;
39
if
(
input_sec
)
delete
[]
input_sec
;
40
41
}
42
//=============================================================================
43
44
void
TTUInput::reset
()
45
{
46
47
m_bx
= 0;
48
m_wheelId
= 0;
49
m_hasHits
=
false
;
50
51
for
(
int
i
=0;
i
< 12; ++
i
)
52
input_sec
[
i
].
reset
();
53
54
m_rbcDecision
.reset();
55
56
}
57
58
void
TTUInput::mask
(
const
std::vector<int> & maskvec )
59
{
60
61
//for(int i=0; i < 15; ++i)
62
// if ( maskvec[i] ) input_sec[0].set(i,0);
63
64
//for(int i=15; i < 30; ++i)
65
// if ( maskvec[i] ) input_sec[1].set( (i-15),0);
66
67
}
68
69
void
TTUInput::force
(
const
std::vector<int> & forcevec )
70
{
71
72
//if( m_debug ) std::cout << forcevec.size() << std::endl;
73
74
//std::bitset<15> tmp;
75
76
//for(int i=0; i < 15; ++i)
77
// tmp.set(i,forcevec[i]);
78
79
//... operate on the first sector
80
//input_sec[0]|=tmp;
81
//tmp.reset();
82
83
//for(int i=15; i < 30; ++i)
84
// tmp.set( (i-15),forcevec[i]);
85
86
//input_sec[1]|=tmp;
87
88
//tmp.reset();
89
90
}
91
i
int i
Definition:
DBlmapReader.cc:9
TTUInput::m_bx
int m_bx
Definition:
TTUInput.h:53
TTUInput::mask
void mask(const std::vector< int > &)
Definition:
TTUInput.cc:58
TTUInput::m_wheelId
int m_wheelId
Definition:
TTUInput.h:55
TTUInput::force
void force(const std::vector< int > &)
Definition:
TTUInput.cc:69
TTUInput::reset
void reset()
Definition:
TTUInput.cc:44
TTUInput::TTUInput
TTUInput()
Standard constructor.
Definition:
TTUInput.cc:19
TTUInput::m_rbcDecision
std::bitset< 12 > m_rbcDecision
Definition:
TTUInput.h:60
TTUInput::m_debug
bool m_debug
Definition:
TTUInput.h:69
TTUInput::m_hasHits
bool m_hasHits
Definition:
TTUInput.h:57
TTUInput::~TTUInput
virtual ~TTUInput()
Definition:
TTUInput.cc:36
TTUInput.h
TTUInput::input_sec
std::bitset< 6 > * input_sec
Definition:
TTUInput.h:59
Generated for CMSSW Reference Manual by
1.8.5