Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1TMuonOverlap
src
AlgoMuon.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TMuonOverlap/interface/AlgoMuon.h
"
2
3
#include <bitset>
4
#include <iostream>
5
6
bool
AlgoMuon::isValid
()
const
{
return
m_q
>= 0; }
7
8
bool
AlgoMuon::operator<
(
const
AlgoMuon
&
o
)
const
{
9
if
(this->
getQ
() > o.
getQ
())
10
return
false
;
11
else
if
(this->
getQ
() == o.
getQ
() && this->
getDisc
() > o.
getDisc
())
12
return
false
;
13
else
if
(
getQ
() == o.
getQ
() &&
getDisc
() == o.
getDisc
() &&
getPatternNumber
() > o.
getPatternNumber
())
14
return
false
;
15
else
if
(
getQ
() == o.
getQ
() &&
getDisc
() == o.
getDisc
() &&
getPatternNumber
() == o.
getPatternNumber
() &&
16
getRefHitNumber
() < o.
getRefHitNumber
())
17
return
false
;
18
else
19
return
true
;
20
}
21
22
std::ostream &
operator<<
(std::ostream &
out
,
const
AlgoMuon
&
o
) {
23
out <<
"AlgoMuon: "
;
24
out <<
" pt: "
<< o.
getPt
() <<
", phi: "
<< o.
getPhi
() <<
", eta: "
<< o.
getEta
() * 2.61 / 240
25
<<
", hits: "
<< std::bitset<18>(o.
getHits
()).to_string() <<
", q: "
<< o.
getQ
() <<
", bx: "
<< o.
getBx
()
26
<<
", charge: "
<< o.
getCharge
() <<
", disc: "
<< o.
getDisc
() <<
" refLayer: "
<< o.
getRefLayer
();
27
28
return
out
;
29
}
AlgoMuon::getCharge
int getCharge() const
Definition:
AlgoMuon.h:42
AlgoMuon::getEta
int getEta() const
Definition:
AlgoMuon.h:36
AlgoMuon::getQ
int getQ() const
Definition:
AlgoMuon.h:39
AlgoMuon::isValid
bool isValid() const
Definition:
AlgoMuon.cc:6
AlgoMuon
Definition:
AlgoMuon.h:6
AlgoMuon::getRefHitNumber
unsigned int getRefHitNumber() const
Definition:
AlgoMuon.h:45
AlgoMuon::m_q
int m_q
Definition:
AlgoMuon.h:72
AlgoMuon::getDisc
int getDisc() const
Definition:
AlgoMuon.h:34
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
AlgoMuon::getBx
int getBx() const
Definition:
AlgoMuon.h:40
AlgoMuon::getRefLayer
int getRefLayer() const
Definition:
AlgoMuon.h:37
AlgoMuon::operator<<
friend std::ostream & operator<<(std::ostream &out, const AlgoMuon &o)
Definition:
AlgoMuon.cc:22
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
AlgoMuon::getHits
int getHits() const
Definition:
AlgoMuon.h:38
AlgoMuon::operator<
bool operator<(const AlgoMuon &o) const
Definition:
AlgoMuon.cc:8
AlgoMuon::getPt
int getPt() const
Definition:
AlgoMuon.h:41
AlgoMuon::getPatternNumber
unsigned int getPatternNumber() const
Definition:
AlgoMuon.h:44
AlgoMuon::getPhi
int getPhi() const
Definition:
AlgoMuon.h:35
AlgoMuon.h
Generated for CMSSW Reference Manual by
1.8.11