From 9957d1a24ec4c6775ef3b6b942f4fd8d96f9f0c2 Mon Sep 17 00:00:00 2001 From: Grigory Safronov Date: Tue, 17 Mar 2009 08:31:42 +0000 Subject: [PATCH] using new IsolatedPixelTrackCandidate constructor --- .../HcalAlCaRecoProducers/src/AlCaIsoTracksProducer.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Calibration/HcalAlCaRecoProducers/src/AlCaIsoTracksProducer.cc b/Calibration/HcalAlCaRecoProducers/src/AlCaIsoTracksProducer.cc index 1f1b95230efdf..9aa297d6747a7 100644 --- a/Calibration/HcalAlCaRecoProducers/src/AlCaIsoTracksProducer.cc +++ b/Calibration/HcalAlCaRecoProducers/src/AlCaIsoTracksProducer.cc @@ -370,13 +370,15 @@ void AlCaIsoTracksProducer::produce(edm::Event& iEvent, const edm::EventSetup& i // reco::TrackExtra & tx = outputExTColl->back(); //Create IsolatedPixelTrackCandidate (will change naming in future release) - reco::IsolatedPixelTrackCandidate newHITCandidate(reco::TrackRef(trackCollection,track-trackCollection->begin()), l1extra::L1JetParticleRef(edm::ProductID(0)), maxPNearby, sumPNearby); + reco::IsolatedPixelTrackCandidate newHITCandidate(reco::Candidate::LorentzVector(track->px(),track->py(),track->pz(),track->p())); + newHITCandidate.SetSumPtPxl(sumPNearby); + newHITCandidate.SetMaxPtPxl(maxPNearby); //set cluster energy deposition and ring energy deposition and push_back newHITCandidate.SetEnergyIn(ecClustR); newHITCandidate.SetEnergyOut(ecOutRingR); outputHcalIsoTrackColl->push_back(newHITCandidate); - + //save hcal recHits for (std::vector::const_iterator hhit=hbheRHcol->begin(); hhit!=hbheRHcol->end(); hhit++) {