CMS 3D CMS Logo

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"
13 
14 // C/C++ headers
15 #include <string>
16 #include <vector>
17 #include <set>
18 
21 
23 public:
25 
26  typedef std::map<DetId, EcalRecHit> RecHitsMap;
27  typedef std::set<DetId> HitsID;
28 
30 
31  PreshowerClusterAlgo(double stripEnergyCut, double clusterEnergyCut, int nStripCut)
32  : preshStripEnergyCut_(stripEnergyCut), preshClusterEnergyCut_(clusterEnergyCut), preshSeededNstr_(nStripCut) {}
33 
35 
37  HitsID *used_strips,
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:
50 
51  std::vector<ESDetId> road_2d;
52 
53  // The map of hits
55 
56  // The set of used DetID'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
EcalRecHit.h
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
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