CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1MuTMChambPhContainer Class Reference

#include <L1MuTMChambPhContainer.h>

Public Types

typedef std::vector< L1MuDTChambPhDigiPhi_Container
 
typedef Phi_Container::const_iterator Phi_iterator
 

Public Member Functions

bool bxEmpty (int step) const
 
int bxSize (int step1, int step2) const
 
L1MuDTChambPhDigichPhiSegm (int wheel, int stat, int sect, int bx, int ts2tag)
 
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
 
 L1MuTMChambPhContainer ()
 
void setContainer (const Phi_Container &inputSegments)
 
 ~L1MuTMChambPhContainer ()
 

Private Attributes

Phi_Container phiSegments
 

Detailed Description

Definition at line 34 of file L1MuTMChambPhContainer.h.

Member Typedef Documentation

Definition at line 38 of file L1MuTMChambPhContainer.h.

typedef Phi_Container::const_iterator L1MuTMChambPhContainer::Phi_iterator

Definition at line 39 of file L1MuTMChambPhContainer.h.

Constructor & Destructor Documentation

L1MuTMChambPhContainer::L1MuTMChambPhContainer ( )

Definition at line 36 of file L1MuTMChambPhContainer.cc.

36 {}
L1MuTMChambPhContainer::~L1MuTMChambPhContainer ( )

Definition at line 41 of file L1MuTMChambPhContainer.cc.

41 {}

Member Function Documentation

bool L1MuTMChambPhContainer::bxEmpty ( int  step) const

Definition at line 55 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

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

Definition at line 66 of file L1MuTMChambPhContainer.cc.

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

66  {
67 
68  int size = 0;
69 
70  for ( Phi_iterator i = phiSegments.begin();
71  i != phiSegments.end();
72  i++ ) {
73  if (step1 <= i->bxNum() && step2 >= i->bxNum()
74  && i->Ts2Tag() == 0 && i->code() != 7) size++;
75  if (step1 <= i->bxNum()-1 && step2 >= i->bxNum()-1
76  && i->Ts2Tag() == 1 && i->code() != 7) size++;
77  }
78 
79  return(size);
80 }
size
Write out results.
Phi_Container::const_iterator Phi_iterator
L1MuDTChambPhDigi * L1MuTMChambPhContainer::chPhiSegm ( int  wheel,
int  stat,
int  sect,
int  bx,
int  ts2tag 
)

Definition at line 113 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

Referenced by DTRPCBxCorrection::BxCorrection(), and IOPrinter::run().

113  {
114 
115 
116  L1MuDTChambPhDigi * rT=nullptr;
117  for ( Phi_Container::iterator i = phiSegments.begin();
118  i != phiSegments.end();
119  i++ ) {
120  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum()
121  && stat == i->stNum() && i->Ts2Tag() == ts2tag)
122  rT = &(*i);
123  }
124 
125  return(rT);
126 }
step
L1MuDTChambPhDigi const * L1MuTMChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 82 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

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

Definition at line 97 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

97  {
98 
99  L1MuDTChambPhDigi const* rT=nullptr;
100 
101  for ( Phi_iterator i = phiSegments.begin();
102  i != phiSegments.end();
103  i++ ) {
104  if (step == i->bxNum()-1 && wheel == i->whNum() && sect == i->scNum()
105  && stat == i->stNum() && i->Ts2Tag() == 1)
106  rT = &(*i);
107  }
108 
109  return(rT);
110 }
Phi_Container::const_iterator Phi_iterator
step
L1MuTMChambPhContainer::Phi_Container const * L1MuTMChambPhContainer::getContainer ( ) const

Definition at line 51 of file L1MuTMChambPhContainer.cc.

Referenced by DTRPCBxCorrection::nRPCHits().

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

Definition at line 46 of file L1MuTMChambPhContainer.cc.

Referenced by DTRPCBxCorrection::BxCorrection(), and IOPrinter::run().

46  {
47 
48  phiSegments = inputSegments;
49 }

Member Data Documentation

Phi_Container L1MuTMChambPhContainer::phiSegments
private

Definition at line 63 of file L1MuTMChambPhContainer.h.