RecoEcal
EgammaClusterAlgos
interface
PreshowerClusterAlgo.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaClusterAlgos_PreshowerClusterAlgo_h
2
#define RecoEcal_EgammaClusterAlgos_PreshowerClusterAlgo_h
3
//
4
//
5
6
//#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
7
#include "
DataFormats/EgammaReco/interface/PreshowerCluster.h
"
8
#include "
DataFormats/EcalRecHit/interface/EcalRecHit.h
"
9
#include "
DataFormats/Math/interface/Point3D.h
"
10
#include "
DataFormats/EcalDetId/interface/ESDetId.h
"
11
#include "
DataFormats/DetId/interface/DetId.h
"
12
#include "
RecoCaloTools/Navigation/interface/EcalPreshowerNavigator.h
"
13
14
// C/C++ headers
15
#include <string>
16
#include <vector>
17
#include <set>
18
19
class
CaloSubdetectorGeometry
;
20
class
CaloSubdetectorTopology
;
21
22
class
PreshowerClusterAlgo
{
23
public
:
24
typedef
math::XYZPoint
Point
;
25
26
typedef
std::map<DetId, EcalRecHit>
RecHitsMap
;
27
typedef
std::set<DetId>
HitsID
;
28
29
PreshowerClusterAlgo
() :
preshStripEnergyCut_
(0.),
preshClusterEnergyCut_
(0.),
preshSeededNstr_
(15) {}
30
31
PreshowerClusterAlgo
(
double
stripEnergyCut,
double
clusterEnergyCut,
int
nStripCut)
32
:
preshStripEnergyCut_
(stripEnergyCut),
preshClusterEnergyCut_
(clusterEnergyCut),
preshSeededNstr_
(nStripCut) {}
33
34
~PreshowerClusterAlgo
(){};
35
36
reco::PreshowerCluster
makeOneCluster
(
ESDetId
strip
,
37
HitsID
*used_strips,
38
RecHitsMap
*
rechits_map
,
39
const
CaloSubdetectorGeometry
*geometry_p,
40
const
CaloSubdetectorTopology
*topology_p);
41
42
bool
goodStrip
(RecHitsMap::iterator candidate_it);
43
44
void
findRoad
(
ESDetId
strip
,
EcalPreshowerNavigator
theESNav,
int
plane);
45
46
private
:
47
double
preshStripEnergyCut_
;
48
double
preshClusterEnergyCut_
;
49
int
preshSeededNstr_
;
50
51
std::vector<ESDetId>
road_2d
;
52
53
// The map of hits
54
RecHitsMap
*
rechits_map
;
55
56
// The set of used DetID's
57
HitsID
*
used_s
;
58
};
59
#endif
PreshowerClusterAlgo::rechits_map
RecHitsMap * rechits_map
Definition:
PreshowerClusterAlgo.h:54
PreshowerClusterAlgo::HitsID
std::set< DetId > HitsID
Definition:
PreshowerClusterAlgo.h:27
PreshowerClusterAlgo::PreshowerClusterAlgo
PreshowerClusterAlgo()
Definition:
PreshowerClusterAlgo.h:29
PreshowerClusterAlgo::preshClusterEnergyCut_
double preshClusterEnergyCut_
Definition:
PreshowerClusterAlgo.h:48
digitizers_cfi.strip
strip
Definition:
digitizers_cfi.py:19
PreshowerClusterAlgo::makeOneCluster
reco::PreshowerCluster makeOneCluster(ESDetId strip, HitsID *used_strips, RecHitsMap *rechits_map, const CaloSubdetectorGeometry *geometry_p, const CaloSubdetectorTopology *topology_p)
Definition:
PreshowerClusterAlgo.cc:13
PreshowerCluster.h
reco::PreshowerCluster
Definition:
PreshowerCluster.h:17
ESDetId
Definition:
ESDetId.h:15
PreshowerClusterAlgo::~PreshowerClusterAlgo
~PreshowerClusterAlgo()
Definition:
PreshowerClusterAlgo.h:34
ESDetId.h
PreshowerClusterAlgo::findRoad
void findRoad(ESDetId strip, EcalPreshowerNavigator theESNav, int plane)
Definition:
PreshowerClusterAlgo.cc:269
RecHitsMap
std::map< DetId, EcalRecHit > RecHitsMap
Definition:
CosmicClusterAlgo.h:25
PreshowerClusterAlgo::preshSeededNstr_
int preshSeededNstr_
Definition:
PreshowerClusterAlgo.h:49
EcalPreshowerNavigator.h
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
PreshowerClusterAlgo
Definition:
PreshowerClusterAlgo.h:22
PreshowerClusterAlgo::PreshowerClusterAlgo
PreshowerClusterAlgo(double stripEnergyCut, double clusterEnergyCut, int nStripCut)
Definition:
PreshowerClusterAlgo.h:31
CaloSubdetectorTopology
Definition:
CaloSubdetectorTopology.h:17
EcalRecHit.h
PreshowerClusterAlgo::goodStrip
bool goodStrip(RecHitsMap::iterator candidate_it)
Definition:
PreshowerClusterAlgo.cc:250
CaloNavigator
Definition:
CaloNavigator.h:7
DetId.h
PreshowerClusterAlgo::used_s
HitsID * used_s
Definition:
PreshowerClusterAlgo.h:57
Point3D.h
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:22
PreshowerClusterAlgo::preshStripEnergyCut_
double preshStripEnergyCut_
Definition:
PreshowerClusterAlgo.h:47
PreshowerClusterAlgo::RecHitsMap
std::map< DetId, EcalRecHit > RecHitsMap
Definition:
PreshowerClusterAlgo.h:26
PreshowerClusterAlgo::road_2d
std::vector< ESDetId > road_2d
Definition:
PreshowerClusterAlgo.h:51
PreshowerClusterAlgo::Point
math::XYZPoint Point
Definition:
PreshowerClusterAlgo.h:24
Generated for CMSSW Reference Manual by
1.8.16