CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 ()
 
void setContainer (const Phi_Container &inputSegments)
 
 ~L1MuDTChambPhContainer ()
 

Private Attributes

Phi_Container phiSegments
 

Detailed Description

Definition at line 34 of file L1MuDTChambPhContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuDTChambPhContainer.h.

typedef Phi_Container::const_iterator L1MuDTChambPhContainer::Phi_iterator

Definition at line 39 of file L1MuDTChambPhContainer.h.

Constructor & Destructor Documentation

L1MuDTChambPhContainer::L1MuDTChambPhContainer ( )

Definition at line 36 of file L1MuDTChambPhContainer.cc.

36 {}
L1MuDTChambPhContainer::~L1MuDTChambPhContainer ( )

Definition at line 41 of file L1MuDTChambPhContainer.cc.

41 {}

Member Function Documentation

bool L1MuDTChambPhContainer::bxEmpty ( int  step) const

Definition at line 55 of file L1MuDTChambPhContainer.cc.

References relativeConstraints::empty, and i.

55  {
56 
57  bool empty = true;
58 
59  for ( Phi_iterator i = phiSegments.begin();
60  i != phiSegments.end();
61  i++ ) {
62  if (step == i->bxNum()) empty = false;
63  }
64 
65  return(empty);
66 }
int i
Definition: DBlmapReader.cc:9
Phi_Container::const_iterator Phi_iterator
int L1MuDTChambPhContainer::bxSize ( int  step1,
int  step2 
) const

Definition at line 68 of file L1MuDTChambPhContainer.cc.

References i, and findQualityFiles::size.

68  {
69 
70  int size = 0;
71 
72  for ( Phi_iterator i = phiSegments.begin();
73  i != phiSegments.end();
74  i++ ) {
75  if (step1 <= i->bxNum() && step2 >= i->bxNum()
76  && i->Ts2Tag() == 0 && i->code() != 7) size++;
77  if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1
78  && i->Ts2Tag() == 1 && i->code() != 7) size++;
79  }
80 
81  return(size);
82 }
int i
Definition: DBlmapReader.cc:9
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 84 of file L1MuDTChambPhContainer.cc.

References i.

Referenced by CSCTFDTReceiver::process().

84  {
85 
86  L1MuDTChambPhDigi const* rT=0;
87 
88  for ( Phi_iterator i = phiSegments.begin();
89  i != phiSegments.end();
90  i++ ) {
91  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
92  && stat == i->stNum() && i->Ts2Tag() == 0)
93  rT = &(*i);
94  }
95 
96  return(rT);
97 }
int i
Definition: DBlmapReader.cc:9
Phi_Container::const_iterator Phi_iterator
L1MuDTChambPhDigi const * L1MuDTChambPhContainer::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 99 of file L1MuDTChambPhContainer.cc.

References i.

Referenced by CSCTFDTReceiver::process().

99  {
100 
101  L1MuDTChambPhDigi const* rT=0;
102 
103  for ( Phi_iterator i = phiSegments.begin();
104  i != phiSegments.end();
105  i++ ) {
106  if (step == i->bxNum()-1 && wheel == i->whNum() && sect == i->scNum()
107  && stat == i->stNum() && i->Ts2Tag() == 1)
108  rT = &(*i);
109  }
110 
111  return(rT);
112 }
int i
Definition: DBlmapReader.cc:9
Phi_Container::const_iterator Phi_iterator
L1MuDTChambPhContainer::Phi_Container const * L1MuDTChambPhContainer::getContainer ( ) const

Definition at line 51 of file L1MuDTChambPhContainer.cc.

Referenced by OMTFinputMaker::processDT(), and l1t::stage2::unpacking().

51  {
52  return &phiSegments;
53 }
void L1MuDTChambPhContainer::setContainer ( const Phi_Container inputSegments)

Definition at line 46 of file L1MuDTChambPhContainer.cc.

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

46  {
47 
48  phiSegments = inputSegments;
49 }

Member Data Documentation

Phi_Container L1MuDTChambPhContainer::phiSegments
private

Definition at line 61 of file L1MuDTChambPhContainer.h.