@@ -286,7 +286,7 @@ struct SingleTrackQCMC {
286286 fRegistry .add (" Track/lf/positive/hTPCNclsShared" , " TPC Ncls shared/Ncls;p_{T} (GeV/c);N_{cls}^{shared}/N_{cls} in TPC" , kTH2F , {{1000 , 0 , 10 }, {100 , 0 , 1 }}, false );
287287 fRegistry .add (" Track/lf/positive/hNclsITS" , " number of ITS clusters" , kTH1F , {{8 , -0.5 , 7.5 }}, false );
288288 fRegistry .add (" Track/lf/positive/hChi2ITS" , " chi2/number of ITS clusters" , kTH1F , {{100 , 0 , 10 }}, false );
289- fRegistry .add (" Track/lf/positive/hDeltaPin" , " p_{in} vs. p_{pv};p_{pv } (GeV/c);(p_{in } - p_{pv })/p_{pv }" , kTH2F , {{1000 , 0 , 10 }, {200 , -1 , +1 }}, false );
289+ fRegistry .add (" Track/lf/positive/hDeltaPin" , " p_{in} vs. p_{pv};p_{in } (GeV/c);(p_{pv } - p_{in })/p_{in }" , kTH2F , {{1000 , 0 , 10 }, {200 , -1 , +1 }}, false );
290290 fRegistry .add (" Track/lf/positive/hChi2TOF" , " TOF Chi2;p_{pv} (GeV/c);chi2" , kTH2F , {{1000 , 0 , 10 }, {100 , 0 , 10 }}, false );
291291 fRegistry .add (" Track/lf/positive/hITSClusterMap" , " ITS cluster map" , kTH1F , {{128 , -0.5 , 127.5 }}, false );
292292 fRegistry .add (" Track/lf/positive/hPtGen_DeltaPtOverPtGen" , " electron p_{T} resolution;p_{T}^{gen} (GeV/c);(p_{T}^{rec} - p_{T}^{gen})/p_{T}^{gen}" , kTH2F , {{200 , 0 , 10 }, {200 , -1 .0f , 1 .0f }}, true );
@@ -624,7 +624,9 @@ struct SingleTrackQCMC {
624624 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hChi2TPC" ), track.tpcChi2NCl ());
625625 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hChi2ITS" ), track.itsChi2NCl ());
626626 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hChi2TOF" ), track.p (), track.tofChi2 ());
627- fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hDeltaPin" ), track.p (), (track.tpcInnerParam () - track.p ()) / track.p ());
627+ if (track.hasTPC ()) {
628+ fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hDeltaPin" ), track.tpcInnerParam (), (track.p () - track.tpcInnerParam ()) / track.tpcInnerParam ());
629+ }
628630 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hITSClusterMap" ), track.itsClusterMap ());
629631 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hPtGen_DeltaPtOverPtGen" ), mctrack.pt (), (track.pt () - mctrack.pt ()) / mctrack.pt ());
630632 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hPtGen_DeltaEta" ), mctrack.pt (), track.eta () - mctrack.eta ());
@@ -672,7 +674,9 @@ struct SingleTrackQCMC {
672674 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hChi2TPC" ), track.tpcChi2NCl ());
673675 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hChi2ITS" ), track.itsChi2NCl ());
674676 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hChi2TOF" ), track.p (), track.tofChi2 ());
675- fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hDeltaPin" ), track.p (), (track.tpcInnerParam () - track.p ()) / track.p ());
677+ if (track.hasTPC ()) {
678+ fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hDeltaPin" ), track.tpcInnerParam (), (track.p () - track.tpcInnerParam ()) / track.tpcInnerParam ());
679+ }
676680 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hITSClusterMap" ), track.itsClusterMap ());
677681 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hPtGen_DeltaPtOverPtGen" ), mctrack.pt (), (track.pt () - mctrack.pt ()) / mctrack.pt ());
678682 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hPtGen_DeltaEta" ), mctrack.pt (), track.eta () - mctrack.eta ());
0 commit comments