CMS 3D CMS Logo

L1MuDTChambThContainer Class Reference

#include <DataFormats/L1DTTrackFinder/interface/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

typedef std::vector<L1MuDTChambThDigi> L1MuDTChambThContainer::The_Container

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.

00036 {}

L1MuDTChambThContainer::~L1MuDTChambThContainer (  ) 

Definition at line 41 of file L1MuDTChambThContainer.cc.

00041 {}


Member Function Documentation

bool L1MuDTChambThContainer::bxEmpty ( int  step  )  const

Definition at line 60 of file L1MuDTChambThContainer.cc.

References empty, i, and theSegments.

00060                                                    {
00061 
00062   bool empty = true;
00063 
00064   for ( The_iterator i  = theSegments.begin();
00065                      i != theSegments.end();
00066                      i++ ) {
00067     if  (step == i->bxNum()) empty = false;
00068   }
00069 
00070   return(empty);
00071 }

int L1MuDTChambThContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 73 of file L1MuDTChambThContainer.cc.

References i, size, and theSegments.

00073                                                              {
00074 
00075   int size = 0;
00076 
00077   for ( The_iterator i  = theSegments.begin();
00078                      i != theSegments.end();
00079                      i++ ) {
00080     if  (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
00081   }
00082 
00083   return(size);
00084 }

L1MuDTChambThDigi * L1MuDTChambThContainer::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 86 of file L1MuDTChambThContainer.cc.

References i, and theSegments.

00086                                                                                                     {
00087 
00088   L1MuDTChambThDigi* rT=0;
00089 
00090   for ( The_iterator i  = theSegments.begin();
00091                      i != theSegments.end();
00092                      i++ ) {
00093     if  (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
00094       && stat == i->stNum() )
00095       rT = const_cast<L1MuDTChambThDigi*>(&(*i));
00096   }
00097 
00098   return(rT);
00099 }

L1MuDTChambThContainer::The_Container * L1MuDTChambThContainer::getContainer (  )  const

Definition at line 51 of file L1MuDTChambThContainer.cc.

References theSegments.

00051                                                                                 {
00052 
00053   The_Container* rT=0;
00054 
00055   rT = const_cast<The_Container*>(&theSegments);
00056 
00057   return(rT);
00058 }

void L1MuDTChambThContainer::setContainer ( The_Container  inputSegments  ) 

Definition at line 46 of file L1MuDTChambThContainer.cc.

References theSegments.

00046                                                                      {
00047 
00048   theSegments = inputSegments;
00049 }


Member Data Documentation

The_Container L1MuDTChambThContainer::theSegments [private]

Definition at line 59 of file L1MuDTChambThContainer.h.

Referenced by bxEmpty(), bxSize(), chThetaSegm(), getContainer(), and setContainer().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:47 2009 for CMSSW by  doxygen 1.5.4