File indexing completed on 2024-04-06 11:59:10
0001 #include "Calibration/IsolatedParticles/interface/FindDistCone.h"
0002 #include <iostream>
0003
0004 namespace spr {
0005
0006
0007 template <typename T>
0008 std::vector<typename T::const_iterator> findHitCone(const CaloGeometry* geo,
0009 edm::Handle<T>& hits,
0010 const GlobalPoint& hpoint1,
0011 const GlobalPoint& point1,
0012 double dR,
0013 const GlobalVector& trackMom,
0014 bool debug) {
0015 std::vector<typename T::const_iterator> hit = findCone(geo, hits, hpoint1, point1, dR, trackMom, debug);
0016
0017 return hit;
0018 }
0019
0020
0021 template <typename T>
0022 std::vector<typename T::const_iterator> findHitCone(const CaloGeometry* geo,
0023 edm::Handle<T>& barrelhits,
0024 edm::Handle<T>& endcaphits,
0025 const GlobalPoint& hpoint1,
0026 const GlobalPoint& point1,
0027 double dR,
0028 const GlobalVector& trackMom,
0029 bool debug) {
0030 std::vector<typename T::const_iterator> hit =
0031 findCone(geo, barrelhits, endcaphits, hpoint1, point1, dR, trackMom, debug);
0032
0033 return hit;
0034 }
0035
0036 }