CMS 3D CMS Logo

FindCaloHit.h
Go to the documentation of this file.
1 #ifndef CalibrationIsolatedParticlesFindCaloHit_h
2 #define CalibrationIsolatedParticlesFindCaloHit_h
3 
4 // system include files
5 #include <memory>
6 #include <cmath>
7 #include <string>
8 #include <map>
9 #include <vector>
10 
11 // user include files
13 
15 
17 
25 
28 
29 #include <cmath>
30 
31 namespace spr {
32 
33  // All types of Hit Collections
34  template <typename T>
35  std::vector<typename T::const_iterator> findHit(edm::Handle<T>& hits, DetId thisDet, bool debug=false);
36 
37  std::vector<std::vector<PCaloHit>::const_iterator> findHit(std::vector<PCaloHit>& hits, DetId thisDet, bool debug=false);
38 
39  template <typename T>
40  void findHit(edm::Handle<T>& hits, DetId thisDet, std::vector<typename T::const_iterator>& hit, bool debug=false);
41 
42  // For EB and EE RecHit Collection
43  void find(edm::Handle<EcalRecHitCollection>& hits, DetId thisDet, std::vector<EcalRecHitCollection::const_iterator>& hit, bool debug=false);
44 
45  // For Hcal RecHit Collection
46  void find(edm::Handle<HBHERecHitCollection>& hits, DetId thisDet, std::vector<HBHERecHitCollection::const_iterator>& hit, bool debug=false);
47 
48  // For simHit Collection
49  void find(edm::Handle<edm::PCaloHitContainer>& hits, DetId thisDet, std::vector<edm::PCaloHitContainer::const_iterator>& hit, bool debug=false);
50 }
51 
52 #include "Calibration/IsolatedParticles/interface/FindCaloHit.icc"
53 
54 #endif
std::vector< typename T::const_iterator > findHit(edm::Handle< T > &hits, DetId thisDet, bool debug=false)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
Definition: DetId.h:18
#define debug
Definition: HDRShower.cc:19