#include <DataFormats/L1DTTrackFinder/interface/L1MuDTTrackContainer.h>
Public Types | |
typedef std::vector < L1MuDTTrackCand > | TrackContainer |
typedef TrackContainer::iterator | TrackIterator |
typedef TrackContainer::const_iterator | Trackiterator |
Public Member Functions | |
bool | bxEmpty (int step) const |
int | bxSize (int step1, int step2) const |
L1MuDTTrackCand * | dtTrackCand1 (int wheel, int sect, int bx) const |
L1MuDTTrackCand * | dtTrackCand2 (int wheel, int sect, int bx) const |
TrackContainer * | getContainer () const |
L1MuDTTrackContainer () | |
void | setContainer (TrackContainer inputTracks) |
~L1MuDTTrackContainer () | |
Private Attributes | |
TrackContainer | dtTracks |
Definition at line 34 of file L1MuDTTrackContainer.h.
typedef std::vector<L1MuDTTrackCand> L1MuDTTrackContainer::TrackContainer |
Definition at line 38 of file L1MuDTTrackContainer.h.
typedef TrackContainer::iterator L1MuDTTrackContainer::TrackIterator |
Definition at line 40 of file L1MuDTTrackContainer.h.
typedef TrackContainer::const_iterator L1MuDTTrackContainer::Trackiterator |
Definition at line 39 of file L1MuDTTrackContainer.h.
L1MuDTTrackContainer::L1MuDTTrackContainer | ( | ) |
L1MuDTTrackContainer::~L1MuDTTrackContainer | ( | ) |
Definition at line 60 of file L1MuDTTrackContainer.cc.
References dtTracks, empty, and i.
00060 { 00061 00062 bool empty = true; 00063 00064 for ( Trackiterator i = dtTracks.begin(); 00065 i != dtTracks.end(); 00066 i++ ) { 00067 if (step == i->bx()) empty = false; 00068 } 00069 00070 return(empty); 00071 }
Definition at line 73 of file L1MuDTTrackContainer.cc.
References dtTracks, i, and size.
00073 { 00074 00075 int size = 0; 00076 00077 for ( Trackiterator i = dtTracks.begin(); 00078 i != dtTracks.end(); 00079 i++ ) { 00080 if (step1 <= i->bx() && step2 >= i->bx() 00081 && i->quality_packed() != 0) size++; 00082 } 00083 00084 return(size); 00085 }
L1MuDTTrackCand * L1MuDTTrackContainer::dtTrackCand1 | ( | int | wheel, | |
int | sect, | |||
int | bx | |||
) | const |
Definition at line 87 of file L1MuDTTrackContainer.cc.
00087 { 00088 00089 L1MuDTTrackCand* rT=0; 00090 00091 for ( Trackiterator i = dtTracks.begin(); 00092 i != dtTracks.end(); 00093 i++ ) { 00094 if (step == i->bx() && wheel == i->whNum() && sect == i->scNum() 00095 && i->TrkTag() == 0) 00096 rT = const_cast<L1MuDTTrackCand*>(&(*i)); 00097 } 00098 00099 return(rT); 00100 }
L1MuDTTrackCand * L1MuDTTrackContainer::dtTrackCand2 | ( | int | wheel, | |
int | sect, | |||
int | bx | |||
) | const |
Definition at line 102 of file L1MuDTTrackContainer.cc.
00102 { 00103 00104 L1MuDTTrackCand* rT=0; 00105 00106 for ( Trackiterator i = dtTracks.begin(); 00107 i != dtTracks.end(); 00108 i++ ) { 00109 if (step == i->bx() && wheel == i->whNum() && sect == i->scNum() 00110 && i->TrkTag() == 1) 00111 rT = const_cast<L1MuDTTrackCand*>(&(*i)); 00112 } 00113 00114 return(rT); 00115 }
L1MuDTTrackContainer::TrackContainer * L1MuDTTrackContainer::getContainer | ( | ) | const |
Definition at line 51 of file L1MuDTTrackContainer.cc.
References dtTracks.
00051 { 00052 00053 TrackContainer* rT=0; 00054 00055 rT = const_cast<TrackContainer*>(&dtTracks); 00056 00057 return(rT); 00058 }
void L1MuDTTrackContainer::setContainer | ( | TrackContainer | inputTracks | ) |
Definition at line 46 of file L1MuDTTrackContainer.cc.
References dtTracks.
00046 { 00047 00048 dtTracks = inputTracks; 00049 }
TrackContainer L1MuDTTrackContainer::dtTracks [private] |
Definition at line 63 of file L1MuDTTrackContainer.h.
Referenced by bxEmpty(), bxSize(), dtTrackCand1(), dtTrackCand2(), getContainer(), and setContainer().