CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1MuDTTrackContainer Class Reference

#include <L1MuDTTrackContainer.h>

Public Types

typedef std::vector
< L1MuDTTrackCand
TrackContainer
 
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 33 of file L1MuDTTrackContainer.h.

Member Typedef Documentation

Definition at line 35 of file L1MuDTTrackContainer.h.

typedef TrackContainer::const_iterator L1MuDTTrackContainer::Trackiterator

Definition at line 36 of file L1MuDTTrackContainer.h.

typedef TrackContainer::iterator L1MuDTTrackContainer::TrackIterator

Definition at line 37 of file L1MuDTTrackContainer.h.

Constructor & Destructor Documentation

L1MuDTTrackContainer::L1MuDTTrackContainer ( )

Definition at line 34 of file L1MuDTTrackContainer.cc.

34 {}
L1MuDTTrackContainer::~L1MuDTTrackContainer ( )

Definition at line 39 of file L1MuDTTrackContainer.cc.

39 {}

Member Function Documentation

bool L1MuDTTrackContainer::bxEmpty ( int  step) const

Definition at line 48 of file L1MuDTTrackContainer.cc.

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

48  {
49  bool empty = true;
50 
51  for (Trackiterator i = dtTracks.begin(); i != dtTracks.end(); i++) {
52  if (step == i->bx())
53  empty = false;
54  }
55 
56  return (empty);
57 }
TrackContainer::const_iterator Trackiterator
step
Definition: StallMonitor.cc:98
int L1MuDTTrackContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 59 of file L1MuDTTrackContainer.cc.

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

59  {
60  int size = 0;
61 
62  for (Trackiterator i = dtTracks.begin(); i != dtTracks.end(); i++) {
63  if (step1 <= i->bx() && step2 >= i->bx() && i->quality_packed() != 0)
64  size++;
65  }
66 
67  return (size);
68 }
TrackContainer::const_iterator Trackiterator
tuple size
Write out results.
L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand1 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 70 of file L1MuDTTrackContainer.cc.

References mps_fire::i.

70  {
71  L1MuDTTrackCand const* rT = nullptr;
72 
73  for (Trackiterator i = dtTracks.begin(); i != dtTracks.end(); i++) {
74  if (step == i->bx() && wheel == i->whNum() && sect == i->scNum() && i->TrkTag() == 0)
75  rT = &(*i);
76  }
77 
78  return (rT);
79 }
TrackContainer::const_iterator Trackiterator
step
Definition: StallMonitor.cc:98
L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand2 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 81 of file L1MuDTTrackContainer.cc.

References mps_fire::i.

81  {
82  L1MuDTTrackCand const* rT = nullptr;
83 
84  for (Trackiterator i = dtTracks.begin(); i != dtTracks.end(); i++) {
85  if (step == i->bx() && wheel == i->whNum() && sect == i->scNum() && i->TrkTag() == 1)
86  rT = &(*i);
87  }
88 
89  return (rT);
90 }
TrackContainer::const_iterator Trackiterator
step
Definition: StallMonitor.cc:98
L1MuDTTrackContainer::TrackContainer const * L1MuDTTrackContainer::getContainer ( ) const

Definition at line 46 of file L1MuDTTrackContainer.cc.

46 { return &dtTracks; }
void L1MuDTTrackContainer::setContainer ( const TrackContainer inputTracks)

Definition at line 44 of file L1MuDTTrackContainer.cc.

44 { dtTracks = inputTracks; }

Member Data Documentation

TrackContainer L1MuDTTrackContainer::dtTracks
private

Definition at line 58 of file L1MuDTTrackContainer.h.