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 // C++ Headers --
24 //---------------
25 using namespace std;
26 
27 //-------------------
28 // Initializations --
29 //-------------------
30 
31 //----------------
32 // Constructors --
33 //----------------
35 
36 //--------------
37 // Operations --
38 //--------------
40 
42 
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 }
size
Write out results.
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
The_Container::const_iterator The_iterator
The_Container const * getContainer() const
bool bxEmpty(int step) const
std::vector< L1MuDTChambThDigi > The_Container
void setContainer(The_Container inputSegments)
L1MuDTChambThContainer()=default
int bxSize(int step1, int step2) const
step
Definition: StallMonitor.cc:98
def move(src, dest)
Definition: eostools.py:511