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 33 of file L1MuDTTrackContainer.h.

Member Typedef Documentation

◆ TrackContainer

Definition at line 35 of file L1MuDTTrackContainer.h.

◆ Trackiterator

typedef TrackContainer::const_iterator L1MuDTTrackContainer::Trackiterator

Definition at line 36 of file L1MuDTTrackContainer.h.

◆ TrackIterator

typedef TrackContainer::iterator L1MuDTTrackContainer::TrackIterator

Definition at line 37 of file L1MuDTTrackContainer.h.

Constructor & Destructor Documentation

◆ L1MuDTTrackContainer()

L1MuDTTrackContainer::L1MuDTTrackContainer ( )

Definition at line 34 of file L1MuDTTrackContainer.cc.

34 {}

◆ ~L1MuDTTrackContainer()

L1MuDTTrackContainer::~L1MuDTTrackContainer ( )

Definition at line 39 of file L1MuDTTrackContainer.cc.

39 {}

Member Function Documentation

◆ bxEmpty()

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

◆ bxSize()

int L1MuDTTrackContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 59 of file L1MuDTTrackContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

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 }
size
Write out results.
TrackContainer::const_iterator Trackiterator

◆ dtTrackCand1()

L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand1 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 70 of file L1MuDTTrackContainer.cc.

References mps_fire::i, and makeMuonMisalignmentScenario::wheel.

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

◆ dtTrackCand2()

L1MuDTTrackCand const * L1MuDTTrackContainer::dtTrackCand2 ( int  wheel,
int  sect,
int  bx 
) const

Definition at line 81 of file L1MuDTTrackContainer.cc.

References mps_fire::i, and makeMuonMisalignmentScenario::wheel.

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

◆ getContainer()

L1MuDTTrackContainer::TrackContainer const * L1MuDTTrackContainer::getContainer ( ) const

◆ setContainer()

void L1MuDTTrackContainer::setContainer ( const TrackContainer inputTracks)

Definition at line 44 of file L1MuDTTrackContainer.cc.

References lostTracks_cfi::inputTracks.

Member Data Documentation

◆ dtTracks

TrackContainer L1MuDTTrackContainer::dtTracks
private

Definition at line 58 of file L1MuDTTrackContainer.h.