RecoMuon
Navigation
interface
MuonEtaRange.h
Go to the documentation of this file.
1
#ifndef Navigation_MuonEtaRange_H
2
#define Navigation_MuonEtaRange_H
3
15
class
MuonEtaRange
{
16
public
:
17
MuonEtaRange
();
18
MuonEtaRange
(
float
max
,
float
min
);
19
MuonEtaRange
(
const
MuonEtaRange
&);
20
~MuonEtaRange
() {}
21
MuonEtaRange
&
operator=
(
const
MuonEtaRange
&);
22
inline
float
min
()
const
{
return
theMin
; }
23
inline
float
max
()
const
{
return
theMax
; }
24
bool
isInside
(
float
eta
,
float
error
= 0.)
const
;
25
bool
isInside
(
const
MuonEtaRange
&
range
)
const
;
26
bool
isCompatible
(
const
MuonEtaRange
&
range
)
const
;
27
MuonEtaRange
add
(
const
MuonEtaRange
&)
const
;
28
MuonEtaRange
minRange
(
const
MuonEtaRange
&)
const
;
29
MuonEtaRange
subtract
(
const
MuonEtaRange
&)
const
;
30
31
private
:
32
float
theMin
;
33
float
theMax
;
34
};
35
#include <iostream>
36
inline
std::ostream&
operator<<
(std::ostream& os,
const
MuonEtaRange
&
range
) {
37
os <<
"("
<<
range
.min() <<
" : "
<<
range
.max() <<
")"
;
38
return
os;
39
}
40
41
#endif
FastTimerService_cff.range
range
Definition:
FastTimerService_cff.py:34
MuonEtaRange::MuonEtaRange
MuonEtaRange()
Definition:
MuonEtaRange.cc:16
MuonEtaRange::isInside
bool isInside(float eta, float error=0.) const
Definition:
MuonEtaRange.cc:39
MuonEtaRange::operator=
MuonEtaRange & operator=(const MuonEtaRange &)
Assignment operator.
Definition:
MuonEtaRange.cc:31
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
MuonEtaRange::subtract
MuonEtaRange subtract(const MuonEtaRange &) const
create new range of size this minus range
Definition:
MuonEtaRange.cc:63
MuonEtaRange::theMin
float theMin
Definition:
MuonEtaRange.h:32
MuonEtaRange::max
float max() const
Definition:
MuonEtaRange.h:23
MuonEtaRange
Definition:
MuonEtaRange.h:15
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
operator<<
std::ostream & operator<<(std::ostream &os, const MuonEtaRange &range)
Definition:
MuonEtaRange.h:36
MuonEtaRange::theMax
float theMax
Definition:
MuonEtaRange.h:33
MuonEtaRange::add
MuonEtaRange add(const MuonEtaRange &) const
create maximum of ranges
Definition:
MuonEtaRange.cc:57
MuonEtaRange::min
float min() const
Definition:
MuonEtaRange.h:22
MuonEtaRange::minRange
MuonEtaRange minRange(const MuonEtaRange &) const
MuonEtaRange::~MuonEtaRange
~MuonEtaRange()
Definition:
MuonEtaRange.h:20
MuonEtaRange::isCompatible
bool isCompatible(const MuonEtaRange &range) const
true if this overlaps with range
Definition:
MuonEtaRange.cc:51
Generated for CMSSW Reference Manual by
1.8.16