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
 
L1MuDTChambPhDigichPhiSegm1 (int wheel, int stat, int sect, int bx) const
 
L1MuDTChambPhDigichPhiSegm2 (int wheel, int stat, int sect, int bx) const
 
Phi_ContainergetContainer () 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 60 of file L1MuDTChambPhContainer.cc.

References relativeConstraints::empty, and i.

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

Definition at line 73 of file L1MuDTChambPhContainer.cc.

References i, and findQualityFiles::size.

73  {
74 
75  int size = 0;
76 
77  for ( Phi_iterator i = phiSegments.begin();
78  i != phiSegments.end();
79  i++ ) {
80  if (step1 <= i->bxNum() && step2 >= i->bxNum()
81  && i->Ts2Tag() == 0 && i->code() != 7) size++;
82  if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1
83  && i->Ts2Tag() == 1 && i->code() != 7) size++;
84  }
85 
86  return(size);
87 }
int i
Definition: DBlmapReader.cc:9
Phi_Container::const_iterator Phi_iterator
tuple size
Write out results.
L1MuDTChambPhDigi * L1MuDTChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 89 of file L1MuDTChambPhContainer.cc.

References i.

Referenced by CSCTFDTReceiver::process().

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

Definition at line 104 of file L1MuDTChambPhContainer.cc.

References i.

Referenced by CSCTFDTReceiver::process().

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

Definition at line 51 of file L1MuDTChambPhContainer.cc.

51  {
52 
53  Phi_Container* rT=0;
54 
55  rT = const_cast<Phi_Container*>(&phiSegments);
56 
57  return(rT);
58 }
std::vector< L1MuDTChambPhDigi > Phi_Container
void L1MuDTChambPhContainer::setContainer ( const Phi_Container inputSegments)

Definition at line 46 of file L1MuDTChambPhContainer.cc.

46  {
47 
48  phiSegments = inputSegments;
49 }

Member Data Documentation

Phi_Container L1MuDTChambPhContainer::phiSegments
private

Definition at line 61 of file L1MuDTChambPhContainer.h.