CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
38  DetId thisDet,
39  bool debug = false);
40 
41  template <typename T>
42  void findHit(edm::Handle<T>& hits, DetId thisDet, std::vector<typename T::const_iterator>& hit, bool debug = false);
43 
44  // For EB and EE RecHit Collection
46  DetId thisDet,
47  std::vector<EcalRecHitCollection::const_iterator>& hit,
48  bool debug = false);
49 
50  // For Hcal RecHit Collection
52  DetId thisDet,
53  std::vector<HBHERecHitCollection::const_iterator>& hit,
54  bool debug = false);
55 
56  // For simHit Collection
58  DetId thisDet,
59  std::vector<edm::PCaloHitContainer::const_iterator>& hit,
60  bool debug = false);
61 } // namespace spr
62 
63 #include "Calibration/IsolatedParticles/interface/FindCaloHit.icc"
64 
65 #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:19
Definition: DetId.h:17
#define debug
Definition: HDRShower.cc:19