CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

L1MuDTTrackContainer Class Reference

#include <L1MuDTTrackContainer.h>

List of all members.

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
L1MuDTTrackCanddtTrackCand1 (int wheel, int sect, int bx) const
L1MuDTTrackCanddtTrackCand2 (int wheel, int sect, int bx) const
TrackContainergetContainer () const
 L1MuDTTrackContainer ()
void setContainer (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::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.


Constructor & Destructor Documentation

L1MuDTTrackContainer::L1MuDTTrackContainer ( )

Definition at line 36 of file L1MuDTTrackContainer.cc.

{}
L1MuDTTrackContainer::~L1MuDTTrackContainer ( )

Definition at line 41 of file L1MuDTTrackContainer.cc.

{}

Member Function Documentation

bool L1MuDTTrackContainer::bxEmpty ( int  step) const

Definition at line 60 of file L1MuDTTrackContainer.cc.

References relativeConstraints::empty, and i.

                                                 {

  bool empty = true;

  for ( Trackiterator i  = dtTracks.begin();
                      i != dtTracks.end();
                      i++ ) {
    if  (step == i->bx()) empty = false;
  }

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

Definition at line 73 of file L1MuDTTrackContainer.cc.

References i, and findQualityFiles::size.

                                                           {

  int size = 0;

  for ( Trackiterator i  = dtTracks.begin();
                      i != dtTracks.end();
                      i++ ) {
    if  (step1 <= i->bx() && step2 >= i->bx() 
      && i->quality_packed() != 0) size++;
  }

  return(size);
}
L1MuDTTrackCand * L1MuDTTrackContainer::dtTrackCand1 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 87 of file L1MuDTTrackContainer.cc.

References i.

                                                                                       {

  L1MuDTTrackCand* rT=0;

  for ( Trackiterator i  = dtTracks.begin();
                      i != dtTracks.end();
                      i++ ) {
    if  (step == i->bx() && wheel == i->whNum() && sect == i->scNum()
      && i->TrkTag() == 0)
      rT = const_cast<L1MuDTTrackCand*>(&(*i));
  }

  return(rT);
}
L1MuDTTrackCand * L1MuDTTrackContainer::dtTrackCand2 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 102 of file L1MuDTTrackContainer.cc.

References i.

                                                                                       {

  L1MuDTTrackCand* rT=0;

  for ( Trackiterator i  = dtTracks.begin();
                      i != dtTracks.end();
                      i++ ) {
    if  (step == i->bx() && wheel == i->whNum() && sect == i->scNum()
      && i->TrkTag() == 1)
      rT = const_cast<L1MuDTTrackCand*>(&(*i));
  }

  return(rT);
}
L1MuDTTrackContainer::TrackContainer * L1MuDTTrackContainer::getContainer ( ) const

Definition at line 51 of file L1MuDTTrackContainer.cc.

                                                                             {

  TrackContainer* rT=0;

  rT = const_cast<TrackContainer*>(&dtTracks);

  return(rT);
}
void L1MuDTTrackContainer::setContainer ( TrackContainer  inputTracks)

Definition at line 46 of file L1MuDTTrackContainer.cc.

                                                                  {

  dtTracks = inputTracks;
}

Member Data Documentation

Definition at line 63 of file L1MuDTTrackContainer.h.