Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
L1TMuonOverlap
interface
InternalObj.h
Go to the documentation of this file.
1
#ifndef InternalObj_H
2
#define InternalObj_H
3
4
#include <ostream>
5
6
struct
InternalObj
{
7
8
float
pt
,
eta
,
phi
;
9
float
disc
;
10
int
bx
,
q
,
charge
;
11
int
refLayer
;
12
int
hits
;
13
14
InternalObj
() :
pt
(-1.),
eta
(99.),
phi
(9999.),
disc
(-999),
bx
(0),
q
(-1),
charge
(99),
refLayer
(-1) {}
15
InternalObj
(
float
pt
,
float
eta
,
float
phi
,
16
float
disc
=-999,
int
bx
=0,
int
q
=-1,
17
int
charge
=99,
int
refLayer
=-1) :
18
pt(pt), eta(eta), phi(phi),
disc
(
disc
),
bx
(
bx
),
q
(
q
),
charge
(
charge
),
refLayer
(
refLayer
),
hits
(0) {}
19
20
bool
isValid
()
const
{
return
q
>= 0;}
21
22
bool
operator<
(
const
InternalObj
&
o
)
const
{
23
if
(
q
> o.
q
)
return
true
;
24
else
if
(
q
==o.
q
&&
disc
> o.
disc
)
return
true
;
25
else
return
false
;
26
27
}
28
29
friend
std::ostream &
operator<<
(std::ostream &
out
,
const
InternalObj
&
o
);
30
31
};
32
#endif
InternalObj::charge
int charge
Definition:
InternalObj.h:10
InternalObj::refLayer
int refLayer
Definition:
InternalObj.h:11
InternalObj::phi
float phi
Definition:
InternalObj.h:8
InternalObj::InternalObj
InternalObj(float pt, float eta, float phi, float disc=-999, int bx=0, int q=-1, int charge=99, int refLayer=-1)
Definition:
InternalObj.h:15
connectstrParser.o
string o
Definition:
connectstrParser.py:70
InternalObj::bx
int bx
Definition:
InternalObj.h:10
InternalObj
Definition:
InternalObj.h:6
GenerateHcalLaserBadRunList.out
tuple out
Definition:
GenerateHcalLaserBadRunList.py:91
InternalObj::isValid
bool isValid() const
Definition:
InternalObj.h:20
InternalObj::pt
float pt
Definition:
InternalObj.h:8
InternalObj::eta
float eta
Definition:
InternalObj.h:8
InternalObj::operator<
bool operator<(const InternalObj &o) const
Definition:
InternalObj.h:22
InternalObj::InternalObj
InternalObj()
Definition:
InternalObj.h:14
InternalObj::operator<<
friend std::ostream & operator<<(std::ostream &out, const InternalObj &o)
Definition:
InternalObj.cc:5
InternalObj::q
int q
Definition:
InternalObj.h:10
InternalObj::hits
int hits
Definition:
InternalObj.h:12
InternalObj::disc
float disc
Definition:
InternalObj.h:9
Generated for CMSSW Reference Manual by
1.8.5