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
{
7
return
m_q
>= 0;
8
}
9
10
bool
AlgoMuon::operator<
(
const
AlgoMuon
&
o
)
const
{
11
if
(this->
getQ
() > o.
getQ
())
return
false
;
12
else
if
(this->
getQ
()==o.
getQ
() && this->
getDisc
() > o.
getDisc
())
return
false
;
13
else
if
(
getQ
()==o.
getQ
() &&
getDisc
() == o.
getDisc
() &&
getPatternNumber
() > o.
getPatternNumber
() )
return
false
;
14
else
if
(
getQ
()==o.
getQ
() &&
getDisc
() == o.
getDisc
() &&
getPatternNumber
() == o.
getPatternNumber
() &&
getRefHitNumber
() < o.
getRefHitNumber
())
return
false
;
15
else
return
true
;
16
}
17
18
std::ostream &
operator<<
(std::ostream &
out
,
const
AlgoMuon
&
o
){
19
out <<
"AlgoMuon: "
;
20
out <<
" pt: "
<< o.
getPt
()
21
<<
", phi: "
<< o.
getPhi
()
22
<<
", eta: "
<< o.
getEta
()*2.61/240
23
<<
", hits: "
<< std::bitset<18>(o.
getHits
()).to_string()
24
<<
", q: "
<< o.
getQ
()
25
<<
", bx: "
<< o.
getBx
()
26
<<
", charge: "
<< o.
getCharge
()
27
<<
", disc: "
<< o.
getDisc
() <<
" refLayer: "
<< o.
getRefLayer
();
28
29
return
out
;
30
}
AlgoMuon::getCharge
int getCharge() const
Definition:
AlgoMuon.h:28
AlgoMuon::getEta
int getEta() const
Definition:
AlgoMuon.h:22
AlgoMuon::getQ
int getQ() const
Definition:
AlgoMuon.h:25
AlgoMuon::isValid
bool isValid() const
Definition:
AlgoMuon.cc:6
AlgoMuon
Definition:
AlgoMuon.h:6
AlgoMuon::getRefHitNumber
unsigned int getRefHitNumber() const
Definition:
AlgoMuon.h:31
AlgoMuon::m_q
int m_q
Definition:
AlgoMuon.h:59
AlgoMuon::getDisc
int getDisc() const
Definition:
AlgoMuon.h:20
AlgoMuon::getBx
int getBx() const
Definition:
AlgoMuon.h:26
AlgoMuon::getRefLayer
int getRefLayer() const
Definition:
AlgoMuon.h:23
AlgoMuon::operator<<
friend std::ostream & operator<<(std::ostream &out, const AlgoMuon &o)
Definition:
AlgoMuon.cc:18
connectstrParser.o
o
Definition:
connectstrParser.py:72
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
AlgoMuon::getHits
int getHits() const
Definition:
AlgoMuon.h:24
AlgoMuon::operator<
bool operator<(const AlgoMuon &o) const
Definition:
AlgoMuon.cc:10
AlgoMuon::getPt
int getPt() const
Definition:
AlgoMuon.h:27
AlgoMuon::getPatternNumber
unsigned int getPatternNumber() const
Definition:
AlgoMuon.h:30
AlgoMuon::getPhi
int getPhi() const
Definition:
AlgoMuon.h:21
AlgoMuon.h
Generated for CMSSW Reference Manual by
1.8.11