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 
38 //--------------
39 // Destructor --
40 //--------------
42 
43 //--------------
44 // Operations --
45 //--------------
47 
48  theSegments = inputSegments;
49 }
50 
52  return &theSegments;
53 }
54 
56 
57  bool empty = true;
58 
59  for ( The_iterator i = theSegments.begin();
60  i != theSegments.end();
61  i++ ) {
62  if (step == i->bxNum()) empty = false;
63  }
64 
65  return(empty);
66 }
67 
68 int L1MuDTChambThContainer::bxSize(int step1, int step2) const {
69 
70  int size = 0;
71 
72  for ( The_iterator i = theSegments.begin();
73  i != theSegments.end();
74  i++ ) {
75  if (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
76  }
77 
78  return(size);
79 }
80 
81 L1MuDTChambThDigi const* L1MuDTChambThContainer::chThetaSegm(int wheel, int stat, int sect, int step) const {
82 
83  L1MuDTChambThDigi const* rT=nullptr;
84 
85  for ( The_iterator i = theSegments.begin();
86  i != theSegments.end();
87  i++ ) {
88  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
89  && stat == i->stNum() )
90  rT = &(*i);
91  }
92 
93  return(rT);
94 }
95 
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
void setContainer(const The_Container &inputSegments)
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
step