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 ()=default
 
 L1MuDTChambPhContainer (Phi_Container)
 
void setContainer (Phi_Container inputSegments)
 
 ~L1MuDTChambPhContainer ()=default
 

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 ( )
default
L1MuDTChambPhContainer::L1MuDTChambPhContainer ( Phi_Container  c)
explicit

Definition at line 36 of file L1MuDTChambPhContainer.cc.

L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )
default

Member Function Documentation

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 50 of file L1MuDTChambPhContainer.cc.

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

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

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

Definition at line 63 of file L1MuDTChambPhContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

63  {
64 
65  int size = 0;
66 
67  for ( Phi_iterator i = phiSegments.begin();
68  i != phiSegments.end();
69  i++ ) {
70  if (step1 <= i->bxNum() && step2 >= i->bxNum()
71  && i->Ts2Tag() == 0 && i->code() != 7) size++;
72  if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1
73  && i->Ts2Tag() == 1 && i->code() != 7) size++;
74  }
75 
76  return(size);
77 }
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 79 of file L1MuDTChambPhContainer.cc.

References mps_fire::i, and phiSegments.

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

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

Definition at line 94 of file L1MuDTChambPhContainer.cc.

References mps_fire::i, and phiSegments.

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

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

Definition at line 41 of file L1MuDTChambPhContainer.cc.

References eostools::move(), and phiSegments.

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

41  {
42 
43  phiSegments = std::move(inputSegments);
44 }
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

Phi_Container L1MuDTChambPhContainer::phiSegments
private