#include <DataFormats/L1DTTrackFinder/interface/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 * | chThetaSegm (int wheel, int stat, int sect, int bx) const |
The_Container * | getContainer () const |
L1MuDTChambThContainer () | |
void | setContainer (The_Container inputSegments) |
~L1MuDTChambThContainer () | |
Private Attributes | |
The_Container | theSegments |
Definition at line 34 of file L1MuDTChambThContainer.h.
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.
L1MuDTChambThContainer::L1MuDTChambThContainer | ( | ) |
L1MuDTChambThContainer::~L1MuDTChambThContainer | ( | ) |
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 }
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 }
Definition at line 59 of file L1MuDTChambThContainer.h.
Referenced by bxEmpty(), bxSize(), chThetaSegm(), getContainer(), and setContainer().