CMS 3D CMS Logo

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

#include <L1MuDTChambThContainer.h>

Public Types

typedef std::vector< L1MuDTChambThDigiThe_Container
 
typedef The_Container::const_iterator The_iterator
 

Public Member Functions

bool bxEmpty (int step) const
 
int bxSize (int step1, int step2) const
 
L1MuDTChambThDigi const * chThetaSegm (int wheel, int stat, int sect, int bx) const
 
The_Container const * getContainer () const
 
 L1MuDTChambThContainer ()=default
 
 L1MuDTChambThContainer (The_Container)
 
void setContainer (The_Container inputSegments)
 
 ~L1MuDTChambThContainer ()=default
 

Private Attributes

The_Container theSegments
 

Detailed Description

Definition at line 34 of file L1MuDTChambThContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuDTChambThContainer.h.

typedef The_Container::const_iterator L1MuDTChambThContainer::The_iterator

Definition at line 39 of file L1MuDTChambThContainer.h.

Constructor & Destructor Documentation

L1MuDTChambThContainer::L1MuDTChambThContainer ( )
default
L1MuDTChambThContainer::L1MuDTChambThContainer ( The_Container  c)

Definition at line 36 of file L1MuDTChambThContainer.cc.

References eostools::move().

36  :
def move(src, dest)
Definition: eostools.py:511
L1MuDTChambThContainer::~L1MuDTChambThContainer ( )
default

Member Function Documentation

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 51 of file L1MuDTChambThContainer.cc.

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

51  {
52 
53  bool empty = true;
54 
55  for ( The_iterator i = theSegments.begin();
56  i != theSegments.end();
57  i++ ) {
58  if (step == i->bxNum()) empty = false;
59  }
60 
61  return(empty);
62 }
The_Container::const_iterator The_iterator
step
Definition: StallMonitor.cc:94
int L1MuDTChambThContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 64 of file L1MuDTChambThContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

64  {
65 
66  int size = 0;
67 
68  for ( The_iterator i = theSegments.begin();
69  i != theSegments.end();
70  i++ ) {
71  if (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
72  }
73 
74  return(size);
75 }
size
Write out results.
The_Container::const_iterator The_iterator
L1MuDTChambThDigi const * L1MuDTChambThContainer::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 77 of file L1MuDTChambThContainer.cc.

References mps_fire::i, and theSegments.

Referenced by L1TMuon::DTCollector::extractPrimitives(), AngleConverter::findBTIgroup(), AngleConverter::getGlobalEta(), L1TMuonBarrelKalmanStubProcessor::makeInputPattern(), L1TMuonBarrelKalmanStubProcessor::makeStubs(), L1MuDTEtaProcessor::receiveData(), and L1MuBMEtaProcessor::receiveData().

77  {
78 
79  L1MuDTChambThDigi const* rT=nullptr;
80 
81  for ( The_iterator i = theSegments.begin();
82  i != theSegments.end();
83  i++ ) {
84  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
85  && stat == i->stNum() )
86  rT = &(*i);
87  }
88 
89  return(rT);
90 }
The_Container::const_iterator The_iterator
step
Definition: StallMonitor.cc:94
L1MuDTChambThContainer::The_Container const * L1MuDTChambThContainer::getContainer ( ) const
void L1MuDTChambThContainer::setContainer ( The_Container  inputSegments)

Definition at line 42 of file L1MuDTChambThContainer.cc.

References eostools::move(), and theSegments.

Referenced by l1t::stage2::unpacking_bmtf().

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

Member Data Documentation

The_Container L1MuDTChambThContainer::theSegments
private

Definition at line 60 of file L1MuDTChambThContainer.h.

Referenced by bxEmpty(), bxSize(), chThetaSegm(), getContainer(), and setContainer().