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  template <typename T>
38  void findHit(edm::Handle<T>& hits, DetId thisDet, std::vector<typename T::const_iterator>& hit, bool debug=false);
39 
40  // For EB and EE RecHit Collection
41  void find(edm::Handle<EcalRecHitCollection>& hits, DetId thisDet, std::vector<EcalRecHitCollection::const_iterator>& hit, bool debug=false);
42 
43  // For Hcal RecHit Collection
44  void find(edm::Handle<HBHERecHitCollection>& hits, DetId thisDet, std::vector<HBHERecHitCollection::const_iterator>& hit, bool debug=false);
45 
46  // For simHit Collection
47  void find(edm::Handle<edm::PCaloHitContainer>& hits, DetId thisDet, std::vector<edm::PCaloHitContainer::const_iterator>& hit, bool debug=false);
48 }
49 
50 #include "Calibration/IsolatedParticles/interface/FindCaloHit.icc"
51 
52 #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:7
Definition: DetId.h:18
#define debug
Definition: HDRShower.cc:19