CMS 3D CMS Logo

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

#include <L1MuDTChambPhContainer.h>

Public Types

typedef std::vector< L1MuDTChambPhDigiPhi_Container
 
typedef Phi_Container::const_iterator Phi_iterator
 

Public Member Functions

bool bxEmpty (int step) const
 
int bxSize (int step1, int step2) const
 
L1MuDTChambPhDigi const * chPhiSegm1 (int wheel, int stat, int sect, int bx) const
 
L1MuDTChambPhDigi const * chPhiSegm2 (int wheel, int stat, int sect, int bx) const
 
Phi_Container const * getContainer () const
 
 L1MuDTChambPhContainer ()
 
void setContainer (const Phi_Container &inputSegments)
 
 ~L1MuDTChambPhContainer ()
 

Private Attributes

Phi_Container phiSegments
 

Detailed Description

Definition at line 34 of file L1MuDTChambPhContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuDTChambPhContainer.h.

typedef Phi_Container::const_iterator L1MuDTChambPhContainer::Phi_iterator

Definition at line 39 of file L1MuDTChambPhContainer.h.

Constructor & Destructor Documentation

L1MuDTChambPhContainer::L1MuDTChambPhContainer ( )

Definition at line 36 of file L1MuDTChambPhContainer.cc.

36 {}
L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )

Definition at line 41 of file L1MuDTChambPhContainer.cc.

41 {}

Member Function Documentation

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 55 of file L1MuDTChambPhContainer.cc.

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

Referenced by L1MuDTTrackFinder::run(), and L1MuBMTrackFinder::run().

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

Definition at line 68 of file L1MuDTChambPhContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

68  {
69 
70  int size = 0;
71 
72  for ( Phi_iterator i = phiSegments.begin();
73  i != phiSegments.end();
74  i++ ) {
75  if (step1 <= i->bxNum() && step2 >= i->bxNum()
76  && i->Ts2Tag() == 0 && i->code() != 7) size++;
77  if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1
78  && i->Ts2Tag() == 1 && i->code() != 7) size++;
79  }
80 
81  return(size);
82 }
size
Write out results.
Phi_Container::const_iterator Phi_iterator
L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 84 of file L1MuDTChambPhContainer.cc.

References mps_fire::i.

Referenced by L1TMuon::DTCollector::extractPrimitives(), L1TMuonBarrelKalmanStubProcessor::makeStubs(), CSCTFDTReceiver::process(), L1MuBMSectorReceiver::receiveBBMXData(), L1MuDTSectorReceiver::receiveDTBXData(), IOPrinter::run(), AlignTrackSegments::run(), and L1TTwinMuxAlgorithm::run().

84  {
85 
86  L1MuDTChambPhDigi const* rT=nullptr;
87 
88  for ( Phi_iterator i = phiSegments.begin();
89  i != phiSegments.end();
90  i++ ) {
91  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
92  && stat == i->stNum() && i->Ts2Tag() == 0)
93  rT = &(*i);
94  }
95 
96  return(rT);
97 }
Phi_Container::const_iterator Phi_iterator
step
L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 99 of file L1MuDTChambPhContainer.cc.

References mps_fire::i.

Referenced by L1TMuon::DTCollector::extractPrimitives(), L1TMuonBarrelKalmanStubProcessor::makeStubs(), CSCTFDTReceiver::process(), L1MuBMSectorReceiver::receiveBBMXData(), L1MuDTSectorReceiver::receiveDTBXData(), IOPrinter::run(), AlignTrackSegments::run(), and L1TTwinMuxAlgorithm::run().

99  {
100 
101  L1MuDTChambPhDigi const* rT=nullptr;
102 
103  for ( Phi_iterator i = phiSegments.begin();
104  i != phiSegments.end();
105  i++ ) {
106  if (step == i->bxNum()-1 && wheel == i->whNum() && sect == i->scNum()
107  && stat == i->stNum() && i->Ts2Tag() == 1)
108  rT = &(*i);
109  }
110 
111  return(rT);
112 }
Phi_Container::const_iterator Phi_iterator
step
L1MuDTChambPhContainer::Phi_Container const * L1MuDTChambPhContainer::getContainer ( ) const
void L1MuDTChambPhContainer::setContainer ( const Phi_Container inputSegments)

Definition at line 46 of file L1MuDTChambPhContainer.cc.

Referenced by RPCtoDTTranslator::run(), AlignTrackSegments::run(), DTRPCBxCorrection::run(), and l1t::stage2::unpacking_bmtf().

46  {
47 
48  phiSegments = inputSegments;
49 }

Member Data Documentation

Phi_Container L1MuDTChambPhContainer::phiSegments
private

Definition at line 61 of file L1MuDTChambPhContainer.h.