CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PreshowerClusterAlgo.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaClusterAlgos_PreshowerClusterAlgo_h
2 #define RecoEcal_EgammaClusterAlgos_PreshowerClusterAlgo_h
3 //
4 // $Id: PreshowerClusterAlgo.h,v 1.11 2006/12/12 15:00:51 futyand Exp $
5 //
6 
7 //#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
14 
15 // C/C++ headers
16 #include <string>
17 #include <vector>
18 #include <set>
19 
22 
23 
25 
26 
27  public:
28 
29  enum DebugLevel { pDEBUG = 0, pINFO = 1, pERROR = 2 };
30 
32 
33  typedef std::map<DetId, EcalRecHit> RecHitsMap;
34  typedef std::set<DetId> HitsID;
35 
38  {}
39 
40  PreshowerClusterAlgo(double stripEnergyCut, double clusterEnergyCut, int nStripCut, DebugLevel debugLevel = pINFO) :
41  preshStripEnergyCut_(stripEnergyCut), preshClusterEnergyCut_(clusterEnergyCut), preshSeededNstr_(nStripCut), debugLevel_(debugLevel)
42  {}
43 
45 
47  HitsID *used_strips,
49  const CaloSubdetectorGeometry*& geometry_p,
50  CaloSubdetectorTopology*& topology_p);
51 
52  bool goodStrip(RecHitsMap::iterator candidate_it);
53 
54  void findRoad(ESDetId strip, EcalPreshowerNavigator theESNav, int plane);
55 
56  private:
57 
62 
63  std::vector<ESDetId> road_2d;
64 
65  // The map of hits
67 
68  // The set of used DetID's
70 
71 };
72 #endif
73 
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
void findRoad(ESDetId strip, EcalPreshowerNavigator theESNav, int plane)
std::map< DetId, EcalRecHit > RecHitsMap
PreshowerClusterAlgo(double stripEnergyCut, double clusterEnergyCut, int nStripCut, DebugLevel debugLevel=pINFO)
reco::PreshowerCluster makeOneCluster(ESDetId strip, HitsID *used_strips, RecHitsMap *rechits_map, const CaloSubdetectorGeometry *&geometry_p, CaloSubdetectorTopology *&topology_p)
std::map< DetId, EcalRecHit > RecHitsMap
Definition: HLTAlCaMonPi0.h:24
bool goodStrip(RecHitsMap::iterator candidate_it)
std::vector< ESDetId > road_2d
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
std::set< DetId > HitsID