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.

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 }

References mps_fire::i.

◆ bxSize()

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

Definition at line 57 of file L1MuTMChambPhContainer.cc.

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 }

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

◆ chPhiSegm()

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

Definition at line 92 of file L1MuTMChambPhContainer.cc.

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 }

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

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

◆ chPhiSegm1()

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

Definition at line 70 of file L1MuTMChambPhContainer.cc.

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 }

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

◆ chPhiSegm2()

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

Definition at line 81 of file L1MuTMChambPhContainer.cc.

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 }

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

◆ getContainer()

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

Definition at line 46 of file L1MuTMChambPhContainer.cc.

46 { return &phiSegments; }

Referenced by DTRPCBxCorrection::nRPCHits().

◆ setContainer()

void L1MuTMChambPhContainer::setContainer ( const Phi_Container inputSegments)

Definition at line 44 of file L1MuTMChambPhContainer.cc.

44 { phiSegments = inputSegments; }

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

Member Data Documentation

◆ phiSegments

Phi_Container L1MuTMChambPhContainer::phiSegments
private

Definition at line 59 of file L1MuTMChambPhContainer.h.

mps_fire.i
i
Definition: mps_fire.py:428
step
step
Definition: StallMonitor.cc:94
L1MuTMChambPhContainer::Phi_iterator
Phi_Container::const_iterator Phi_iterator
Definition: L1MuTMChambPhContainer.h:36
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
L1MuTMChambPhContainer::phiSegments
Phi_Container phiSegments
Definition: L1MuTMChambPhContainer.h:59
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443