Skip to content

Commit

Permalink
fix accidentally not filling trk nlayers (cms-sw#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
bi-ran authored Aug 1, 2019
1 parent 153b789 commit 23080da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeavyIonsAnalysis/TrackAnalysis/src/TrackAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ TrackAnalyzer::fillTracks(const edm::Event& iEvent, const edm::EventSetup& iSetu
pev_.trkPtError[pev_.nTrk] = etrk.ptError();
pev_.trkCharge[pev_.nTrk] = etrk.charge();
pev_.trkNHit[pev_.nTrk] = etrk.numberOfValidHits();
pev_.trkNlayer[pev_.nTrk] = etrk.hitPattern().trackerLayersWithMeasurement();
pev_.trkChi2[pev_.nTrk] = etrk.chi2();
pev_.trkNdof[pev_.nTrk] = etrk.ndof();

Expand All @@ -584,7 +585,6 @@ TrackAnalyzer::fillTracks(const edm::Event& iEvent, const edm::EventSetup& iSetu
pev_.trkDxyBS[pev_.nTrk] = etrk.dxy(beamSpot.position());
pev_.trkDxyErrorBS[pev_.nTrk] = sqrt(etrk.dxyError()*etrk.dxyError()+beamSpot.BeamWidthX()*beamSpot.BeamWidthY());

pev_.trkNlayer[pev_.nTrk] = etrk.hitPattern().trackerLayersWithMeasurement();
pev_.trkNlayer3D[pev_.nTrk] = etrk.hitPattern().pixelLayersWithMeasurement() + etrk.hitPattern().numberOfValidStripLayersWithMonoAndStereo();

int count1dhits = 0;
Expand Down

0 comments on commit 23080da

Please sign in to comment.