CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1MuDTChambPhContainer Class Reference

#include <L1MuDTChambPhContainer.h>

Public Types

typedef std::vector
< L1MuDTChambPhDigi
Phi_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

Definition at line 35 of file L1MuDTChambPhContainer.h.

typedef Phi_Container::const_iterator L1MuDTChambPhContainer::Phi_iterator

Definition at line 36 of file L1MuDTChambPhContainer.h.

Constructor & Destructor Documentation

L1MuDTChambPhContainer::L1MuDTChambPhContainer ( )
default
L1MuDTChambPhContainer::L1MuDTChambPhContainer ( Phi_Container  c)
explicit

Definition at line 34 of file L1MuDTChambPhContainer.cc.

34 : phiSegments(std::move(c)) {}
const edm::EventSetup & c
def move
Definition: eostools.py:511
L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )
default

Member Function Documentation

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 43 of file L1MuDTChambPhContainer.cc.

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

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:94
int L1MuDTChambPhContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 54 of file L1MuDTChambPhContainer.cc.

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

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 }
Phi_Container::const_iterator Phi_iterator
tuple size
Write out results.
L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 67 of file L1MuDTChambPhContainer.cc.

References mps_fire::i, and phiSegments.

Referenced by L1TMuonBarrelKalmanStubProcessor::makeInputPattern(), L1TMuonBarrelKalmanStubProcessor::makeStubs(), CSCTFDTReceiver::process(), AlignTrackSegments::run(), IOPrinter::run(), and L1TTwinMuxAlgorithm::run().

67  {
68  L1MuDTChambPhDigi const* rT = nullptr;
69 
70  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
71  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 0)
72  rT = &(*i);
73  }
74 
75  return (rT);
76 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:94
L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 78 of file L1MuDTChambPhContainer.cc.

References mps_fire::i, and phiSegments.

Referenced by L1TMuonBarrelKalmanStubProcessor::makeInputPattern(), L1TMuonBarrelKalmanStubProcessor::makeStubs(), CSCTFDTReceiver::process(), AlignTrackSegments::run(), IOPrinter::run(), and L1TTwinMuxAlgorithm::run().

78  {
79  L1MuDTChambPhDigi const* rT = nullptr;
80 
81  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
82  if (step == i->bxNum() - 1 && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 1)
83  rT = &(*i);
84  }
85 
86  return (rT);
87 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:94
L1MuDTChambPhContainer::Phi_Container const * L1MuDTChambPhContainer::getContainer ( ) const
void L1MuDTChambPhContainer::setContainer ( Phi_Container  inputSegments)

Member Data Documentation

Phi_Container L1MuDTChambPhContainer::phiSegments
private