DataFormats
L1DTTrackFinder
src
L1MuDTChambThContainer.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class L1MuDTChambThContainer
4
//
5
// Description: input data for ETTF trigger
6
//
7
//
8
// Author List: Jorge Troconiz UAM Madrid
9
//
10
//
11
//--------------------------------------------------
12
13
//-----------------------
14
// This Class's Header --
15
//-----------------------
16
#include "
DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h
"
17
18
//-------------------------------
19
// Collaborating Class Headers --
20
//-------------------------------
21
22
//---------------
23
// C++ Headers --
24
//---------------
25
using namespace
std
;
26
27
//-------------------
28
// Initializations --
29
//-------------------
30
31
//----------------
32
// Constructors --
33
//----------------
34
L1MuDTChambThContainer::L1MuDTChambThContainer
(
The_Container
c
) : theSegments{
std::move
(
c
)} {}
35
36
//--------------
37
// Operations --
38
//--------------
39
void
L1MuDTChambThContainer::setContainer
(
The_Container
inputSegments) {
theSegments
=
std::move
(inputSegments); }
40
41
L1MuDTChambThContainer::The_Container
const
*
L1MuDTChambThContainer::getContainer
()
const
{
return
&
theSegments
; }
42
43
bool
L1MuDTChambThContainer::bxEmpty
(
int
step
)
const
{
44
bool
empty
=
true
;
45
46
for
(
The_iterator
i
=
theSegments
.begin();
i
!=
theSegments
.end();
i
++) {
47
if
(
step
==
i
->bxNum())
48
empty
=
false
;
49
}
50
51
return
(
empty
);
52
}
53
54
int
L1MuDTChambThContainer::bxSize
(
int
step1,
int
step2)
const
{
55
int
size
= 0;
56
57
for
(
The_iterator
i
=
theSegments
.begin();
i
!=
theSegments
.end();
i
++) {
58
if
(step1 <= i->bxNum() && step2 >=
i
->bxNum())
59
size
++;
60
}
61
62
return
(
size
);
63
}
64
65
L1MuDTChambThDigi
const
*
L1MuDTChambThContainer::chThetaSegm
(
int
wheel
,
int
stat
,
int
sect,
int
step
)
const
{
66
L1MuDTChambThDigi
const
* rT =
nullptr
;
67
68
for
(
The_iterator
i
=
theSegments
.begin();
i
!=
theSegments
.end();
i
++) {
69
if
(
step
==
i
->bxNum() &&
wheel
==
i
->whNum() && sect ==
i
->scNum() &&
stat
==
i
->stNum())
70
rT = &(*
i
);
71
}
72
73
return
(rT);
74
}
mps_fire.i
i
Definition:
mps_fire.py:355
step
step
Definition:
StallMonitor.cc:94
L1MuDTChambThContainer::L1MuDTChambThContainer
L1MuDTChambThContainer()=default
L1MuDTChambThContainer.h
L1MuDTChambThContainer::The_iterator
The_Container::const_iterator The_iterator
Definition:
L1MuDTChambThContainer.h:36
L1MuDTChambThContainer::setContainer
void setContainer(The_Container inputSegments)
Definition:
L1MuDTChambThContainer.cc:39
hgcalPlots.stat
stat
Definition:
hgcalPlots.py:1111
L1MuDTChambThContainer::bxEmpty
bool bxEmpty(int step) const
Definition:
L1MuDTChambThContainer.cc:43
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
L1MuDTChambThContainer::getContainer
The_Container const * getContainer() const
Definition:
L1MuDTChambThContainer.cc:41
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
L1MuDTChambThContainer::The_Container
std::vector< L1MuDTChambThDigi > The_Container
Definition:
L1MuDTChambThContainer.h:35
L1MuDTChambThContainer::chThetaSegm
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
Definition:
L1MuDTChambThContainer.cc:65
eostools.move
def move(src, dest)
Definition:
eostools.py:511
std
Definition:
JetResolutionObject.h:76
L1MuDTChambThDigi
Definition:
L1MuDTChambThDigi.h:33
L1MuDTChambThContainer::bxSize
int bxSize(int step1, int step2) const
Definition:
L1MuDTChambThContainer.cc:54
relativeConstraints.empty
bool empty
Definition:
relativeConstraints.py:46
L1MuDTChambThContainer::theSegments
The_Container theSegments
Definition:
L1MuDTChambThContainer.h:56
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16