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.

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

References HltBtagPostValidation_cff::c, and eostools::move().

◆ ~L1MuDTChambThContainer()

L1MuDTChambThContainer::~L1MuDTChambThContainer ( )
default

Member Function Documentation

◆ bxEmpty()

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 43 of file L1MuDTChambThContainer.cc.

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 }

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

◆ bxSize()

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

Definition at line 54 of file L1MuDTChambThContainer.cc.

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 }

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

Referenced by DTTFFEDSim::fillRawData().

◆ 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.

39 { theSegments = std::move(inputSegments); }

References eostools::move(), and theSegments.

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

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().

mps_fire.i
i
Definition: mps_fire.py:428
step
step
Definition: StallMonitor.cc:94
L1MuDTChambThContainer::The_iterator
The_Container::const_iterator The_iterator
Definition: L1MuDTChambThContainer.h:36
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1119
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
eostools.move
def move(src, dest)
Definition: eostools.py:511
L1MuDTChambThDigi
Definition: L1MuDTChambThDigi.h:33
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
L1MuDTChambThContainer::theSegments
The_Container theSegments
Definition: L1MuDTChambThContainer.h:56
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443