CMS 3D CMS Logo

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 //-----------------------
17 
18 //-------------------------------
19 // Collaborating Class Headers --
20 //-------------------------------
21 
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 using namespace std;
27 
28 //-------------------
29 // Initializations --
30 //-------------------
31 
32 
33 //----------------
34 // Constructors --
35 //----------------
37  theSegments{std::move(c)} {}
38 
39 //--------------
40 // Operations --
41 //--------------
43 
44  theSegments = std::move(inputSegments);
45 }
46 
48  return &theSegments;
49 }
50 
52 
53  bool empty = true;
54 
55  for ( The_iterator i = theSegments.begin();
56  i != theSegments.end();
57  i++ ) {
58  if (step == i->bxNum()) empty = false;
59  }
60 
61  return(empty);
62 }
63 
64 int L1MuDTChambThContainer::bxSize(int step1, int step2) const {
65 
66  int size = 0;
67 
68  for ( The_iterator i = theSegments.begin();
69  i != theSegments.end();
70  i++ ) {
71  if (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
72  }
73 
74  return(size);
75 }
76 
77 L1MuDTChambThDigi const* L1MuDTChambThContainer::chThetaSegm(int wheel, int stat, int sect, int step) const {
78 
79  L1MuDTChambThDigi const* rT=nullptr;
80 
81  for ( The_iterator i = theSegments.begin();
82  i != theSegments.end();
83  i++ ) {
84  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
85  && stat == i->stNum() )
86  rT = &(*i);
87  }
88 
89  return(rT);
90 }
91 
size
Write out results.
The_Container const * getContainer() const
bool bxEmpty(int step) const
int bxSize(int step1, int step2) const
The_Container::const_iterator The_iterator
std::vector< L1MuDTChambThDigi > The_Container
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
void setContainer(The_Container inputSegments)
L1MuDTChambThContainer()=default
step
def move(src, dest)
Definition: eostools.py:511