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

Member Typedef Documentation

◆ The_Container

Definition at line 35 of file L1MuDTChambThContainer.h.

◆ The_iterator

typedef The_Container::const_iterator L1MuDTChambThContainer::The_iterator

Definition at line 36 of file L1MuDTChambThContainer.h.

Constructor & Destructor Documentation

◆ L1MuDTChambThContainer() [1/2]

L1MuDTChambThContainer::L1MuDTChambThContainer ( )
default

◆ L1MuDTChambThContainer() [2/2]

L1MuDTChambThContainer::L1MuDTChambThContainer ( The_Container  c)

Definition at line 34 of file L1MuDTChambThContainer.cc.

References c, and eostools::move().

34 : theSegments{std::move(c)} {}
def move(src, dest)
Definition: eostools.py:511

◆ ~L1MuDTChambThContainer()

L1MuDTChambThContainer::~L1MuDTChambThContainer ( )
default

Member Function Documentation

◆ bxEmpty()

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 43 of file L1MuDTChambThContainer.cc.

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

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

◆ bxSize()

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

Definition at line 54 of file L1MuDTChambThContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

54  {
55  int size = 0;
56 
57  for (The_iterator i = theSegments.begin(); i != theSegments.end(); i++) {
58  if (step1 <= i->bxNum() && step2 >= i->bxNum())
59  size++;
60  }
61 
62  return (size);
63 }
size
Write out results.
The_Container::const_iterator The_iterator

◆ chThetaSegm()

L1MuDTChambThDigi const * L1MuDTChambThContainer::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

◆ getContainer()

L1MuDTChambThContainer::The_Container const * L1MuDTChambThContainer::getContainer ( ) const

◆ setContainer()

void L1MuDTChambThContainer::setContainer ( The_Container  inputSegments)

Definition at line 39 of file L1MuDTChambThContainer.cc.

References eostools::move(), and theSegments.

Referenced by L1TTwinMuxProducer::produce(), and l1t::stage2::unpacking_bmtf().

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

Member Data Documentation

◆ theSegments

The_Container L1MuDTChambThContainer::theSegments
private

Definition at line 56 of file L1MuDTChambThContainer.h.

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