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.

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 }

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

◆ bxSize()

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

Definition at line 59 of file L1MuDTTrackContainer.cc.

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 }

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

Referenced by DTTFFEDSim::fillRawData().

◆ dtTrackCand1()

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

Definition at line 70 of file L1MuDTTrackContainer.cc.

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 }

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

◆ dtTrackCand2()

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

Definition at line 81 of file L1MuDTTrackContainer.cc.

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 }

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

◆ getContainer()

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

◆ setContainer()

void L1MuDTTrackContainer::setContainer ( const TrackContainer inputTracks)

Definition at line 44 of file L1MuDTTrackContainer.cc.

44 { dtTracks = inputTracks; }

References lostTracks_cfi::inputTracks.

Member Data Documentation

◆ dtTracks

TrackContainer L1MuDTTrackContainer::dtTracks
private

Definition at line 58 of file L1MuDTTrackContainer.h.

lostTracks_cfi.inputTracks
inputTracks
Definition: lostTracks_cfi.py:8
mps_fire.i
i
Definition: mps_fire.py:428
step
step
Definition: StallMonitor.cc:94
L1MuDTTrackContainer::Trackiterator
TrackContainer::const_iterator Trackiterator
Definition: L1MuDTTrackContainer.h:36
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
L1MuDTTrackCand
Definition: L1MuDTTrackCand.h:33
L1MuDTTrackContainer::dtTracks
TrackContainer dtTracks
Definition: L1MuDTTrackContainer.h:58
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443