Main Page
Namespaces
Classes
Package Documentation
src
RecoJets
JetAnalyzers
interface
MyCluster.h
Go to the documentation of this file.
1
#ifndef MYCLUSTER_H
2
#define MYCLUSTER_H
3
#include "CLHEP/Vector/LorentzVector.h"
4
5
enum
{
ClusterEm
=0,
ClusterHd
=1,
ClusterEmHd
=2,
ClusterTower
=3,
RecHitEm
=4,
RecHitHd
=5,
CaloTowerEm
=6,
CaloTowerHd
=7};
6
7
struct
MatchParam
{
8
int
index
;
9
double
distance
;
10
};
11
12
struct
CalCell
{
13
CLHEP::HepLorentzVector
Momentum
;
14
int
pid
;
15
bool
used
;
16
};
17
18
19
struct
CalCluster
{
20
CLHEP::HepLorentzVector
Momentum
;
21
double
em
;
22
double
hd
;
23
int
type
;
24
int
ncells
;
25
std::vector<CalCell>
clusterCellList
;
26
std::vector<MatchParam>
MatchedClusters
;
27
std::vector<CalCluster>
SubClusterList
;
28
};
29
30
class
CellGreater
{
31
public
:
32
bool
operator () (
const
CalCell
&
i
,
const
CalCell
& j) {
33
return
(i.
Momentum
.e() > j.
Momentum
.e());
34
}
35
};
36
37
class
CellEtGreater
{
38
public
:
39
bool
operator () (
const
CalCell
&
i
,
const
CalCell
& j) {
40
return
(i.
Momentum
.perp() > j.
Momentum
.perp());
41
}
42
};
43
44
class
ClusterGreater
{
45
public
:
46
bool
operator () (
const
CalCluster
&
i
,
const
CalCluster
& j) {
47
return
(i.
Momentum
.e() > j.
Momentum
.e());
48
}
49
};
50
51
class
ClusterEtGreater
{
52
public
:
53
bool
operator () (
const
CalCluster
&
i
,
const
CalCluster
& j) {
54
return
(i.
Momentum
.perp() > j.
Momentum
.perp());
55
}
56
};
57
class
ClusterPtGreater
{
58
public
:
59
60
bool
operator () (
const
CalCluster
&
i
,
const
CalCluster
& j) {
61
return
(i.
Momentum
.perp() > j.
Momentum
.perp());
62
}
63
};
64
65
66
#endif
CalCluster::hd
double hd
Definition:
MyCluster.h:22
CaloTowerHd
Definition:
MyCluster.h:5
mps_fire.i
i
Definition:
mps_fire.py:269
CalCluster::ncells
int ncells
Definition:
MyCluster.h:24
CalCell
Definition:
MyCluster.h:12
CalCluster::SubClusterList
std::vector< CalCluster > SubClusterList
Definition:
MyCluster.h:27
MatchParam
Definition:
MyCluster.h:7
ClusterEtGreater
Definition:
MyCluster.h:51
ClusterPtGreater
Definition:
MyCluster.h:57
CalCluster::clusterCellList
std::vector< CalCell > clusterCellList
Definition:
MyCluster.h:25
CalCluster
Definition:
MyCluster.h:19
CalCluster::em
double em
Definition:
MyCluster.h:21
ClusterTower
Definition:
MyCluster.h:5
CellGreater
Definition:
MyCluster.h:30
CalCell::Momentum
CLHEP::HepLorentzVector Momentum
Definition:
MyCluster.h:13
MatchParam::index
int index
Definition:
MyCluster.h:8
ClusterGreater
Definition:
MyCluster.h:44
CalCell::pid
int pid
Definition:
MyCluster.h:14
CalCluster::Momentum
CLHEP::HepLorentzVector Momentum
Definition:
MyCluster.h:20
MatchParam::distance
double distance
Definition:
MyCluster.h:9
CaloTowerEm
Definition:
MyCluster.h:5
ClusterEmHd
Definition:
MyCluster.h:5
ClusterHd
Definition:
MyCluster.h:5
CellEtGreater
Definition:
MyCluster.h:37
RecHitHd
Definition:
MyCluster.h:5
CalCell::used
bool used
Definition:
MyCluster.h:15
CalCluster::MatchedClusters
std::vector< MatchParam > MatchedClusters
Definition:
MyCluster.h:26
RecHitEm
Definition:
MyCluster.h:5
ClusterEm
Definition:
MyCluster.h:5
CalCluster::type
int type
Definition:
MyCluster.h:23
Generated for CMSSW Reference Manual by
1.8.11