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
 
L1MuDTChambThDigi const * chThetaSegm (int wheel, int stat, int sect, int bx) const
 
The_Container const * getContainer () const
 
 L1MuDTChambThContainer ()
 
void setContainer (const 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 55 of file L1MuDTChambThContainer.cc.

References relativeConstraints::empty, and i.

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

Definition at line 68 of file L1MuDTChambThContainer.cc.

References i, and findQualityFiles::size.

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

Definition at line 81 of file L1MuDTChambThContainer.cc.

References i.

81  {
82 
83  L1MuDTChambThDigi const* rT=0;
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 }
int i
Definition: DBlmapReader.cc:9
The_Container::const_iterator The_iterator
L1MuDTChambThContainer::The_Container const * L1MuDTChambThContainer::getContainer ( ) const

Definition at line 51 of file L1MuDTChambThContainer.cc.

51  {
52  return &theSegments;
53 }
void L1MuDTChambThContainer::setContainer ( const 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.