Skip to content

Commit

Permalink
add correct id for electron
Browse files Browse the repository at this point in the history
  • Loading branch information
rashigupt authored Oct 11, 2024
1 parent 118951f commit 9d70e0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ struct HfElectronSelectionWithTpcEmcal {
float deltaPhiMatch = -999.;
float deltaEtaMatch = -999.;
float eop = -999;
int elecrtonMatchId = -999;
bool isEMcal = false;

float trackRapidity = track.rapidity(MassElectron);
Expand All @@ -310,7 +309,6 @@ struct HfElectronSelectionWithTpcEmcal {
m20MatchEmcCluster = emcCluster.m20();
timeEmcCluster = emcCluster.time();
cellEmcCluster = emcCluster.nCells();
elecrtonMatchId = matchTrack.globalIndex();

deltaPhiMatch = matchTrack.trackPhiEmcal() - phiMatchEmcCluster;
deltaEtaMatch = matchTrack.trackEtaEmcal() - etaMatchEmcCluster;
Expand Down Expand Up @@ -370,7 +368,7 @@ struct HfElectronSelectionWithTpcEmcal {

isEMcal = true;

electronSel(matchTrack.collisionId(), elecrtonMatchId, etaMatchTrack, phiMatchTrack, ptMatchTrack, pMatchTrack, trackRapidity, matchTrack.dcaXY(), matchTrack.dcaZ(), matchTrack.tpcNSigmaEl(), matchTrack.tofNSigmaEl(),
electronSel(matchTrack.collisionId(), electronId, etaMatchTrack, phiMatchTrack, ptMatchTrack, pMatchTrack, trackRapidity, matchTrack.dcaXY(), matchTrack.dcaZ(), matchTrack.tpcNSigmaEl(), matchTrack.tofNSigmaEl(),
eMatchEmcCluster, etaMatchEmcCluster, phiMatchEmcCluster, m02MatchEmcCluster, m20MatchEmcCluster, cellEmcCluster, timeEmcCluster, deltaEtaMatch, deltaPhiMatch, isEMcal);
}

Expand Down

0 comments on commit 9d70e0f

Please sign in to comment.