2 #ifndef RecoParticleFlow_PFClusterProducer_PFRecHitCaloNavigatorWithTime_h
3 #define RecoParticleFlow_PFClusterProducer_PFRecHitCaloNavigatorWithTime_h
26 template <
typename D,
typename T,
bool ownsTopo=true>
120 double sigma2=10000.0;
124 auto found_hit = std::lower_bound(hits->begin(),hits->end(),
128 return a.detId() <
b.detId();
132 if (found_hit != hits->end() && found_hit->detId() ==
id.rawId()) {
134 const double deltaTime = hit.
time()-found_hit->time();
T getParameter(std::string const &) const
unsigned detId() const
rechit detId
void addNeighbour(short x, short y, short z, const PFRecHitRef &)
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalc
virtual ~PFRecHitCaloNavigatorWithTime()
std::unique_ptr< const T > topology_
ParameterSet const & getParameterSet(std::string const &) const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
double S(const TLorentzVector &, const TLorentzVector &)
double energy() const
rechit energy
PFRecHitCaloNavigatorWithTime(const edm::ParameterSet &iConfig)
double time() const
timing for cleaned hits
Power< A, B >::type pow(const A &a, const B &b)
void associateNeighbours(reco::PFRecHit &hit, std::auto_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd)
void associateNeighbour(const DetId &id, reco::PFRecHit &hit, std::auto_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi)