480 const float timeCor = comTimeObject ? comTimeObject->
getTime() : 0;
482 auto p_trk = trackCollection.
begin();
488 int ntrackstack[2][64];
489 int nTotalTracks = 0;
490 int nTracksB[2] = {0, 0};
491 int nTracksEC[2] = {0, 0};
492 int nTracksEC_B[2] = {0, 0};
493 int nTrksperLB_B = 0;
494 int nTrksperLB_E[2] = {0, 0};
496 for (
int ibe = 0; ibe < 2; ibe++) {
497 std::fill(ntrackstack[ibe], ntrackstack[ibe] + 64, 0);
500for (; p_trk != trackCollection.
end(); ++p_trk) {
502 uint8_t tempHitsVariable(0);
504 int nTRTHits = unsigned(tempHitsVariable);
509 AllTrkPar = ((*p_trk)->track())->trackParameters();
515 for (p_trkpariter = AllTrkPar->
begin(); p_trkpariter != AllTrkPar->
end(); ++p_trkpariter) {
517 if ((mPer =
dynamic_cast<const Trk::Perigee *
>(*p_trkpariter)))
break;
523 float p = (mPer->parameters()[
Trk::qOverP] != 0.) ? std::abs(1. / (mPer->parameters()[
Trk::qOverP])) : 10e7;
524 float pT = (p * std::sin(
theta));
529 const Trk::TrackStates *trackStates = ((*p_trk)->track())->trackStateOnSurfaces();
531 if (trackStates ==
nullptr)
continue;
539 int n_trt_hits = unsigned(tempHitsVariable);
541 bool is_pT_over_20GeV =
false;
543 if (mPer->
pT() > 20 * CLHEP::GeV) {
544 is_pT_over_20GeV =
true;
546 is_pT_over_20GeV =
false;
549 const bool cnst_is_pT_over_20GeV = is_pT_over_20GeV;
554 if (!passed_track_preselection)
continue;
557 int checkB[2] = {0, 0};
558 int checkEC[2] = {0, 0};
559 int checkEC_B[2] = {0, 0};
561 int nTRTHits_side[2][2];
562 int nTRTHitsW_perwheel[2][18];
563 int hitontrack[2] = {0, 0};
564 int hitontrack_E_side[2] = {0, 0};
566 for (
int ibe = 0; ibe < 2; ibe++) {
567 for (
int iside = 0; iside < 2; iside++) {
568 nTRTHits_side[ibe][iside] = -1;
569 nTRTHitsW[ibe][iside] = 0;
571 std::fill(nTRTHitsW_perwheel[ibe], nTRTHitsW_perwheel[ibe] + 18, 0);
575 int layer_or_wheel = 0;
579 int nearest_straw_layer[2] = {100, 100};
580 int nearest_straw[2] = {0, 0};
581 int testLayer[2] = {100, 100};
582 float phi2D[2] = {-100, -100};
584 for (TSOSItBeginTemp = TSOSItBegin0; TSOSItBeginTemp != TSOSItEnd; ++TSOSItBeginTemp) {
585 if ((*TSOSItBeginTemp) ==
nullptr)
continue;
590 if (!trtCircle)
continue;
593 if (!aTrackParam)
continue;
596 int ibe = std::abs(barrel_ec) - 1;
602 if (layer_or_wheel >= testLayer[ibe])
continue;
603 testLayer[ibe] = layer_or_wheel;
605 if (straw_layer < nearest_straw_layer[ibe]) {
606 nearest_straw_layer[ibe] = straw_layer;
607 nearest_straw[ibe] = straw;
611 circleElement =
nullptr;
615 if (phi2D[0] == -999) {
616 ATH_MSG_DEBUG(
"Track did not go through inner layer of Barrel.");
619 testLayer[0] <<
" m_straw_layer: " <<
620 nearest_straw_layer[0] <<
" (in the Barrel).");
623 if (phi2D[1] == -999) {
624 ATH_MSG_DEBUG(
"Track did not go through any inner layer of EndCap A or C.");
627 testLayer[1] <<
" m_straw_layer: " <<
628 nearest_straw_layer[1] <<
" (in the EndCaps).");
631 bool trackfound[2][64];
633 for (
int i = 0; i < 2; i++) {
634 std::fill(trackfound[i], trackfound[i] + 64,
false);
637 for (TSOSItBegin = TSOSItBegin0; TSOSItBegin != TSOSItEnd; ++TSOSItBegin) {
639 if ((*TSOSItBegin) ==
nullptr)
continue;
645 if (!trtCircle)
continue;
649 if (!aTrackParam)
continue;
657 int ibe = std::abs(barrel_ec) - 1;
658 int iside = barrel_ec > 0 ? 0 : 1;
659 int thisStrawNumber[2] = {-1, -1};
660 int chip[2] = {0, 0};
663 thisStrawNumber[ibe] =
strawNumber(straw, straw_layer, layer_or_wheel);
665 if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] <
s_Straw_max[ibe]) {
666 chip[ibe] =
m_mat_chip_B.at(phi_module).at(thisStrawNumber[ibe]);
668 }
else if (ibe == 1) {
669 thisStrawNumber[ibe] =
strawNumberEndCap(straw, straw_layer, layer_or_wheel, phi_module, barrel_ec);
671 if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] <
s_Straw_max[ibe]) {
672 chip[ibe] =
m_mat_chip_E.at(phi_module).at(thisStrawNumber[ibe]);
675 thisStrawNumber[ibe] = -1;
678 if (thisStrawNumber[ibe] < 0 || thisStrawNumber[ibe] >=
s_Straw_max[ibe])
continue;
680 if (checkB[iside] == 0 && ibe == 0) {
685 if (checkEC[iside] == 0 && ibe == 1) {
690 if (checkEC_B[iside] == 0 && checkB[iside] == 1 && ibe == 1 ) {
691 nTracksEC_B[iside]++;
692 checkEC_B[iside] = 1;
702 int iphi_module = -9999;
704 if (iside == 0) iphi_module = phi_module;
705 else if (iside == 1) iphi_module = phi_module + 32;
707 if (iphi_module >= 0 && iphi_module < 64) trackfound[ibe][iphi_module] =
true;
718 }
else if (ibe == 1) {
720 hitontrack_E_side[iside]++;
726 if (RawDriftCircle) {
727 nTRTHits_side[ibe][iside]++;
732 if (driftTimeValid) {
733 const float validRawDriftTime = RawDriftCircle->
rawDriftTime();
736 ValidRawDriftTimeonTrkS_x = thisStrawNumber[ibe];
737 ValidRawDriftTimeonTrkS_y = validRawDriftTime;
738 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkS_x, ValidRawDriftTimeonTrkS_y);
742 ValidRawDriftTimeonTrkC_x = chip[ibe] - 1;
743 ValidRawDriftTimeonTrkC_y = validRawDriftTime;
744 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkC_x, ValidRawDriftTimeonTrkC_y);
751 DriftTimeonTrkDist_B_Ar = RawDriftCircle->
rawDriftTime();
752 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B_Ar);
756 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B);
758 }
else if (ibe == 1) {
760 DriftTimeonTrkDist_E_Ar = RawDriftCircle->
rawDriftTime();
761 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E_Ar);
765 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E);
770 float locR_err = 0.0;
771 const AmgSymMatrix(5)* b_err = aTrackParam->covariance();
775 ATH_MSG_WARNING(
"Some diagonal element(s) of the covariance matrix is (are) infinite or smaller than / too close to zero or above the covariance cutoff");
781 ATH_MSG_ERROR(
"Track parameters have no covariance attached.");
792 if ((loc * locR) < 0) loc = -loc;
798 double pull_b = -999.;
799 const double diff_loc_err = std::abs(loc_err-locR_err);
800 if ( diff_loc_err > 0 ) {
801 pull_b = (loc - locR) /diff_loc_err ;
804 else pull_b_fill =
false;
806 const double trkdrifttime = (!rtr) ? 0 : rtr->
drifttime(std::abs(locR));
807 const double timeresidual = RawDriftCircle->
rawDriftTime() - thist0 - trkdrifttime;
812 Pull_Biased_Barrel = pull_b;
813 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_Barrel);
818 Residual_B_Ar = loc - locR;
819 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar);
820 Residual_noTubeHits_B_Ar = loc - locR;
821 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar);
823 if (cnst_is_pT_over_20GeV) {
824 Residual_B_Ar_20GeV = loc - locR;
825 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar_20GeV);
826 Residual_noTubeHits_B_Ar_20GeV = loc - locR;
827 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar_20GeV);
829 TimeResidual_B_Ar = timeresidual;
830 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B_Ar);
831 TimeResidual_noTubeHits_B_Ar = timeresidual;
832 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B_Ar);
834 Residual_B = loc - locR;
835 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B);
836 Residual_noTubeHits_B = loc - locR;
837 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B);
838 TimeResidual_B = timeresidual;
839 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B);
840 TimeResidual_noTubeHits_B = timeresidual;
841 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B);
843 if (cnst_is_pT_over_20GeV) {
844 Residual_B_20GeV = loc - locR;
845 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_20GeV);
846 Residual_noTubeHits_B_20GeV = loc - locR;
847 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_20GeV);
850 }
else if (ibe == 1) {
853 Pull_Biased_EndCap = pull_b;
854 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_EndCap);
859 Residual_E_Ar = loc - locR;
860 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar);
861 Residual_noTubeHits_E_Ar = loc - locR;
862 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar);
863 TimeResidual_E_Ar = timeresidual;
864 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E_Ar);
865 TimeResidual_noTubeHits_E_Ar = timeresidual;
866 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E_Ar);
868 if (cnst_is_pT_over_20GeV) {
869 Residual_E_Ar_20GeV = loc - locR;
870 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar_20GeV);
871 Residual_noTubeHits_E_Ar_20GeV = loc - locR;
872 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar_20GeV);
875 Residual_E = loc - locR;
876 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E);
877 Residual_noTubeHits_E = loc - locR;
878 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E);
879 TimeResidual_E = timeresidual;
880 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E);
881 TimeResidual_noTubeHits_E = timeresidual;
882 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E);
884 if (cnst_is_pT_over_20GeV) {
885 Residual_E_20GeV = loc - locR;
886 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_20GeV);
887 Residual_noTubeHits_E_20GeV = loc - locR;
888 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_20GeV);
897 WireToTrkPosition_B_Ar = locR;
898 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B_Ar);
900 WireToTrkPosition_B = locR;
901 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B);
903 }
else if (ibe == 1) {
905 WireToTrkPosition_E_Ar = locR;
906 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E_Ar);
908 WireToTrkPosition_E = locR;
909 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E);
914 const float LE = (RawDriftCircle->
driftTimeBin()) * 3.125;
915 const float EP = timeCor;
921 RtRelation_B_Ar_x = LE - EP -
t0;
922 RtRelation_B_Ar_y = std::abs(locR);
923 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
925 RtRelation_B_Ar_x = LE -
t0;
926 RtRelation_B_Ar_y = std::abs(locR);
927 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
931 RtRelation_B_x = LE - EP -
t0;
932 RtRelation_B_y = std::abs(locR);
933 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
935 RtRelation_B_x = LE -
t0;
936 RtRelation_B_y = std::abs(locR);
937 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
940 }
else if (ibe == 1) {
943 RtRelation_E_Ar_x = LE - EP -
t0;
944 RtRelation_E_Ar_y = std::abs(locR);
945 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
947 RtRelation_E_Ar_x = LE -
t0;
948 RtRelation_E_Ar_y = std::abs(locR);
949 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
953 RtRelation_E_x = LE - EP -
t0;
954 RtRelation_E_y = std::abs(locR);
955 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
957 RtRelation_E_x = LE -
t0;
958 RtRelation_E_y = std::abs(locR);
959 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
978 HitTronTMapC_x = chip[ibe] - 1;
979 HitTronTMapC_y = trailingEdgeScaled;
980 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTMapC_x, HitTronTMapC_y);
984 HitTronTwEPCMapS_x = thisStrawNumber[ibe];
985 HitTronTwEPCMapS_y = trailingEdgeScaled - timeCor;
986 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapS_x, HitTronTwEPCMapS_y);
990 HitTronTwEPCMapC_x = chip[ibe] - 1;
991 HitTronTwEPCMapC_y = trailingEdgeScaled - timeCor;
992 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapC_x, HitTronTwEPCMapC_y);
999 TronTDist_B_Ar = trailingEdgeScaled;
1000 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B_Ar);
1001 AvgTroTDetPhi_B_Ar_x = phi2D[ibe];
1002 AvgTroTDetPhi_B_Ar_y = trailingEdgeScaled;
1003 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_Ar_x, AvgTroTDetPhi_B_Ar_y);
1005 TronTDist_B = trailingEdgeScaled;
1006 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B);
1007 AvgTroTDetPhi_B_x = phi2D[ibe];
1008 AvgTroTDetPhi_B_y = trailingEdgeScaled;
1009 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_x, AvgTroTDetPhi_B_y);
1011 }
else if (ibe == 1) {
1013 TronTDist_E_Ar = trailingEdgeScaled;
1014 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E_Ar);
1015 AvgTroTDetPhi_E_Ar_x = phi2D[ibe];
1016 AvgTroTDetPhi_E_Ar_y = trailingEdgeScaled;
1017 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_Ar_x, AvgTroTDetPhi_E_Ar_y);
1019 TronTDist_E = trailingEdgeScaled;
1020 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E);
1021 AvgTroTDetPhi_E_x = phi2D[ibe];
1022 AvgTroTDetPhi_E_y = trailingEdgeScaled;
1023 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_x, AvgTroTDetPhi_E_y);
1033 for (
int ibe = 0; ibe < 2; ibe++) {
1034 for (
int i = 0; i < 64; i++)
1035 if (trackfound[ibe][i])
1036 ntrackstack[ibe][i]++;
1041 NumHoTDetPhi_B_x = phi2D[ibe];
1042 NumHoTDetPhi_B_y = hitontrack[ibe];
1043 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), NumHoTDetPhi_B_x, NumHoTDetPhi_B_y);
1049 NumHoTDetPhi_E_x = phi2D[ibe];
1050 NumHoTDetPhi_E_y = hitontrack_E_side[0];
1051 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"0", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1055 NumHoTDetPhi_E_x = phi2D[ibe];
1056 NumHoTDetPhi_E_y = hitontrack_E_side[1];
1057 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"1", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1062 if (phi2D[ibe] < 0)
continue;
1066 if (nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1] > 0) {
1067 NumTrksDetPhi_B = phi2D[ibe];
1068 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), NumTrksDetPhi_B);
1070 }
else if (ibe == 1) {
1071 if (nTRTHitsW[ibe][0] > 0) {
1072 NumTrksDetPhi_E = phi2D[ibe];
1073 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"0", NumTrksDetPhi_E);
1076 if (nTRTHitsW[ibe][1] > 0) {
1077 NumTrksDetPhi_E = phi2D[ibe];
1078 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"1", NumTrksDetPhi_E);
1084 if ((nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1]) > 0) {
1087 if (comTimeObject) {
1088 if (
m_doShift && (phi2D[ibe] > 0) && (std::abs(timeCor) > 1e-8)) {
1089 EvtPhaseDetPhi_B_x = phi2D[ibe];
1090 EvtPhaseDetPhi_B_y = timeCor;
1091 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), EvtPhaseDetPhi_B_x, EvtPhaseDetPhi_B_y);
1094 }
else if (ibe == 1) {
1095 for (
int iside = 0; iside < 2; iside++) {
1096 if (nTRTHitsW[ibe][iside] > 0) nTrksperLB_E[iside]++;
1097 if (comTimeObject) {
1098 if (nTRTHits_side[ibe][iside] > 5 && (std::abs(timeCor)
1101 EvtPhaseDetPhi_E_x = phi2D[ibe];
1102 EvtPhaseDetPhi_E_y = timeCor;
1103 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), EvtPhaseDetPhi_E_x, EvtPhaseDetPhi_E_y);
1112 if (comTimeObject) {
1113 if (std::abs(timeCor) > 1e-8) {
1116 fill(
"ShiftTRTTrackHistograms0", EvtPhase);
1120 std::vector<int> trigid;
1123 std::vector<unsigned int> level1TAV = trigDecision->
tav();
1125 for (
unsigned int j = 0; j < 8 && j < level1TAV.size(); ++j) {
1126 for (
unsigned int i = 0; i < 32; ++i) {
1127 if ((level1TAV[j] >> i) & 0x1) {
1128 trigid.push_back(i + (j % 8) * 32);
1133 for (
unsigned int j = 0; j < trigid.size(); ++j) {
1134 EvtPhaseVsTrig_x = timeCor;
1135 EvtPhaseVsTrig_y = trigid[j];
1136 fill(
"ShiftTRTTrackHistograms0", EvtPhaseVsTrig_x, EvtPhaseVsTrig_y);
1145 fill(
"SmryHistograms", SummaryWeight, Summary);
1149 SummaryWeight = nTotalTracks;
1150 fill(
"SmryHistograms", SummaryWeight, Summary);
1152 SummaryWeight = nTracksB[0];
1153 fill(
"SmryHistograms", SummaryWeight, Summary);
1155 SummaryWeight = nTracksB[1];
1156 fill(
"SmryHistograms", SummaryWeight, Summary);
1158 SummaryWeight = nTracksEC[0];
1159 fill(
"SmryHistograms", SummaryWeight, Summary);
1161 SummaryWeight = nTracksEC[1];
1162 fill(
"SmryHistograms", SummaryWeight, Summary);
1164 SummaryWeight = nTracksEC_B[0];
1165 fill(
"SmryHistograms", SummaryWeight, Summary);
1167 SummaryWeight = nTracksEC_B[1];
1168 fill(
"SmryHistograms", SummaryWeight, Summary);
1171 const unsigned int lumiBlock = eventInfo.
lumiBlock();
1173 int lastLumiBlock = -99;
1174 if ((
int)lumiBlock != lastLumiBlock) {
1175 lastLumiBlock = lumiBlock;
1177 float evtLumiBlock = 1.;
1178 float lumiBlockScale = (evtLumiBlock > 0) ? (1. / evtLumiBlock) : 0;
1181 NTrksperLB_x = lastLumiBlock;
1182 NTrksperLB_y = (float)nTrksperLB_B * lumiBlockScale;
1183 fill(
"ShiftTRTTrackHistograms0", NTrksperLB_x, NTrksperLB_y);
1185 for (
int iside = 0; iside < 2; iside++) {
1186 NTrksperLB_x = lastLumiBlock;
1187 NTrksperLB_y = (float)nTrksperLB_E[iside] * lumiBlockScale;
1188 fill(
"ShiftTRTTrackHistograms1"+std::to_string(iside), NTrksperLB_x, NTrksperLB_y);
1193 for (
int iside = 0; iside < 2; iside++) {
1194 nTrksperLB_E[iside] = 0;
1202 return StatusCode::SUCCESS;