481 const float timeCor = comTimeObject ? comTimeObject->
getTime() : 0;
483 auto p_trk = trackCollection.
begin();
489 int ntrackstack[2][64];
490 int nTotalTracks = 0;
491 int nTracksB[2] = {0, 0};
492 int nTracksEC[2] = {0, 0};
493 int nTracksEC_B[2] = {0, 0};
494 int nTrksperLB_B = 0;
495 int nTrksperLB_E[2] = {0, 0};
497 for (
int ibe = 0; ibe < 2; ibe++) {
498 std::fill(ntrackstack[ibe], ntrackstack[ibe] + 64, 0);
501for (; p_trk != trackCollection.
end(); ++p_trk) {
503 uint8_t tempHitsVariable(0);
505 int nTRTHits = unsigned(tempHitsVariable);
510 AllTrkPar = ((*p_trk)->track())->trackParameters();
516 for (p_trkpariter = AllTrkPar->
begin(); p_trkpariter != AllTrkPar->
end(); ++p_trkpariter) {
518 if ((mPer =
dynamic_cast<const Trk::Perigee *
>(*p_trkpariter)))
break;
524 float p = (mPer->parameters()[
Trk::qOverP] != 0.) ? std::abs(1. / (mPer->parameters()[
Trk::qOverP])) : 10e7;
525 float pT = (p * std::sin(
theta));
530 const Trk::TrackStates *trackStates = ((*p_trk)->track())->trackStateOnSurfaces();
532 if (trackStates ==
nullptr)
continue;
540 int n_trt_hits = unsigned(tempHitsVariable);
542 bool is_pT_over_20GeV =
false;
544 if (mPer->
pT() > 20 * CLHEP::GeV) {
545 is_pT_over_20GeV =
true;
547 is_pT_over_20GeV =
false;
550 const bool cnst_is_pT_over_20GeV = is_pT_over_20GeV;
555 if (!passed_track_preselection)
continue;
558 int checkB[2] = {0, 0};
559 int checkEC[2] = {0, 0};
560 int checkEC_B[2] = {0, 0};
562 int nTRTHits_side[2][2];
563 int nTRTHitsW_perwheel[2][18];
564 int hitontrack[2] = {0, 0};
565 int hitontrack_E_side[2] = {0, 0};
567 for (
int ibe = 0; ibe < 2; ibe++) {
568 for (
int iside = 0; iside < 2; iside++) {
569 nTRTHits_side[ibe][iside] = -1;
570 nTRTHitsW[ibe][iside] = 0;
572 std::fill(nTRTHitsW_perwheel[ibe], nTRTHitsW_perwheel[ibe] + 18, 0);
576 int layer_or_wheel = 0;
580 int nearest_straw_layer[2] = {100, 100};
581 int nearest_straw[2] = {0, 0};
582 int testLayer[2] = {100, 100};
583 float phi2D[2] = {-100, -100};
585 for (TSOSItBeginTemp = TSOSItBegin0; TSOSItBeginTemp != TSOSItEnd; ++TSOSItBeginTemp) {
586 if ((*TSOSItBeginTemp) ==
nullptr)
continue;
591 if (!trtCircle)
continue;
594 if (!aTrackParam)
continue;
597 int ibe = std::abs(barrel_ec) - 1;
603 if (layer_or_wheel >= testLayer[ibe])
continue;
604 testLayer[ibe] = layer_or_wheel;
606 if (straw_layer < nearest_straw_layer[ibe]) {
607 nearest_straw_layer[ibe] = straw_layer;
608 nearest_straw[ibe] = straw;
612 circleElement =
nullptr;
616 if (phi2D[0] == -999) {
617 ATH_MSG_DEBUG(
"Track did not go through inner layer of Barrel.");
620 testLayer[0] <<
" m_straw_layer: " <<
621 nearest_straw_layer[0] <<
" (in the Barrel).");
624 if (phi2D[1] == -999) {
625 ATH_MSG_DEBUG(
"Track did not go through any inner layer of EndCap A or C.");
628 testLayer[1] <<
" m_straw_layer: " <<
629 nearest_straw_layer[1] <<
" (in the EndCaps).");
632 bool trackfound[2][64];
634 for (
int i = 0; i < 2; i++) {
635 std::fill(trackfound[i], trackfound[i] + 64,
false);
638 for (TSOSItBegin = TSOSItBegin0; TSOSItBegin != TSOSItEnd; ++TSOSItBegin) {
640 if ((*TSOSItBegin) ==
nullptr)
continue;
646 if (!trtCircle)
continue;
650 if (!aTrackParam)
continue;
658 int ibe = std::abs(barrel_ec) - 1;
659 int iside = barrel_ec > 0 ? 0 : 1;
660 int thisStrawNumber[2] = {-1, -1};
661 int chip[2] = {0, 0};
664 thisStrawNumber[ibe] =
strawNumber(straw, straw_layer, layer_or_wheel);
666 if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] <
s_Straw_max[ibe]) {
667 chip[ibe] =
m_mat_chip_B.at(phi_module).at(thisStrawNumber[ibe]);
669 }
else if (ibe == 1) {
670 thisStrawNumber[ibe] =
strawNumberEndCap(straw, straw_layer, layer_or_wheel, phi_module, barrel_ec);
672 if (thisStrawNumber[ibe] >= 0 && thisStrawNumber[ibe] <
s_Straw_max[ibe]) {
673 chip[ibe] =
m_mat_chip_E.at(phi_module).at(thisStrawNumber[ibe]);
676 thisStrawNumber[ibe] = -1;
679 if (thisStrawNumber[ibe] < 0 || thisStrawNumber[ibe] >=
s_Straw_max[ibe])
continue;
681 if (checkB[iside] == 0 && ibe == 0) {
686 if (checkEC[iside] == 0 && ibe == 1) {
691 if (checkEC_B[iside] == 0 && checkB[iside] == 1 && ibe == 1 ) {
692 nTracksEC_B[iside]++;
693 checkEC_B[iside] = 1;
703 int iphi_module = -9999;
705 if (iside == 0) iphi_module = phi_module;
706 else if (iside == 1) iphi_module = phi_module + 32;
708 if (iphi_module >= 0 && iphi_module < 64) trackfound[ibe][iphi_module] =
true;
719 }
else if (ibe == 1) {
721 hitontrack_E_side[iside]++;
727 if (RawDriftCircle) {
728 nTRTHits_side[ibe][iside]++;
733 if (driftTimeValid) {
734 const float validRawDriftTime = RawDriftCircle->
rawDriftTime();
737 ValidRawDriftTimeonTrkS_x = thisStrawNumber[ibe];
738 ValidRawDriftTimeonTrkS_y = validRawDriftTime;
739 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkS_x, ValidRawDriftTimeonTrkS_y);
743 ValidRawDriftTimeonTrkC_x = chip[ibe] - 1;
744 ValidRawDriftTimeonTrkC_y = validRawDriftTime;
745 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), ValidRawDriftTimeonTrkC_x, ValidRawDriftTimeonTrkC_y);
752 DriftTimeonTrkDist_B_Ar = RawDriftCircle->
rawDriftTime();
753 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B_Ar);
757 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), DriftTimeonTrkDist_B);
759 }
else if (ibe == 1) {
761 DriftTimeonTrkDist_E_Ar = RawDriftCircle->
rawDriftTime();
762 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E_Ar);
766 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), DriftTimeonTrkDist_E);
771 float locR_err = 0.0;
772 const AmgSymMatrix(5)* b_err = aTrackParam->covariance();
776 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");
782 ATH_MSG_ERROR(
"Track parameters have no covariance attached.");
793 if ((loc * locR) < 0) loc = -loc;
799 double pull_b = -999.;
800 const double diff_loc_err = std::abs(loc_err-locR_err);
801 if ( diff_loc_err > 0 ) {
802 pull_b = (loc - locR) /diff_loc_err ;
805 else pull_b_fill =
false;
807 const double trkdrifttime = (!rtr) ? 0 : rtr->
drifttime(std::abs(locR));
808 const double timeresidual = RawDriftCircle->
rawDriftTime() - thist0 - trkdrifttime;
813 Pull_Biased_Barrel = pull_b;
814 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_Barrel);
819 Residual_B_Ar = loc - locR;
820 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar);
821 Residual_noTubeHits_B_Ar = loc - locR;
822 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar);
824 if (cnst_is_pT_over_20GeV) {
825 Residual_B_Ar_20GeV = loc - locR;
826 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_Ar_20GeV);
827 Residual_noTubeHits_B_Ar_20GeV = loc - locR;
828 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_Ar_20GeV);
830 TimeResidual_B_Ar = timeresidual;
831 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B_Ar);
832 TimeResidual_noTubeHits_B_Ar = timeresidual;
833 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B_Ar);
835 Residual_B = loc - locR;
836 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B);
837 Residual_noTubeHits_B = loc - locR;
838 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B);
839 TimeResidual_B = timeresidual;
840 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_B);
841 TimeResidual_noTubeHits_B = timeresidual;
842 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TimeResidual_noTubeHits_B);
844 if (cnst_is_pT_over_20GeV) {
845 Residual_B_20GeV = loc - locR;
846 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_B_20GeV);
847 Residual_noTubeHits_B_20GeV = loc - locR;
848 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Residual_noTubeHits_B_20GeV);
851 }
else if (ibe == 1) {
854 Pull_Biased_EndCap = pull_b;
855 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), Pull_Biased_EndCap);
860 Residual_E_Ar = loc - locR;
861 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar);
862 Residual_noTubeHits_E_Ar = loc - locR;
863 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar);
864 TimeResidual_E_Ar = timeresidual;
865 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E_Ar);
866 TimeResidual_noTubeHits_E_Ar = timeresidual;
867 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E_Ar);
869 if (cnst_is_pT_over_20GeV) {
870 Residual_E_Ar_20GeV = loc - locR;
871 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_Ar_20GeV);
872 Residual_noTubeHits_E_Ar_20GeV = loc - locR;
873 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_Ar_20GeV);
876 Residual_E = loc - locR;
877 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E);
878 Residual_noTubeHits_E = loc - locR;
879 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E);
880 TimeResidual_E = timeresidual;
881 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_E);
882 TimeResidual_noTubeHits_E = timeresidual;
883 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TimeResidual_noTubeHits_E);
885 if (cnst_is_pT_over_20GeV) {
886 Residual_E_20GeV = loc - locR;
887 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_E_20GeV);
888 Residual_noTubeHits_E_20GeV = loc - locR;
889 if (!isTubeHit)
fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), Residual_noTubeHits_E_20GeV);
898 WireToTrkPosition_B_Ar = locR;
899 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B_Ar);
901 WireToTrkPosition_B = locR;
902 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), WireToTrkPosition_B);
904 }
else if (ibe == 1) {
906 WireToTrkPosition_E_Ar = locR;
907 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E_Ar);
909 WireToTrkPosition_E = locR;
910 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), WireToTrkPosition_E);
915 const float LE = (RawDriftCircle->
driftTimeBin()) * 3.125;
916 const float EP = timeCor;
922 RtRelation_B_Ar_x = LE - EP -
t0;
923 RtRelation_B_Ar_y = std::abs(locR);
924 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
926 RtRelation_B_Ar_x = LE -
t0;
927 RtRelation_B_Ar_y = std::abs(locR);
928 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_Ar_x, RtRelation_B_Ar_y);
932 RtRelation_B_x = LE - EP -
t0;
933 RtRelation_B_y = std::abs(locR);
934 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
936 RtRelation_B_x = LE -
t0;
937 RtRelation_B_y = std::abs(locR);
938 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), RtRelation_B_x, RtRelation_B_y);
941 }
else if (ibe == 1) {
944 RtRelation_E_Ar_x = LE - EP -
t0;
945 RtRelation_E_Ar_y = std::abs(locR);
946 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
948 RtRelation_E_Ar_x = LE -
t0;
949 RtRelation_E_Ar_y = std::abs(locR);
950 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_Ar_x, RtRelation_E_Ar_y);
954 RtRelation_E_x = LE - EP -
t0;
955 RtRelation_E_y = std::abs(locR);
956 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
958 RtRelation_E_x = LE -
t0;
959 RtRelation_E_y = std::abs(locR);
960 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), RtRelation_E_x, RtRelation_E_y);
979 HitTronTMapC_x = chip[ibe] - 1;
980 HitTronTMapC_y = trailingEdgeScaled;
981 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTMapC_x, HitTronTMapC_y);
985 HitTronTwEPCMapS_x = thisStrawNumber[ibe];
986 HitTronTwEPCMapS_y = trailingEdgeScaled - timeCor;
987 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapS_x, HitTronTwEPCMapS_y);
991 HitTronTwEPCMapC_x = chip[ibe] - 1;
992 HitTronTwEPCMapC_y = trailingEdgeScaled - timeCor;
993 fill(
"TRTTrackHistograms"+std::to_string(ibe)+std::to_string(iphi_module), HitTronTwEPCMapC_x, HitTronTwEPCMapC_y);
1000 TronTDist_B_Ar = trailingEdgeScaled;
1001 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B_Ar);
1002 AvgTroTDetPhi_B_Ar_x = phi2D[ibe];
1003 AvgTroTDetPhi_B_Ar_y = trailingEdgeScaled;
1004 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_Ar_x, AvgTroTDetPhi_B_Ar_y);
1006 TronTDist_B = trailingEdgeScaled;
1007 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), TronTDist_B);
1008 AvgTroTDetPhi_B_x = phi2D[ibe];
1009 AvgTroTDetPhi_B_y = trailingEdgeScaled;
1010 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), AvgTroTDetPhi_B_x, AvgTroTDetPhi_B_y);
1012 }
else if (ibe == 1) {
1014 TronTDist_E_Ar = trailingEdgeScaled;
1015 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E_Ar);
1016 AvgTroTDetPhi_E_Ar_x = phi2D[ibe];
1017 AvgTroTDetPhi_E_Ar_y = trailingEdgeScaled;
1018 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_Ar_x, AvgTroTDetPhi_E_Ar_y);
1020 TronTDist_E = trailingEdgeScaled;
1021 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), TronTDist_E);
1022 AvgTroTDetPhi_E_x = phi2D[ibe];
1023 AvgTroTDetPhi_E_y = trailingEdgeScaled;
1024 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), AvgTroTDetPhi_E_x, AvgTroTDetPhi_E_y);
1034 for (
int ibe = 0; ibe < 2; ibe++) {
1035 for (
int i = 0; i < 64; i++)
1036 if (trackfound[ibe][i])
1037 ntrackstack[ibe][i]++;
1042 NumHoTDetPhi_B_x = phi2D[ibe];
1043 NumHoTDetPhi_B_y = hitontrack[ibe];
1044 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), NumHoTDetPhi_B_x, NumHoTDetPhi_B_y);
1050 NumHoTDetPhi_E_x = phi2D[ibe];
1051 NumHoTDetPhi_E_y = hitontrack_E_side[0];
1052 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"0", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1056 NumHoTDetPhi_E_x = phi2D[ibe];
1057 NumHoTDetPhi_E_y = hitontrack_E_side[1];
1058 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"1", NumHoTDetPhi_E_x, NumHoTDetPhi_E_y);
1063 if (phi2D[ibe] < 0)
continue;
1067 if (nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1] > 0) {
1068 NumTrksDetPhi_B = phi2D[ibe];
1069 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), NumTrksDetPhi_B);
1071 }
else if (ibe == 1) {
1072 if (nTRTHitsW[ibe][0] > 0) {
1073 NumTrksDetPhi_E = phi2D[ibe];
1074 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"0", NumTrksDetPhi_E);
1077 if (nTRTHitsW[ibe][1] > 0) {
1078 NumTrksDetPhi_E = phi2D[ibe];
1079 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+
"1", NumTrksDetPhi_E);
1085 if ((nTRTHitsW[ibe][0] + nTRTHitsW[ibe][1]) > 0) {
1088 if (comTimeObject) {
1089 if (
m_doShift && (phi2D[ibe] > 0) && (std::abs(timeCor) > 1e-8)) {
1090 EvtPhaseDetPhi_B_x = phi2D[ibe];
1091 EvtPhaseDetPhi_B_y = timeCor;
1092 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe), EvtPhaseDetPhi_B_x, EvtPhaseDetPhi_B_y);
1095 }
else if (ibe == 1) {
1096 for (
int iside = 0; iside < 2; iside++) {
1097 if (nTRTHitsW[ibe][iside] > 0) nTrksperLB_E[iside]++;
1098 if (comTimeObject) {
1099 if (nTRTHits_side[ibe][iside] > 5 && (std::abs(timeCor)
1102 EvtPhaseDetPhi_E_x = phi2D[ibe];
1103 EvtPhaseDetPhi_E_y = timeCor;
1104 fill(
"ShiftTRTTrackHistograms"+std::to_string(ibe)+std::to_string(iside), EvtPhaseDetPhi_E_x, EvtPhaseDetPhi_E_y);
1113 if (comTimeObject) {
1114 static const std::string histoName{
"ShiftTRTTrackHistograms0"};
1115 if (std::abs(timeCor) > 1e-8) {
1118 fill(histoName, EvtPhase);
1122 std::vector<int> trigid;
1125 std::vector<unsigned int> level1TAV = trigDecision->
tav();
1127 for (
unsigned int j = 0; j < 8 && j < level1TAV.size(); ++j) {
1128 for (
unsigned int i = 0; i < 32; ++i) {
1129 if ((level1TAV[j] >> i) & 0x1) {
1130 trigid.push_back(i + (j % 8) * 32);
1135 for (
unsigned int j = 0; j < trigid.size(); ++j) {
1136 EvtPhaseVsTrig_x = timeCor;
1137 EvtPhaseVsTrig_y = trigid[j];
1138 fill(histoName, EvtPhaseVsTrig_x, EvtPhaseVsTrig_y);
1147 fill(
"SmryHistograms", SummaryWeight, Summary);
1151 SummaryWeight = nTotalTracks;
1152 fill(
"SmryHistograms", SummaryWeight, Summary);
1154 SummaryWeight = nTracksB[0];
1155 fill(
"SmryHistograms", SummaryWeight, Summary);
1157 SummaryWeight = nTracksB[1];
1158 fill(
"SmryHistograms", SummaryWeight, Summary);
1160 SummaryWeight = nTracksEC[0];
1161 fill(
"SmryHistograms", SummaryWeight, Summary);
1163 SummaryWeight = nTracksEC[1];
1164 fill(
"SmryHistograms", SummaryWeight, Summary);
1166 SummaryWeight = nTracksEC_B[0];
1167 fill(
"SmryHistograms", SummaryWeight, Summary);
1169 SummaryWeight = nTracksEC_B[1];
1170 fill(
"SmryHistograms", SummaryWeight, Summary);
1173 const unsigned int lumiBlock = eventInfo.
lumiBlock();
1175 int lastLumiBlock = -99;
1176 if ((
int)lumiBlock != lastLumiBlock) {
1177 lastLumiBlock = lumiBlock;
1179 float evtLumiBlock = 1.;
1180 float lumiBlockScale = (evtLumiBlock > 0) ? (1. / evtLumiBlock) : 0;
1183 NTrksperLB_x = lastLumiBlock;
1184 NTrksperLB_y = (float)nTrksperLB_B * lumiBlockScale;
1185 fill(
"ShiftTRTTrackHistograms0", NTrksperLB_x, NTrksperLB_y);
1187 for (
int iside = 0; iside < 2; iside++) {
1188 NTrksperLB_x = lastLumiBlock;
1189 NTrksperLB_y = (float)nTrksperLB_E[iside] * lumiBlockScale;
1190 fill(
"ShiftTRTTrackHistograms1"+std::to_string(iside), NTrksperLB_x, NTrksperLB_y);
1195 for (
int iside = 0; iside < 2; iside++) {
1196 nTrksperLB_E[iside] = 0;
1204 return StatusCode::SUCCESS;