Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoLocalMuon
GEMRecHit
src
GEMCluster.cc
Go to the documentation of this file.
1
#include "
GEMCluster.h
"
2
#include <iostream>
3
#include <fstream>
4
5
using namespace
std;
6
7
GEMCluster::GEMCluster
() : fstrip(0), lstrip(0), bunchx(0)
8
{
9
}
10
11
GEMCluster::GEMCluster
(
int
fs,
int
ls
,
int
bx) :
12
fstrip(fs), lstrip(ls), bunchx(bx)
13
{
14
}
15
16
GEMCluster::~GEMCluster
()
17
{
18
}
19
20
int
21
GEMCluster::firstStrip
()
const
22
{
23
return
fstrip
;
24
}
25
26
int
27
GEMCluster::lastStrip
()
const
28
{
29
return
lstrip
;
30
}
31
32
int
33
GEMCluster::clusterSize
()
const
34
{
35
return
-(
fstrip
-
lstrip
)+1;
36
}
37
38
int
39
GEMCluster::bx
()
const
40
{
41
return
bunchx
;
42
}
43
44
bool
GEMCluster::isAdjacent
(
const
GEMCluster
&
cl
)
const
{
45
46
return
((cl.
firstStrip
() == this->
firstStrip
()-1) &&
47
(cl.
bx
() == this->
bx
()));
48
}
49
50
void
GEMCluster::merge
(
const
GEMCluster
&
cl
){
51
52
if
(this->
isAdjacent
(cl))
53
{
54
fstrip
= cl.
firstStrip
();
55
}
56
}
57
58
bool
GEMCluster::operator<
(
const
GEMCluster
&
cl
)
const
{
59
60
if
(cl.
bx
() == this->
bx
())
61
return
cl.
firstStrip
()<this->
firstStrip
();
62
else
63
return
cl.
bx
()<this->
bx
();
64
}
65
66
bool
67
GEMCluster::operator==
(
const
GEMCluster
&
cl
)
const
{
68
return
( (this->
clusterSize
() == cl.
clusterSize
()) &&
69
(this->
bx
() == cl.
bx
()) &&
70
(this->
firstStrip
() == cl.
firstStrip
()) );
71
}
GEMCluster.h
GEMCluster::bunchx
int16_t bunchx
Definition:
GEMCluster.h:24
GEMCluster::merge
void merge(const GEMCluster &cl)
Definition:
GEMCluster.cc:50
GEMCluster::~GEMCluster
~GEMCluster()
Definition:
GEMCluster.cc:16
GEMCluster::operator<
bool operator<(const GEMCluster &cl) const
Definition:
GEMCluster.cc:58
GEMCluster
Definition:
GEMCluster.h:4
GEMCluster::GEMCluster
GEMCluster()
Definition:
GEMCluster.cc:7
GEMCluster::lstrip
uint16_t lstrip
Definition:
GEMCluster.h:23
GEMCluster::lastStrip
int lastStrip() const
Definition:
GEMCluster.cc:27
GetRecoTauVFromDQM_MC_cff.cl
tuple cl
Definition:
GetRecoTauVFromDQM_MC_cff.py:37
GEMCluster::bx
int bx() const
Definition:
GEMCluster.cc:39
GEMCluster::firstStrip
int firstStrip() const
Definition:
GEMCluster.cc:21
GEMCluster::fstrip
uint16_t fstrip
Definition:
GEMCluster.h:22
GEMCluster::clusterSize
int clusterSize() const
Definition:
GEMCluster.cc:33
GEMCluster::isAdjacent
bool isAdjacent(const GEMCluster &cl) const
Definition:
GEMCluster.cc:44
GEMCluster::operator==
bool operator==(const GEMCluster &cl) const
Definition:
GEMCluster.cc:67
python.rootplot.utilities.ls
def ls
Definition:
utilities.py:408
Generated for CMSSW Reference Manual by
1.8.5