CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1MuDTChambThContainer Class Reference

#include <L1MuDTChambThContainer.h>

Public Types

typedef std::vector
< L1MuDTChambThDigi
The_Container
 
typedef
The_Container::const_iterator 
The_iterator
 

Public Member Functions

bool bxEmpty (int step) const
 
int bxSize (int step1, int step2) const
 
L1MuDTChambThDigichThetaSegm (int wheel, int stat, int sect, int bx) const
 
The_ContainergetContainer () const
 
 L1MuDTChambThContainer ()
 
void setContainer (The_Container inputSegments)
 
 ~L1MuDTChambThContainer ()
 

Private Attributes

The_Container theSegments
 

Detailed Description

Definition at line 34 of file L1MuDTChambThContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuDTChambThContainer.h.

typedef The_Container::const_iterator L1MuDTChambThContainer::The_iterator

Definition at line 39 of file L1MuDTChambThContainer.h.

Constructor & Destructor Documentation

L1MuDTChambThContainer::L1MuDTChambThContainer ( )

Definition at line 36 of file L1MuDTChambThContainer.cc.

36 {}
L1MuDTChambThContainer::~L1MuDTChambThContainer ( )

Definition at line 41 of file L1MuDTChambThContainer.cc.

41 {}

Member Function Documentation

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 60 of file L1MuDTChambThContainer.cc.

References relativeConstraints::empty, and i.

60  {
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 }
int i
Definition: DBlmapReader.cc:9
list step
Definition: launcher.py:15
The_Container::const_iterator The_iterator
int L1MuDTChambThContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 73 of file L1MuDTChambThContainer.cc.

References i, and findQualityFiles::size.

73  {
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 }
int i
Definition: DBlmapReader.cc:9
The_Container::const_iterator The_iterator
tuple size
Write out results.
L1MuDTChambThDigi * L1MuDTChambThContainer::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 86 of file L1MuDTChambThContainer.cc.

References i.

86  {
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 }
int i
Definition: DBlmapReader.cc:9
list step
Definition: launcher.py:15
The_Container::const_iterator The_iterator
L1MuDTChambThContainer::The_Container * L1MuDTChambThContainer::getContainer ( ) const

Definition at line 51 of file L1MuDTChambThContainer.cc.

51  {
52 
53  The_Container* rT=0;
54 
55  rT = const_cast<The_Container*>(&theSegments);
56 
57  return(rT);
58 }
std::vector< L1MuDTChambThDigi > The_Container
void L1MuDTChambThContainer::setContainer ( The_Container  inputSegments)

Definition at line 46 of file L1MuDTChambThContainer.cc.

46  {
47 
48  theSegments = inputSegments;
49 }

Member Data Documentation

The_Container L1MuDTChambThContainer::theSegments
private

Definition at line 59 of file L1MuDTChambThContainer.h.