1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//-------------------------------------------------
//
// Class L1MuDTChambThContainer
//
// Description: input data for ETTF trigger
//
//
// Author List: Jorge Troconiz UAM Madrid
//
//
//--------------------------------------------------
//-----------------------
// This Class's Header --
//-----------------------
#include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h"
//-------------------------------
// Collaborating Class Headers --
//-------------------------------
//---------------
// C++ Headers --
//---------------
using namespace std;
//-------------------
// Initializations --
//-------------------
//----------------
// Constructors --
//----------------
L1MuDTChambThContainer::L1MuDTChambThContainer(The_Container c) : theSegments{std::move(c)} {}
//--------------
// Operations --
//--------------
void L1MuDTChambThContainer::setContainer(The_Container inputSegments) { theSegments = std::move(inputSegments); }
L1MuDTChambThContainer::The_Container const* L1MuDTChambThContainer::getContainer() const { return &theSegments; }
bool L1MuDTChambThContainer::bxEmpty(int step) const {
bool empty = true;
for (The_iterator i = theSegments.begin(); i != theSegments.end(); i++) {
if (step == i->bxNum())
empty = false;
}
return (empty);
}
int L1MuDTChambThContainer::bxSize(int step1, int step2) const {
int size = 0;
for (The_iterator i = theSegments.begin(); i != theSegments.end(); i++) {
if (step1 <= i->bxNum() && step2 >= i->bxNum())
size++;
}
return (size);
}
L1MuDTChambThDigi const* L1MuDTChambThContainer::chThetaSegm(int wheel, int stat, int sect, int step) const {
L1MuDTChambThDigi const* rT = nullptr;
for (The_iterator i = theSegments.begin(); i != theSegments.end(); i++) {
if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum())
rT = &(*i);
}
return (rT);
}
|