Skip to content

Commit

Permalink
using new IsolatedPixelTrackCandidate constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory Safronov committed Mar 17, 2009
1 parent 1022a57 commit 9957d1a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<HBHERecHit>::const_iterator hhit=hbheRHcol->begin(); hhit!=hbheRHcol->end(); hhit++)
{
Expand Down

0 comments on commit 9957d1a

Please sign in to comment.