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

Member Typedef Documentation

◆ Phi_Container

Definition at line 35 of file L1MuDTChambPhContainer.h.

◆ Phi_iterator

typedef Phi_Container::const_iterator L1MuDTChambPhContainer::Phi_iterator

Definition at line 36 of file L1MuDTChambPhContainer.h.

Constructor & Destructor Documentation

◆ L1MuDTChambPhContainer() [1/2]

L1MuDTChambPhContainer::L1MuDTChambPhContainer ( )
default

◆ L1MuDTChambPhContainer() [2/2]

L1MuDTChambPhContainer::L1MuDTChambPhContainer ( Phi_Container  c)
explicit

◆ ~L1MuDTChambPhContainer()

L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )
default

Member Function Documentation

◆ bxEmpty()

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 43 of file L1MuDTChambPhContainer.cc.

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

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

43  {
44  bool empty = true;
45 
46  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
47  if (step == i->bxNum())
48  empty = false;
49  }
50 
51  return (empty);
52 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:98

◆ bxSize()

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

Definition at line 54 of file L1MuDTChambPhContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

54  {
55  int size = 0;
56 
57  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
58  if (step1 <= i->bxNum() && step2 >= i->bxNum() && i->Ts2Tag() == 0 && i->code() != 7)
59  size++;
60  if (step1 <= i->bxNum() - 1 && step2 >= i->bxNum() - 1 && i->Ts2Tag() == 1 && i->code() != 7)
61  size++;
62  }
63 
64  return (size);
65 }
size
Write out results.
Phi_Container::const_iterator Phi_iterator

◆ chPhiSegm1()

L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

◆ chPhiSegm2()

L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

◆ getContainer()

L1MuDTChambPhContainer::Phi_Container const * L1MuDTChambPhContainer::getContainer ( ) const

◆ setContainer()

void L1MuDTChambPhContainer::setContainer ( Phi_Container  inputSegments)

Member Data Documentation

◆ phiSegments

Phi_Container L1MuDTChambPhContainer::phiSegments
private