@@ -168,7 +168,9 @@ struct PhosElId {
168168 TOFNSigmaElMin{" TOFNSigmaElMin" , {-3 .f }, " min TOF nsigma e for inclusion" },
169169 TOFNSigmaElMax{" TOFNSigmaElMax" , {3 .f }, " max TOF nsigma e for inclusion" },
170170 NsigmaTrackMatch{" NsigmaTrackMatch" , {2 .f }, " PHOS Track Matching Nsigma for inclusion" },
171- mShowerShapeCutValue {" mShowerShapeCutValue" , 4 .f , " Cut threshold for testLambda shower shape" };
171+ mShowerShapeCutValue {" mShowerShapeCutValue" , 4 .f , " Cut threshold for testLambda shower shape" },
172+ mEpMinCut {" mEpMinCut" , 0 .95f , " Min E/p cut for coordinate matching" },
173+ mEpMaxCut {" mEpMaxCut" , 1 .15f , " Max E/p cut for coordinate matching" };
172174
173175 Configurable<int > mEvSelTrig {" mEvSelTrig" , kTVXinPHOS , " Select events with this trigger" },
174176 mAmountOfModules {" mAmountOfModules" , 4 , " amount of modules for PHOS" },
@@ -261,6 +263,25 @@ struct PhosElId {
261263 mHistManager .add (" coordinateMatching/hdXpmod_pos" , " dx,p_{tr},module positive tracks" , HistType::kTH3F , {axisdX, axisPt, axisModes});
262264 mHistManager .add (" coordinateMatching/hdXpmod_neg" , " dx,p_{tr},module negative tracks" , HistType::kTH3F , {axisdX, axisPt, axisModes});
263265
266+ const char * coordHistos[][3 ] = {
267+ {" hdZpmod" , " dz,p_{tr},module" , " 1" }, {" hdZpmod_pos" , " dz,p_{tr},module positive tracks" , " 1" }, {" hdZpmod_neg" , " dz,p_{tr},module negative tracks" , " 1" }, {" hdXpmod" , " dx,p_{tr},module" , " 0" }, {" hdXpmod_pos" , " dx,p_{tr},module positive tracks" , " 0" }, {" hdXpmod_neg" , " dx,p_{tr},module negative tracks" , " 0" }};
268+ const char * flagSuffixes[] = {" _TPCel" , " _disp" , " _Ep" , " _TPCel_disp" , " _TPCel_Ep" , " _disp_Ep" , " _TPCel_disp_Ep" };
269+ const char * flagTitles[] = {" | TPCel" , " | DispOK" , " | EpOK" , " | TPCel + DispOK" , " | TPCel + EpOK" , " | DispOK + EpOK" , " | TPCel + DispOK + EpOK" };
270+
271+ for (size_t i = 0 ; i < std::size (coordHistos); ++i) {
272+ AxisSpec axis = (coordHistos[i][2 ][0 ] == ' 1' ) ? axisdZ : axisdX;
273+ for (size_t j = 0 ; j < std::size (flagSuffixes); ++j) {
274+ mHistManager .add (Form (" coordinateMatching/%s%s" , coordHistos[i][0 ], flagSuffixes[j]),
275+ Form (" %s%s" , coordHistos[i][1 ], flagTitles[j]),
276+ HistType::kTH3F , {axis, axisPt, axisModes});
277+ if (isMC) {
278+ mHistManager .add (Form (" TrueEl/coordinateMatching/%s%s" , coordHistos[i][0 ], flagSuffixes[j]),
279+ Form (" %s%s | TrueEl" , coordHistos[i][1 ], flagTitles[j]),
280+ HistType::kTH3F , {axis, axisPt, axisModes});
281+ }
282+ }
283+ }
284+
264285 mHistManager .add (" clusterSpectra/hCluE_v_pt_disp" , " Cluster energy vs p | OK dispersion" , HistType::kTH3F , {axisE, axisPt, axisModes});
265286 mHistManager .add (" clusterSpectra/hCluE_v_pt_Nsigma" , " Cluster energy vs p within trackmatch Nsigma" , HistType::kTH3F , {axisE, axisPt, axisModes});
266287 mHistManager .add (" clusterSpectra/hCluE_v_pt_Nsigma_disp" , " Cluster energy vs p within trackmatch Nsigma | OK dispersion" , HistType::kTH3F , {axisE, axisPt, axisModes});
@@ -433,6 +454,7 @@ struct PhosElId {
433454 else
434455 isDispOK = testLambda (cluE, clu.m20 (), clu.m02 (), mShowerShapeCutValue , mUseNegativeCrossTerm );
435456 float posX = clu.x (), posZ = clu.z (), dX = trackX - posX, dZ = trackZ - posZ, Ep = cluE / trackMom;
457+ bool isEpOK = (Ep >= mEpMinCut && Ep <= mEpMaxCut );
436458
437459 mHistManager .fill (HIST (" coordinateMatching/hdZpmod" ), dZ, trackPT, module );
438460 mHistManager .fill (HIST (" coordinateMatching/hdXpmod" ), dX, trackPT, module );
@@ -444,6 +466,90 @@ struct PhosElId {
444466 mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg" ), dX, trackPT, module );
445467 }
446468
469+ if (isElectron) {
470+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel" ), dZ, trackPT, module );
471+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel" ), dX, trackPT, module );
472+ if (posTrack) {
473+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel" ), dZ, trackPT, module );
474+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel" ), dX, trackPT, module );
475+ } else {
476+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel" ), dZ, trackPT, module );
477+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel" ), dX, trackPT, module );
478+ }
479+ }
480+
481+ if (isDispOK) {
482+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_disp" ), dZ, trackPT, module );
483+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_disp" ), dX, trackPT, module );
484+ if (posTrack) {
485+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_disp" ), dZ, trackPT, module );
486+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_disp" ), dX, trackPT, module );
487+ } else {
488+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_disp" ), dZ, trackPT, module );
489+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_disp" ), dX, trackPT, module );
490+ }
491+ }
492+
493+ if (isEpOK) {
494+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_Ep" ), dZ, trackPT, module );
495+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_Ep" ), dX, trackPT, module );
496+ if (posTrack) {
497+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_Ep" ), dZ, trackPT, module );
498+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_Ep" ), dX, trackPT, module );
499+ } else {
500+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_Ep" ), dZ, trackPT, module );
501+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_Ep" ), dX, trackPT, module );
502+ }
503+ }
504+
505+ if (isElectron && isDispOK) {
506+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_disp" ), dZ, trackPT, module );
507+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_disp" ), dX, trackPT, module );
508+ if (posTrack) {
509+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_disp" ), dZ, trackPT, module );
510+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_disp" ), dX, trackPT, module );
511+ } else {
512+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_disp" ), dZ, trackPT, module );
513+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_disp" ), dX, trackPT, module );
514+ }
515+ }
516+
517+ if (isElectron && isEpOK) {
518+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_Ep" ), dZ, trackPT, module );
519+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_Ep" ), dX, trackPT, module );
520+ if (posTrack) {
521+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_Ep" ), dZ, trackPT, module );
522+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_Ep" ), dX, trackPT, module );
523+ } else {
524+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_Ep" ), dZ, trackPT, module );
525+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_Ep" ), dX, trackPT, module );
526+ }
527+ }
528+
529+ if (isDispOK && isEpOK) {
530+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_disp_Ep" ), dZ, trackPT, module );
531+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_disp_Ep" ), dX, trackPT, module );
532+ if (posTrack) {
533+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_disp_Ep" ), dZ, trackPT, module );
534+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_disp_Ep" ), dX, trackPT, module );
535+ } else {
536+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_disp_Ep" ), dZ, trackPT, module );
537+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_disp_Ep" ), dX, trackPT, module );
538+ }
539+ }
540+
541+ if (isElectron && isDispOK && isEpOK) {
542+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_disp_Ep" ), dZ, trackPT, module );
543+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_disp_Ep" ), dX, trackPT, module );
544+ if (posTrack) {
545+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_disp_Ep" ), dZ, trackPT, module );
546+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_disp_Ep" ), dX, trackPT, module );
547+ } else {
548+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_disp_Ep" ), dZ, trackPT, module );
549+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_disp_Ep" ), dX, trackPT, module );
550+ }
551+ }
552+
447553 if (isDispOK) {
448554 mHistManager .fill (HIST (" clusterSpectra/hCluE_v_pt_disp" ), cluE, trackPT, module );
449555 mHistManager .fill (HIST (" energyMomentumRatio/hEp_v_pt_disp" ), Ep, trackPT, module );
@@ -702,6 +808,7 @@ struct PhosElId {
702808 else
703809 isDispOK = testLambda (cluE, clu.m20 (), clu.m02 (), mShowerShapeCutValue , mUseNegativeCrossTerm );
704810 float posX = clu.x (), posZ = clu.z (), dX = trackX - posX, dZ = trackZ - posZ, Ep = cluE / trackMom;
811+ bool isEpOK = (Ep >= mEpMinCut && Ep <= mEpMaxCut );
705812
706813 mHistManager .fill (HIST (" coordinateMatching/hdZpmod" ), dZ, trackPT, module );
707814 mHistManager .fill (HIST (" coordinateMatching/hdXpmod" ), dX, trackPT, module );
@@ -713,6 +820,174 @@ struct PhosElId {
713820 mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg" ), dX, trackPT, module );
714821 }
715822
823+ if (isElectron) {
824+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel" ), dZ, trackPT, module );
825+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel" ), dX, trackPT, module );
826+ if (posTrack) {
827+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel" ), dZ, trackPT, module );
828+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel" ), dX, trackPT, module );
829+ } else {
830+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel" ), dZ, trackPT, module );
831+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel" ), dX, trackPT, module );
832+ }
833+
834+ if (isTrueElectron) {
835+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_TPCel" ), dZ, trackPT, module );
836+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_TPCel" ), dX, trackPT, module );
837+ if (posTrack) {
838+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_TPCel" ), dZ, trackPT, module );
839+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_TPCel" ), dX, trackPT, module );
840+ } else {
841+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_TPCel" ), dZ, trackPT, module );
842+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_TPCel" ), dX, trackPT, module );
843+ }
844+ }
845+ }
846+
847+ if (isDispOK) {
848+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_disp" ), dZ, trackPT, module );
849+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_disp" ), dX, trackPT, module );
850+ if (posTrack) {
851+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_disp" ), dZ, trackPT, module );
852+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_disp" ), dX, trackPT, module );
853+ } else {
854+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_disp" ), dZ, trackPT, module );
855+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_disp" ), dX, trackPT, module );
856+ }
857+
858+ if (isTrueElectron) {
859+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_disp" ), dZ, trackPT, module );
860+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_disp" ), dX, trackPT, module );
861+ if (posTrack) {
862+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_disp" ), dZ, trackPT, module );
863+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_disp" ), dX, trackPT, module );
864+ } else {
865+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_disp" ), dZ, trackPT, module );
866+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_disp" ), dX, trackPT, module );
867+ }
868+ }
869+ }
870+
871+ if (isEpOK) {
872+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_Ep" ), dZ, trackPT, module );
873+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_Ep" ), dX, trackPT, module );
874+ if (posTrack) {
875+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_Ep" ), dZ, trackPT, module );
876+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_Ep" ), dX, trackPT, module );
877+ } else {
878+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_Ep" ), dZ, trackPT, module );
879+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_Ep" ), dX, trackPT, module );
880+ }
881+
882+ if (isTrueElectron) {
883+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_Ep" ), dZ, trackPT, module );
884+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_Ep" ), dX, trackPT, module );
885+ if (posTrack) {
886+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_Ep" ), dZ, trackPT, module );
887+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_Ep" ), dX, trackPT, module );
888+ } else {
889+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_Ep" ), dZ, trackPT, module );
890+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_Ep" ), dX, trackPT, module );
891+ }
892+ }
893+ }
894+
895+ if (isElectron && isDispOK) {
896+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_disp" ), dZ, trackPT, module );
897+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_disp" ), dX, trackPT, module );
898+ if (posTrack) {
899+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_disp" ), dZ, trackPT, module );
900+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_disp" ), dX, trackPT, module );
901+ } else {
902+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_disp" ), dZ, trackPT, module );
903+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_disp" ), dX, trackPT, module );
904+ }
905+
906+ if (isTrueElectron) {
907+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_TPCel_disp" ), dZ, trackPT, module );
908+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_TPCel_disp" ), dX, trackPT, module );
909+ if (posTrack) {
910+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_TPCel_disp" ), dZ, trackPT, module );
911+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_TPCel_disp" ), dX, trackPT, module );
912+ } else {
913+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_TPCel_disp" ), dZ, trackPT, module );
914+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_TPCel_disp" ), dX, trackPT, module );
915+ }
916+ }
917+ }
918+
919+ if (isElectron && isEpOK) {
920+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_Ep" ), dZ, trackPT, module );
921+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_Ep" ), dX, trackPT, module );
922+ if (posTrack) {
923+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_Ep" ), dZ, trackPT, module );
924+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_Ep" ), dX, trackPT, module );
925+ } else {
926+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_Ep" ), dZ, trackPT, module );
927+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_Ep" ), dX, trackPT, module );
928+ }
929+
930+ if (isTrueElectron) {
931+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_TPCel_Ep" ), dZ, trackPT, module );
932+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_TPCel_Ep" ), dX, trackPT, module );
933+ if (posTrack) {
934+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_TPCel_Ep" ), dZ, trackPT, module );
935+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_TPCel_Ep" ), dX, trackPT, module );
936+ } else {
937+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_TPCel_Ep" ), dZ, trackPT, module );
938+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_TPCel_Ep" ), dX, trackPT, module );
939+ }
940+ }
941+ }
942+
943+ if (isDispOK && isEpOK) {
944+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_disp_Ep" ), dZ, trackPT, module );
945+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_disp_Ep" ), dX, trackPT, module );
946+ if (posTrack) {
947+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_disp_Ep" ), dZ, trackPT, module );
948+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_disp_Ep" ), dX, trackPT, module );
949+ } else {
950+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_disp_Ep" ), dZ, trackPT, module );
951+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_disp_Ep" ), dX, trackPT, module );
952+ }
953+
954+ if (isTrueElectron) {
955+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_disp_Ep" ), dZ, trackPT, module );
956+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_disp_Ep" ), dX, trackPT, module );
957+ if (posTrack) {
958+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_disp_Ep" ), dZ, trackPT, module );
959+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_disp_Ep" ), dX, trackPT, module );
960+ } else {
961+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_disp_Ep" ), dZ, trackPT, module );
962+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_disp_Ep" ), dX, trackPT, module );
963+ }
964+ }
965+ }
966+
967+ if (isElectron && isDispOK && isEpOK) {
968+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_TPCel_disp_Ep" ), dZ, trackPT, module );
969+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_TPCel_disp_Ep" ), dX, trackPT, module );
970+ if (posTrack) {
971+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_pos_TPCel_disp_Ep" ), dZ, trackPT, module );
972+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_pos_TPCel_disp_Ep" ), dX, trackPT, module );
973+ } else {
974+ mHistManager .fill (HIST (" coordinateMatching/hdZpmod_neg_TPCel_disp_Ep" ), dZ, trackPT, module );
975+ mHistManager .fill (HIST (" coordinateMatching/hdXpmod_neg_TPCel_disp_Ep" ), dX, trackPT, module );
976+ }
977+
978+ if (isTrueElectron) {
979+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_TPCel_disp_Ep" ), dZ, trackPT, module );
980+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_TPCel_disp_Ep" ), dX, trackPT, module );
981+ if (posTrack) {
982+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_pos_TPCel_disp_Ep" ), dZ, trackPT, module );
983+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_pos_TPCel_disp_Ep" ), dX, trackPT, module );
984+ } else {
985+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdZpmod_neg_TPCel_disp_Ep" ), dZ, trackPT, module );
986+ mHistManager .fill (HIST (" TrueEl/coordinateMatching/hdXpmod_neg_TPCel_disp_Ep" ), dX, trackPT, module );
987+ }
988+ }
989+ }
990+
716991 if (isDispOK) {
717992 mHistManager .fill (HIST (" clusterSpectra/hCluE_v_pt_disp" ), cluE, trackPT, module );
718993 mHistManager .fill (HIST (" energyMomentumRatio/hEp_v_pt_disp" ), Ep, trackPT, module );
0 commit comments