#include <PFHCALDenseIdNavigator.h>
template<typename DET, typename TOPO, bool ownsTopo = true>
class PFHCALDenseIdNavigator< DET, TOPO, ownsTopo >
Definition at line 26 of file PFHCALDenseIdNavigator.h.
◆ ~PFHCALDenseIdNavigator()
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ PFHCALDenseIdNavigator()
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ associateNeighbours()
template<typename DET, typename TOPO, bool ownsTopo = true>
Implements PFRecHitNavigatorBase.
Definition at line 143 of file PFHCALDenseIdNavigator.h.
147 unsigned denseid =
topology_.get()->detId2denseId(detid);
149 std::vector<DetId> neighbours(9,
DetId(0));
152 edm::LogWarning(
"PFRecHitHCALCachedNavigator") <<
" DenseId for this cell is out of the range." << std::endl;
155 <<
" DenseId for this cell does not have the neighbour information." << std::endl;
◆ getIdx()
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ init()
template<typename DET, typename TOPO, bool ownsTopo = true>
Implements PFRecHitNavigatorBase.
Definition at line 39 of file PFHCALDenseIdNavigator.h.
52 std::vector<DetId> vecHcal;
53 std::vector<unsigned int> vDenseIdHcal;
57 vecHcal.insert(vecHcal.end(), vecDetIds.begin(), vecDetIds.end());
59 vDenseIdHcal.reserve(vecHcal.size());
60 for (
auto hDetId : vecHcal) {
61 vDenseIdHcal.push_back(
topology_.get()->detId2denseId(hDetId));
63 std::sort(vDenseIdHcal.begin(), vDenseIdHcal.end());
66 denseIdHcalMax_ = *max_element(vDenseIdHcal.begin(), vDenseIdHcal.end());
67 denseIdHcalMin_ = *min_element(vDenseIdHcal.begin(), vDenseIdHcal.end());
70 for (
auto denseid : vDenseIdHcal) {
79 std::vector<DetId> neighbours(9,
DetId(0));
82 unsigned denseid_c = denseid;
88 neighbours.at(
NONE) = detid_c;
116 neighbours.at(
EAST) = E;
128 neighbours.at(
WEST) = W;
◆ validNeighbours()
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ denseIdHcalMax_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ denseIdHcalMin_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ geomToken_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ hcalToken_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ neighboursHcal_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ theRecNumberWatcher_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ topology_
template<typename DET, typename TOPO, bool ownsTopo = true>
◆ vhcalEnum_
template<typename DET, typename TOPO, bool ownsTopo = true>
void associateNeighbour(const DetId &id, reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi, short depth)
double S(const TLorentzVector &, const TLorentzVector &)