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