Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"

namespace spr {

  template <typename T>
  std::vector<typename T::const_iterator> findHit(edm::Handle<T>& hits, DetId thisDet, bool debug) {
    std::vector<typename T::const_iterator> hit;
    spr::findHit(hits, thisDet, hit, debug);
    return hit;
  }

  template <typename T>
  void findHit(edm::Handle<T>& hits, DetId thisDet, std::vector<typename T::const_iterator>& hit, bool debug) {
    spr::find(hits, thisDet, hit, debug);
  }
}  // namespace spr