CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
53  The_Container* rT=0;
54 
55  rT = const_cast<The_Container*>(&theSegments);
56 
57  return(rT);
58 }
59 
61 
62  bool empty = true;
63 
64  for ( The_iterator i = theSegments.begin();
65  i != theSegments.end();
66  i++ ) {
67  if (step == i->bxNum()) empty = false;
68  }
69 
70  return(empty);
71 }
72 
74 
75  int size = 0;
76 
77  for ( The_iterator i = theSegments.begin();
78  i != theSegments.end();
79  i++ ) {
80  if (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
81  }
82 
83  return(size);
84 }
85 
86 L1MuDTChambThDigi* L1MuDTChambThContainer::chThetaSegm(int wheel, int stat, int sect, int step) const {
87 
88  L1MuDTChambThDigi* rT=0;
89 
90  for ( The_iterator i = theSegments.begin();
91  i != theSegments.end();
92  i++ ) {
93  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
94  && stat == i->stNum() )
95  rT = const_cast<L1MuDTChambThDigi*>(&(*i));
96  }
97 
98  return(rT);
99 }
100 
The_Container * getContainer() const
int i
Definition: DBlmapReader.cc:9
bool bxEmpty(int step) const
int bxSize(int step1, int step2) const
The_Container::const_iterator The_iterator
L1MuDTChambThDigi * chThetaSegm(int wheel, int stat, int sect, int bx) const
std::vector< L1MuDTChambThDigi > The_Container
void setContainer(const The_Container &inputSegments)
tuple size
Write out results.