Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1Trigger
DTBti
src
DTBtiTrig.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: DTBtiTrig
4
//
5
// Description: BTI Trigger Data
6
//
7
//
8
// Author List:
9
// C. Grandi
10
// Modifications:
11
//
12
//
13
//--------------------------------------------------
14
15
//#include "Utilities/Configuration/interface/Architecture.h"
16
17
//-----------------------
18
// This Class's Header --
19
//-----------------------
20
#include "
L1Trigger/DTBti/interface/DTBtiChip.h
"
21
#include "
L1Trigger/DTBti/interface/DTBtiTrig.h
"
22
23
//-------------------------------
24
// Collaborating Class Headers --
25
//-------------------------------
26
#include <
DataFormats/DTDigi/interface/DTDigiCollection.h
>
27
#include "
L1Trigger/DTBti/interface/DTBtiChip.h
"
28
//---------------
29
// C++ Headers --
30
//---------------
31
32
//----------------
33
// Constructors --
34
//----------------
35
DTBtiTrig::DTBtiTrig
() {
36
37
// reserve the appropriate amount of space for vectors
38
_digi
.reserve(4);
39
clear
();
40
41
}
42
43
DTBtiTrig::DTBtiTrig
(
DTBtiChip
* tparent,
int
step
) :
44
_tparent(tparent) {
45
46
// reserve the appropriate amount of space for vectors
47
_digi
.reserve(4);
48
clear
();
49
50
// data part of the trigger
51
_data
.
setStep
(step);
52
_data
.
setParent
(tparent->
id
());
53
54
}
55
56
DTBtiTrig::DTBtiTrig
(
DTBtiChip
* tparent,
57
int
code,
int
K,
int
X
,
int
step
,
int
eq
) :
58
_tparent(tparent) {
59
60
// reserve the appropriate amount of space for vectors
61
_digi
.reserve(4);
62
63
// data part of the trigger
64
_data
.
setStep
(step);
65
_data
.
setParent
(tparent->
id
());
66
_data
.
setCode
(code);
67
_data
.
setK
(K);
68
_data
.
setX
(X);
69
_data
.
setEq
(eq);
70
71
}
72
73
DTBtiTrig::DTBtiTrig
(
DTBtiChip
* tparent,
74
int
code,
int
K,
int
X
,
int
step
,
int
eq
,
int
str,
float
* Keq) :
75
_tparent(tparent) {
76
77
// reserve the appropriate amount of space for vectors
78
_digi
.reserve(4);
79
80
// data part of the trigger
81
_data
.
setStep
(step);
82
_data
.
setParent
(tparent->
id
());
83
_data
.
setCode
(code);
84
_data
.
setK
(K);
85
_data
.
setX
(X);
86
_data
.
setEq
(eq);
87
_data
.
setStrobe
(str);
88
_data
.
setKeq
(0,Keq[0]);
89
_data
.
setKeq
(1,Keq[1]);
90
_data
.
setKeq
(2,Keq[2]);
91
_data
.
setKeq
(3,Keq[3]);
92
_data
.
setKeq
(4,Keq[4]);
93
_data
.
setKeq
(5,Keq[5]);
94
95
96
}
97
98
DTBtiTrig::DTBtiTrig
(
DTBtiChip
*
parent
,
DTBtiTrigData
data
) :
99
_tparent(parent), _data(data) {
100
101
// reserve the appropriate amount of space for vectors
102
_digi
.reserve(4);
103
104
}
105
106
//--------------
107
// Destructor --
108
//--------------
109
DTBtiTrig::~DTBtiTrig
() {
110
}
DTBtiTrigData::setStep
void setStep(int step)
Set trigger step.
Definition:
DTBtiTrigData.h:55
DTBtiTrig::clear
void clear()
Clear.
Definition:
DTBtiTrig.h:99
DTBtiTrig::~DTBtiTrig
~DTBtiTrig()
Destructor.
Definition:
DTBtiTrig.cc:109
DTBtiTrigData::setK
void setK(int k)
Set trigger K parameter.
Definition:
DTBtiTrigData.h:65
dbtoconf.parent
list parent
Definition:
dbtoconf.py:74
DTBtiChip
Definition:
DTBtiChip.h:46
DTBtiTrig.h
X
#define X(str)
Definition:
MuonsGrabber.cc:48
DTBtiTrigData::setParent
void setParent(DTBtiId btiid)
Set the parent BTI identifier.
Definition:
DTBtiTrigData.h:50
DTBtiChip::id
DTBtiId id() const
Return the DTBtiChip Id.
Definition:
DTBtiChip.h:124
DTBtiTrigData::setCode
void setCode(int code)
Set trigger code.
Definition:
DTBtiTrigData.h:60
DTBtiTrig::_data
DTBtiTrigData _data
Definition:
DTBtiTrig.h:172
DTBtiTrigData::setKeq
void setKeq(int num, float Keq)
Set trigger _Keq.
Definition:
DTBtiTrigData.h:85
DTDigiCollection.h
DTBtiTrigData
Definition:
DTBtiTrigData.h:39
DTBtiTrig::DTBtiTrig
DTBtiTrig()
Constructor.
Definition:
DTBtiTrig.cc:35
DTBtiChip.h
DTBtiTrigData::setStrobe
void setStrobe(int str)
Set trigger strobe.
Definition:
DTBtiTrigData.h:80
Vispa.Plugins.EdmBrowser.EdmDataAccessor.eq
def eq
Definition:
EdmDataAccessor.py:13
relval_parameters_module.step
string step
Definition:
relval_parameters_module.py:36
DTBtiTrig::_digi
std::vector< const DTDigi * > _digi
Definition:
DTBtiTrig.h:175
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
DTBtiTrigData::setEq
void setEq(int eq)
Set triggering equation.
Definition:
DTBtiTrigData.h:75
DTBtiTrigData::setX
void setX(int x)
Set trigger X parameter.
Definition:
DTBtiTrigData.h:70
Generated for CMSSW Reference Manual by
1.8.5