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 ()
 
void setContainer (const The_Container &inputSegments)
 
 ~L1MuDTChambThContainer ()
 

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

Definition at line 36 of file L1MuDTChambThContainer.cc.

36 {}
L1MuDTChambThContainer::~L1MuDTChambThContainer ( )

Definition at line 41 of file L1MuDTChambThContainer.cc.

41 {}

Member Function Documentation

bool L1MuDTChambThContainer::bxEmpty ( int  step) const

Definition at line 55 of file L1MuDTChambThContainer.cc.

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

55  {
56 
57  bool empty = true;
58 
59  for ( The_iterator i = theSegments.begin();
60  i != theSegments.end();
61  i++ ) {
62  if (step == i->bxNum()) empty = false;
63  }
64 
65  return(empty);
66 }
The_Container::const_iterator The_iterator
step
int L1MuDTChambThContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 68 of file L1MuDTChambThContainer.cc.

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

Referenced by DTTFFEDSim::fillRawData().

68  {
69 
70  int size = 0;
71 
72  for ( The_iterator i = theSegments.begin();
73  i != theSegments.end();
74  i++ ) {
75  if (step1 <= i->bxNum() && step2 >= i->bxNum()) size++;
76  }
77 
78  return(size);
79 }
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 81 of file L1MuDTChambThContainer.cc.

References mps_fire::i.

Referenced by L1TMuon::DTCollector::DTCollector(), L1TwinMux::DTCollector::DTCollector(), AngleConverter::findBTIgroup(), AngleConverter::getGlobalEta(), L1MuDTEtaProcessor::receiveData(), and L1MuBMEtaProcessor::receiveData().

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

Definition at line 46 of file L1MuDTChambThContainer.cc.

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

46  {
47 
48  theSegments = inputSegments;
49 }

Member Data Documentation

The_Container L1MuDTChambThContainer::theSegments
private

Definition at line 59 of file L1MuDTChambThContainer.h.