1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "Calibration/IsolatedParticles/interface/FindDistCone.h"
#include <iostream>
namespace spr {
// One Hit Collection
template <typename T>
std::vector<typename T::const_iterator> findHitCone(const CaloGeometry* geo,
edm::Handle<T>& hits,
const GlobalPoint& hpoint1,
const GlobalPoint& point1,
double dR,
const GlobalVector& trackMom,
bool debug) {
std::vector<typename T::const_iterator> hit = findCone(geo, hits, hpoint1, point1, dR, trackMom, debug);
return hit;
}
// Two Hit Collections - needed for looping over Ecal Endcap/Barrel Hits
template <typename T>
std::vector<typename T::const_iterator> findHitCone(const CaloGeometry* geo,
edm::Handle<T>& barrelhits,
edm::Handle<T>& endcaphits,
const GlobalPoint& hpoint1,
const GlobalPoint& point1,
double dR,
const GlobalVector& trackMom,
bool debug) {
std::vector<typename T::const_iterator> hit =
findCone(geo, barrelhits, endcaphits, hpoint1, point1, dR, trackMom, debug);
return hit;
}
} // namespace spr
|