Skip to content

Commit

Permalink
Chris' 2nd Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingyan95 committed Nov 18, 2021
1 parent 2ebeba4 commit d89695f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions L1Trigger/TrackTrigger/src/TrackQuality.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ std::vector<float> TrackQuality::featureTransform(TTTrack<Ref_Phase2TrackerDigi_
int tmp_trk_nlaymiss_interior = 0;
int tmp_trk_nlaymiss_PS = 0;
int tmp_trk_nlaymiss_2S = 0;
double tmp_trk_tanL = aTrack.tanL();
double tmp_trk_z0 = aTrack.z0();
bool seq = false;
for (int i = 0; i < nbits; i++) {
lay_i = ((1 << i) & tmp_trk_hitpattern) >> i; //0 or 1 in ith bit (right to left)
Expand All @@ -84,8 +86,6 @@ std::vector<float> TrackQuality::featureTransform(TTTrack<Ref_Phase2TrackerDigi_
}

if (useHPH) {
double tmp_trk_tanL = aTrack.tanL();
double tmp_trk_z0 = aTrack.z0();
hph::HitPatternHelper hph(setup_, tmp_trk_hitpattern, tmp_trk_tanL, tmp_trk_z0);
hitpattern_expanded_binary = hph.binary();
tmp_trk_nlaymiss_PS = hph.numMissingPS();
Expand Down Expand Up @@ -172,8 +172,8 @@ std::vector<float> TrackQuality::featureTransform(TTTrack<Ref_Phase2TrackerDigi_
// fill the feature map
feature_map["nstub"] = stubRefs.size();
feature_map["rinv"] = ONNXInvRScaling_ * abs(aTrack.rInv());
feature_map["tanl"] = abs(aTrack.tanL());
feature_map["z0"] = aTrack.z0();
feature_map["tanl"] = abs(tmp_trk_tanL);
feature_map["z0"] = tmp_trk_z0;
feature_map["phi"] = aTrack.phi();
feature_map["pt"] = aTrack.momentum().perp();
feature_map["eta"] = aTrack.eta();
Expand Down

0 comments on commit d89695f

Please sign in to comment.