CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1MuDTTrackContainer Class Reference

#include <L1MuDTTrackContainer.h>

Public Types

typedef std::vector< L1MuDTTrackCandTrackContainer
 
typedef TrackContainer::const_iterator Trackiterator
 
typedef TrackContainer::iterator TrackIterator
 

Public Member Functions

bool bxEmpty (int step) const
 
int bxSize (int step1, int step2) const
 
L1MuDTTrackCand const * dtTrackCand1 (int wheel, int sect, int bx) const
 
L1MuDTTrackCand const * dtTrackCand2 (int wheel, int sect, int bx) const
 
TrackContainer const * getContainer () const
 
 L1MuDTTrackContainer ()
 
void setContainer (const TrackContainer &inputTracks)
 
 ~L1MuDTTrackContainer ()
 

Private Attributes

TrackContainer dtTracks
 

Detailed Description

Definition at line 34 of file L1MuDTTrackContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuDTTrackContainer.h.

typedef TrackContainer::const_iterator L1MuDTTrackContainer::Trackiterator

Definition at line 39 of file L1MuDTTrackContainer.h.

typedef TrackContainer::iterator L1MuDTTrackContainer::TrackIterator

Definition at line 40 of file L1MuDTTrackContainer.h.

Constructor & Destructor Documentation

L1MuDTTrackContainer::L1MuDTTrackContainer ( )

Definition at line 36 of file L1MuDTTrackContainer.cc.

36 {}
L1MuDTTrackContainer::~L1MuDTTrackContainer ( )

Definition at line 41 of file L1MuDTTrackContainer.cc.

41 {}

Member Function Documentation

bool L1MuDTTrackContainer::bxEmpty ( int  step) const

Definition at line 55 of file L1MuDTTrackContainer.cc.

References relativeConstraints::empty, and mps_fire::i.

55  {
56 
57  bool empty = true;
58 
59  for ( Trackiterator i = dtTracks.begin();
60  i != dtTracks.end();
61  i++ ) {
62  if (step == i->bx()) empty = false;
63  }
64 
65  return(empty);
66 }
TrackContainer::const_iterator Trackiterator
step
int L1MuDTTrackContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 68 of file L1MuDTTrackContainer.cc.

References mps_fire::i, and findQualityFiles::size.

Referenced by DTTFFEDSim::fillRawData().

68  {
69 
70  int size = 0;
71 
72  for ( Trackiterator i = dtTracks.begin();
73  i != dtTracks.end();
74  i++ ) {
75  if (step1 <= i->bx() && step2 >= i->bx()
76  && i->quality_packed() != 0) size++;
77  }
78 
79  return(size);
80 }
size
Write out results.
TrackContainer::const_iterator Trackiterator
L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand1 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 82 of file L1MuDTTrackContainer.cc.

References mps_fire::i.

82  {
83 
84  L1MuDTTrackCand const* rT=0;
85 
86  for ( Trackiterator i = dtTracks.begin();
87  i != dtTracks.end();
88  i++ ) {
89  if (step == i->bx() && wheel == i->whNum() && sect == i->scNum()
90  && i->TrkTag() == 0)
91  rT = &(*i);
92  }
93 
94  return(rT);
95 }
TrackContainer::const_iterator Trackiterator
step
L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand2 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 97 of file L1MuDTTrackContainer.cc.

References mps_fire::i.

97  {
98 
99  L1MuDTTrackCand const* rT=0;
100 
101  for ( Trackiterator i = dtTracks.begin();
102  i != dtTracks.end();
103  i++ ) {
104  if (step == i->bx() && wheel == i->whNum() && sect == i->scNum()
105  && i->TrkTag() == 1)
106  rT = &(*i);
107  }
108 
109  return(rT);
110 }
TrackContainer::const_iterator Trackiterator
step
L1MuDTTrackContainer::TrackContainer const * L1MuDTTrackContainer::getContainer ( ) const
void L1MuDTTrackContainer::setContainer ( const TrackContainer inputTracks)

Definition at line 46 of file L1MuDTTrackContainer.cc.

References lostTracks_cfi::inputTracks.

46  {
47 
49 }

Member Data Documentation

TrackContainer L1MuDTTrackContainer::dtTracks
private

Definition at line 63 of file L1MuDTTrackContainer.h.