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 33 of file L1MuTMChambPhContainer.h.

Member Typedef Documentation

◆ Phi_Container

Definition at line 35 of file L1MuTMChambPhContainer.h.

◆ Phi_iterator

typedef Phi_Container::const_iterator L1MuTMChambPhContainer::Phi_iterator

Definition at line 36 of file L1MuTMChambPhContainer.h.

Constructor & Destructor Documentation

◆ L1MuTMChambPhContainer()

L1MuTMChambPhContainer::L1MuTMChambPhContainer ( )

Definition at line 34 of file L1MuTMChambPhContainer.cc.

34 {}

◆ ~L1MuTMChambPhContainer()

L1MuTMChambPhContainer::~L1MuTMChambPhContainer ( )

Definition at line 39 of file L1MuTMChambPhContainer.cc.

39 {}

Member Function Documentation

◆ bxEmpty()

bool L1MuTMChambPhContainer::bxEmpty ( int  step) const

Definition at line 48 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

48  {
49  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
50  if (step == i->bxNum())
51  return false;
52  }
53 
54  return true;
55 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:83

◆ bxSize()

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

Definition at line 57 of file L1MuTMChambPhContainer.cc.

References mps_fire::i.

57  {
58  int size = 0;
59 
60  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
61  if (step1 <= i->bxNum() && step2 >= i->bxNum() && i->Ts2Tag() == 0 && i->code() != 7)
62  size++;
63  if (step1 <= i->bxNum() - 1 && step2 >= i->bxNum() - 1 && i->Ts2Tag() == 1 && i->code() != 7)
64  size++;
65  }
66 
67  return (size);
68 }
size
Write out results.
Phi_Container::const_iterator Phi_iterator

◆ chPhiSegm()

L1MuDTChambPhDigi * L1MuTMChambPhContainer::chPhiSegm ( int  wheel,
int  stat,
int  sect,
int  bx,
int  ts2tag 
)

Definition at line 92 of file L1MuTMChambPhContainer.cc.

References mps_fire::i, and makeMuonMisalignmentScenario::wheel.

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

92  {
93  L1MuDTChambPhDigi* rT = nullptr;
94  for (Phi_Container::iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
95  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == ts2tag)
96  rT = &(*i);
97  }
98 
99  return (rT);
100 }
step
Definition: StallMonitor.cc:83

◆ chPhiSegm1()

L1MuDTChambPhDigi const * L1MuTMChambPhContainer::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 70 of file L1MuTMChambPhContainer.cc.

References mps_fire::i, and makeMuonMisalignmentScenario::wheel.

70  {
71  L1MuDTChambPhDigi const* rT = nullptr;
72 
73  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
74  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 0)
75  rT = &(*i);
76  }
77 
78  return (rT);
79 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:83

◆ chPhiSegm2()

L1MuDTChambPhDigi const * L1MuTMChambPhContainer::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  bx 
) const

Definition at line 81 of file L1MuTMChambPhContainer.cc.

References mps_fire::i, and makeMuonMisalignmentScenario::wheel.

81  {
82  L1MuDTChambPhDigi const* rT = nullptr;
83 
84  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
85  if (step == i->bxNum() - 1 && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 1)
86  rT = &(*i);
87  }
88 
89  return (rT);
90 }
Phi_Container::const_iterator Phi_iterator
step
Definition: StallMonitor.cc:83

◆ getContainer()

L1MuTMChambPhContainer::Phi_Container const * L1MuTMChambPhContainer::getContainer ( ) const

Definition at line 46 of file L1MuTMChambPhContainer.cc.

Referenced by DTRPCBxCorrection::nRPCHits().

46 { return &phiSegments; }

◆ setContainer()

void L1MuTMChambPhContainer::setContainer ( const Phi_Container inputSegments)

Definition at line 44 of file L1MuTMChambPhContainer.cc.

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

44 { phiSegments = inputSegments; }

Member Data Documentation

◆ phiSegments

Phi_Container L1MuTMChambPhContainer::phiSegments
private

Definition at line 59 of file L1MuTMChambPhContainer.h.