Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
return
true
;
14
}
15
16
std::ostream &
operator<<
(std::ostream &
out
,
const
AlgoMuon
&
o
){
17
out <<
"AlgoMuon: "
;
18
out <<
" pt: "
<< o.
getPt
()
19
<<
", phi: "
<< o.
getPhi
()
20
<<
", eta: "
<< o.
getEta
()*2.61/240
21
<<
", hits: "
<< std::bitset<18>(o.
getHits
()).to_string()
22
<<
", q: "
<< o.
getQ
()
23
<<
", bx: "
<< o.
getBx
()
24
<<
", charge: "
<< o.
getCharge
()
25
<<
", disc: "
<< o.
getDisc
() <<
" refLayer: "
<< o.
getRefLayer
();
26
27
return
out
;
28
}
AlgoMuon::getCharge
int getCharge() const
Definition:
AlgoMuon.h:25
AlgoMuon::getEta
int getEta() const
Definition:
AlgoMuon.h:19
AlgoMuon::getQ
int getQ() const
Definition:
AlgoMuon.h:22
AlgoMuon::isValid
bool isValid() const
Definition:
AlgoMuon.cc:6
AlgoMuon
Definition:
AlgoMuon.h:6
connectstrParser.o
string o
Definition:
connectstrParser.py:70
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
AlgoMuon::m_q
int m_q
Definition:
AlgoMuon.h:52
AlgoMuon::getDisc
int getDisc() const
Definition:
AlgoMuon.h:17
AlgoMuon::getBx
int getBx() const
Definition:
AlgoMuon.h:23
AlgoMuon::getRefLayer
int getRefLayer() const
Definition:
AlgoMuon.h:20
GenerateHcalLaserBadRunList.out
tuple out
Definition:
GenerateHcalLaserBadRunList.py:91
AlgoMuon::getHits
int getHits() const
Definition:
AlgoMuon.h:21
AlgoMuon::operator<
bool operator<(const AlgoMuon &o) const
Definition:
AlgoMuon.cc:10
AlgoMuon::getPt
int getPt() const
Definition:
AlgoMuon.h:24
AlgoMuon::getPhi
int getPhi() const
Definition:
AlgoMuon.h:18
AlgoMuon.h
Generated for CMSSW Reference Manual by
1.8.5