CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 // 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 }
The_Container const * getContainer() const
const edm::EventSetup & c
bool bxEmpty(int step) const
int bxSize(int step1, int step2) const
The_Container::const_iterator The_iterator
def move
Definition: eostools.py:511
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
Definition: StallMonitor.cc:94
tuple size
Write out results.