CMS 3D CMS Logo

L1MuDTChambPhContainer.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class L1MuDTChambPhContainer
4 //
5 // Description: input data for PHTF trigger
6 //
7 //
8 // Author List: Jorge Troconiz UAM Madrid
9 //
10 //
11 //--------------------------------------------------
12 
13 //-----------------------
14 // This Class's Header --
15 //-----------------------
17 
18 //-------------------------------
19 // Collaborating Class Headers --
20 //-------------------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 using namespace std;
26 
27 //-------------------
28 // Initializations --
29 //-------------------
30 
31 //----------------
32 // Constructors --
33 //----------------
35 
36 //--------------
37 // Operations --
38 //--------------
40 
42 
44  bool empty = true;
45 
46  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
47  if (step == i->bxNum())
48  empty = false;
49  }
50 
51  return (empty);
52 }
53 
54 int L1MuDTChambPhContainer::bxSize(int step1, int step2) const {
55  int size = 0;
56 
57  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
58  if (step1 <= i->bxNum() && step2 >= i->bxNum() && i->Ts2Tag() == 0 && i->code() != 7)
59  size++;
60  if (step1 <= i->bxNum() - 1 && step2 >= i->bxNum() - 1 && i->Ts2Tag() == 1 && i->code() != 7)
61  size++;
62  }
63 
64  return (size);
65 }
66 
67 L1MuDTChambPhDigi const* L1MuDTChambPhContainer::chPhiSegm1(int wheel, int stat, int sect, int step) const {
68  L1MuDTChambPhDigi const* rT = nullptr;
69 
70  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
71  if (step == i->bxNum() && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 0)
72  rT = &(*i);
73  }
74 
75  return (rT);
76 }
77 
78 L1MuDTChambPhDigi const* L1MuDTChambPhContainer::chPhiSegm2(int wheel, int stat, int sect, int step) const {
79  L1MuDTChambPhDigi const* rT = nullptr;
80 
81  for (Phi_iterator i = phiSegments.begin(); i != phiSegments.end(); i++) {
82  if (step == i->bxNum() - 1 && wheel == i->whNum() && sect == i->scNum() && stat == i->stNum() && i->Ts2Tag() == 1)
83  rT = &(*i);
84  }
85 
86  return (rT);
87 }
mps_fire.i
i
Definition: mps_fire.py:355
step
step
Definition: StallMonitor.cc:94
L1MuDTChambPhContainer::chPhiSegm1
L1MuDTChambPhDigi const * chPhiSegm1(int wheel, int stat, int sect, int bx) const
Definition: L1MuDTChambPhContainer.cc:67
L1MuDTChambPhContainer::getContainer
Phi_Container const * getContainer() const
Definition: L1MuDTChambPhContainer.cc:41
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1111
L1MuDTChambPhContainer::setContainer
void setContainer(Phi_Container inputSegments)
Definition: L1MuDTChambPhContainer.cc:39
L1MuDTChambPhContainer::phiSegments
Phi_Container phiSegments
Definition: L1MuDTChambPhContainer.h:58
L1MuDTChambPhContainer::L1MuDTChambPhContainer
L1MuDTChambPhContainer()=default
L1MuDTChambPhContainer::chPhiSegm2
L1MuDTChambPhDigi const * chPhiSegm2(int wheel, int stat, int sect, int bx) const
Definition: L1MuDTChambPhContainer.cc:78
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
L1MuDTChambPhContainer::Phi_iterator
Phi_Container::const_iterator Phi_iterator
Definition: L1MuDTChambPhContainer.h:36
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
L1MuDTChambPhContainer.h
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
L1MuDTChambPhContainer::Phi_Container
std::vector< L1MuDTChambPhDigi > Phi_Container
Definition: L1MuDTChambPhContainer.h:35
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
L1MuDTChambPhContainer::bxEmpty
bool bxEmpty(int step) const
Definition: L1MuDTChambPhContainer.cc:43
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
L1MuDTChambPhContainer::bxSize
int bxSize(int step1, int step2) const
Definition: L1MuDTChambPhContainer.cc:54
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443