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;
123 auto found_hit = std::lower_bound(hits->begin(),hits->end(),
129 else return a.detId() <
b.rawId();
133 if (found_hit != hits->end() && ((found_hit->detId() ==
id.rawId()) ||
136 sigma2 = _timeResolutionCalc->timeResolution2(hit.
energy()) + _timeResolutionCalc->timeResolution2(found_hit->energy());
137 const double deltaTime = hit.
time()-found_hit->time();
138 if(deltaTime*deltaTime<sigmaCut2_*sigma2) {
T getParameter(std::string const &) const
float time() const
timing for cleaned hits
unsigned detId() const
rechit detId
void addNeighbour(short x, short y, short z, unsigned int)
void associateNeighbour(const DetId &id, reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi)
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalc
virtual ~PFRecHitCaloNavigatorWithTime()
float energy() const
rechit energy
std::unique_ptr< const T > topology_
ParameterSet const & getParameterSet(std::string const &) const
void associateNeighbours(reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd)
double S(const TLorentzVector &, const TLorentzVector &)
PFRecHitCaloNavigatorWithTime(const edm::ParameterSet &iConfig)
Power< A, B >::type pow(const A &a, const B &b)