CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

L1MuDTChambThContainer Class Reference

#include <L1MuDTChambThContainer.h>

List of all members.

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.

{}
L1MuDTChambThContainer::~L1MuDTChambThContainer ( )

Definition at line 41 of file L1MuDTChambThContainer.cc.

{}

Member Function Documentation

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 60 of file L1MuDTChambThContainer.cc.

References relativeConstraints::empty, and i.

                                                   {

  bool empty = true;

  for ( The_iterator i  = theSegments.begin();
                     i != theSegments.end();
                     i++ ) {
    if  (step == i->bxNum()) empty = false;
  }

  return(empty);
}
int L1MuDTChambThContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 73 of file L1MuDTChambThContainer.cc.

References i, and findQualityFiles::size.

                                                             {

  int size = 0;

  for ( The_iterator i  = theSegments.begin();
                     i != theSegments.end();
                     i++ ) {
    if  (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
  }

  return(size);
}
L1MuDTChambThDigi * L1MuDTChambThContainer::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 86 of file L1MuDTChambThContainer.cc.

References i.

                                                                                                    {

  L1MuDTChambThDigi* rT=0;

  for ( The_iterator i  = theSegments.begin();
                     i != theSegments.end();
                     i++ ) {
    if  (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
      && stat == i->stNum() )
      rT = const_cast<L1MuDTChambThDigi*>(&(*i));
  }

  return(rT);
}
L1MuDTChambThContainer::The_Container * L1MuDTChambThContainer::getContainer ( ) const

Definition at line 51 of file L1MuDTChambThContainer.cc.

                                                                                {

  The_Container* rT=0;

  rT = const_cast<The_Container*>(&theSegments);

  return(rT);
}
void L1MuDTChambThContainer::setContainer ( The_Container  inputSegments)

Definition at line 46 of file L1MuDTChambThContainer.cc.

                                                                     {

  theSegments = inputSegments;
}

Member Data Documentation

Definition at line 59 of file L1MuDTChambThContainer.h.