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

Definition at line 34 of file L1MuDTChambPhContainer.cc.

34 : phiSegments(std::move(c)) {}

◆ ~L1MuDTChambPhContainer()

L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )
default

Member Function Documentation

◆ bxEmpty()

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 43 of file L1MuDTChambPhContainer.cc.

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 }

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

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

◆ bxSize()

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

Definition at line 54 of file L1MuDTChambPhContainer.cc.

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 }

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

Referenced by DTTFFEDSim::fillRawData().

◆ 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
mps_fire.i
i
Definition: mps_fire.py:428
step
step
Definition: StallMonitor.cc:94
L1MuDTChambPhContainer::phiSegments
Phi_Container phiSegments
Definition: L1MuDTChambPhContainer.h:58
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
L1MuDTChambPhContainer::Phi_iterator
Phi_Container::const_iterator Phi_iterator
Definition: L1MuDTChambPhContainer.h:36
eostools.move
def move(src, dest)
Definition: eostools.py:511
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443