981 AutoResettingStringSteam sstr;
983 std::string MaxTrackHitsIndexStr(
"[" + sstr.str() +
"]");
985 std::string TrackLabel = tracker;
986 std::string BranchName;
988 BranchName =
"ntracks_" + TrackLabel;
989 CreateBranch(BranchName, &
ntracks, BranchName +
"/S");
990 std::string NTracksIndexStr =
"[" + BranchName +
"]";
992 BranchName =
"trkId_" + TrackLabel;
993 CreateBranch(BranchName,
trkId, BranchName + NTracksIndexStr +
"/S");
995 BranchName =
"trkncosmictags_tagger_" + TrackLabel;
998 BranchName =
"trkcosmicscore_tagger_" + TrackLabel;
1001 BranchName =
"trkcosmictype_tagger_" + TrackLabel;
1004 BranchName =
"trkncosmictags_flashmatch_" + TrackLabel;
1007 BranchName =
"trkcosmicscore_flashmatch_" + TrackLabel;
1010 BranchName =
"trkcosmictype_flashmatch_" + TrackLabel;
1013 BranchName =
"trkke_" + TrackLabel;
1014 CreateBranch(BranchName,
trkke, BranchName + NTracksIndexStr +
"[3]/F");
1016 BranchName =
"trkrange_" + TrackLabel;
1017 CreateBranch(BranchName,
trkrange, BranchName + NTracksIndexStr +
"[3]/F");
1019 BranchName =
"trkidtruth_recoutils_totaltrueenergy_" + TrackLabel;
1022 BranchName =
"trkidtruth_recoutils_totalrecocharge_" + TrackLabel;
1025 BranchName =
"trkidtruth_recoutils_totalrecohits_" + TrackLabel;
1028 BranchName =
"trkidtruth_" + TrackLabel;
1029 CreateBranch(BranchName,
trkidtruth, BranchName + NTracksIndexStr +
"[3]/I");
1031 BranchName =
"trkorigin_" + TrackLabel;
1032 CreateBranch(BranchName,
trkorigin, BranchName + NTracksIndexStr +
"[3]/S");
1034 BranchName =
"trkpdgtruth_" + TrackLabel;
1035 CreateBranch(BranchName,
trkpdgtruth, BranchName + NTracksIndexStr +
"[3]/I");
1037 BranchName =
"trkefftruth_" + TrackLabel;
1038 CreateBranch(BranchName,
trkefftruth, BranchName + NTracksIndexStr +
"[3]/F");
1040 BranchName =
"trksimIDEenergytruth_" + TrackLabel;
1043 BranchName =
"trksimIDExtruth_" + TrackLabel;
1044 CreateBranch(BranchName,
trksimIDExtruth, BranchName + NTracksIndexStr +
"[3]/F");
1046 BranchName =
"trksimIDEytruth_" + TrackLabel;
1047 CreateBranch(BranchName,
trksimIDEytruth, BranchName + NTracksIndexStr +
"[3]/F");
1049 BranchName =
"trksimIDEztruth_" + TrackLabel;
1050 CreateBranch(BranchName,
trksimIDEztruth, BranchName + NTracksIndexStr +
"[3]/F");
1052 BranchName =
"trkpurtruth_" + TrackLabel;
1053 CreateBranch(BranchName,
trkpurtruth, BranchName + NTracksIndexStr +
"[3]/F");
1055 BranchName =
"trkpitchc_" + TrackLabel;
1056 CreateBranch(BranchName,
trkpitchc, BranchName + NTracksIndexStr +
"[3]/F");
1058 BranchName =
"ntrkhits_" + TrackLabel;
1059 CreateBranch(BranchName,
ntrkhits, BranchName + NTracksIndexStr +
"[3]/S");
1062 BranchName =
"trkdedx_" + TrackLabel;
1063 CreateBranch(BranchName,
trkdedx, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1065 BranchName =
"trkxp_" + TrackLabel;
1066 CreateBranch(BranchName,
trkxp, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1068 BranchName =
"trkyp_" + TrackLabel;
1069 CreateBranch(BranchName,
trkyp, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1071 BranchName =
"trkzp_" + TrackLabel;
1072 CreateBranch(BranchName,
trkzp, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1074 BranchName =
"trkdqdx_" + TrackLabel;
1075 CreateBranch(BranchName,
trkdqdx, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1077 BranchName =
"trkresrg_" + TrackLabel;
1078 CreateBranch(BranchName,
trkresrg, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1080 BranchName =
"trkxyz_" + TrackLabel;
1081 CreateBranch(BranchName,
trkxyz, BranchName + NTracksIndexStr +
"[3]" + MaxTrackHitsIndexStr +
"/F");
1084 BranchName =
"trkstartx_" + TrackLabel;
1085 CreateBranch(BranchName,
trkstartx, BranchName + NTracksIndexStr +
"/F");
1087 BranchName =
"trkstarty_" + TrackLabel;
1088 CreateBranch(BranchName,
trkstarty, BranchName + NTracksIndexStr +
"/F");
1090 BranchName =
"trkstartz_" + TrackLabel;
1091 CreateBranch(BranchName,
trkstartz, BranchName + NTracksIndexStr +
"/F");
1093 BranchName =
"trkstartd_" + TrackLabel;
1094 CreateBranch(BranchName,
trkstartd, BranchName + NTracksIndexStr +
"/F");
1096 BranchName =
"trkendx_" + TrackLabel;
1097 CreateBranch(BranchName,
trkendx, BranchName + NTracksIndexStr +
"/F");
1099 BranchName =
"trkendy_" + TrackLabel;
1100 CreateBranch(BranchName,
trkendy, BranchName + NTracksIndexStr +
"/F");
1102 BranchName =
"trkendz_" + TrackLabel;
1103 CreateBranch(BranchName,
trkendz, BranchName + NTracksIndexStr +
"/F");
1105 BranchName =
"trkendd_" + TrackLabel;
1106 CreateBranch(BranchName,
trkendd, BranchName + NTracksIndexStr +
"/F");
1108 BranchName =
"trktheta_" + TrackLabel;
1109 CreateBranch(BranchName,
trktheta, BranchName + NTracksIndexStr +
"/F");
1111 BranchName =
"trkphi_" + TrackLabel;
1112 CreateBranch(BranchName,
trkphi, BranchName + NTracksIndexStr +
"/F");
1114 BranchName =
"trkstartdcosx_" + TrackLabel;
1115 CreateBranch(BranchName,
trkstartdcosx, BranchName + NTracksIndexStr +
"/F");
1117 BranchName =
"trkstartdcosy_" + TrackLabel;
1118 CreateBranch(BranchName,
trkstartdcosy, BranchName + NTracksIndexStr +
"/F");
1120 BranchName =
"trkstartdcosz_" + TrackLabel;
1121 CreateBranch(BranchName,
trkstartdcosz, BranchName + NTracksIndexStr +
"/F");
1123 BranchName =
"trkenddcosx_" + TrackLabel;
1124 CreateBranch(BranchName,
trkenddcosx, BranchName + NTracksIndexStr +
"/F");
1126 BranchName =
"trkenddcosy_" + TrackLabel;
1127 CreateBranch(BranchName,
trkenddcosy, BranchName + NTracksIndexStr +
"/F");
1129 BranchName =
"trkenddcosz_" + TrackLabel;
1130 CreateBranch(BranchName,
trkenddcosz, BranchName + NTracksIndexStr +
"/F");
1132 BranchName =
"trkthetaxz_" + TrackLabel;
1133 CreateBranch(BranchName,
trkthetaxz, BranchName + NTracksIndexStr +
"/F");
1135 BranchName =
"trkthetayz_" + TrackLabel;
1136 CreateBranch(BranchName,
trkthetayz, BranchName + NTracksIndexStr +
"/F");
1150 BranchName =
"trklen_" + TrackLabel;
1151 CreateBranch(BranchName,
trklen, BranchName + NTracksIndexStr +
"/F");
1153 BranchName =
"trksvtxid_" + TrackLabel;
1154 CreateBranch(BranchName,
trksvtxid, BranchName + NTracksIndexStr +
"/S");
1156 BranchName =
"trkevtxid_" + TrackLabel;
1157 CreateBranch(BranchName,
trkevtxid, BranchName + NTracksIndexStr +
"/S");
1159 BranchName =
"trkpidpdg_" + TrackLabel;
1160 CreateBranch(BranchName,
trkpidpdg, BranchName + NTracksIndexStr +
"[3]/I");
1162 BranchName =
"trkpidchi_" + TrackLabel;
1163 CreateBranch(BranchName,
trkpidchi, BranchName + NTracksIndexStr +
"[3]/F");
1165 BranchName =
"trkpidchipr_" + TrackLabel;
1166 CreateBranch(BranchName,
trkpidchipr, BranchName + NTracksIndexStr +
"[3]/F");
1168 BranchName =
"trkpidchika_" + TrackLabel;
1169 CreateBranch(BranchName,
trkpidchika, BranchName + NTracksIndexStr +
"[3]/F");
1171 BranchName =
"trkpidchipi_" + TrackLabel;
1172 CreateBranch(BranchName,
trkpidchipi, BranchName + NTracksIndexStr +
"[3]/F");
1174 BranchName =
"trkpidchimu_" + TrackLabel;
1175 CreateBranch(BranchName,
trkpidchimu, BranchName + NTracksIndexStr +
"[3]/F");
1177 BranchName =
"trkpidpida_" + TrackLabel;
1178 CreateBranch(BranchName,
trkpidpida, BranchName + NTracksIndexStr +
"[3]/F");
1180 BranchName =
"trkpidbestplane_" + TrackLabel;
1181 CreateBranch(BranchName,
trkpidbestplane, BranchName + NTracksIndexStr +
"/S");
TrackData_t< Float_t > trkcosmicscore_flashmatch
HitData_t< Float_t > trkyp
TrackData_t< Float_t > trkendd
PlaneData_t< Float_t > trkpidchimu
TrackData_t< Short_t > trkcosmictype_flashmatch
HitData_t< Float_t > trkdedx
TrackData_t< Short_t > trkId
PlaneData_t< Int_t > trkpidpdg
HitData_t< Float_t > trkzp
TrackData_t< Float_t > trkenddcosz
PlaneData_t< Float_t > trkke
PlaneData_t< Float_t > trkpidchipr
TrackData_t< Float_t > trkcosmicscore_tagger
size_t MaxTracks
maximum number of storable tracks
PlaneData_t< Short_t > trkorigin
TrackData_t< Short_t > trkncosmictags_flashmatch
TrackData_t< Float_t > trkphi
PlaneData_t< Float_t > trksimIDEztruth
TrackData_t< Float_t > trklen
TrackData_t< Float_t > trkstartz
Little helper functor class to create or reset branches in a tree.
PlaneData_t< Float_t > trksimIDExtruth
TrackData_t< Short_t > trksvtxid
PlaneData_t< Float_t > trkpidpida
TrackData_t< Float_t > trktheta
TrackData_t< Float_t > trkstartdcosx
PlaneData_t< Float_t > trksimIDEytruth
PlaneData_t< Short_t > ntrkhits
HitData_t< Float_t > trkresrg
HitData_t< Float_t > trkxp
TrackData_t< Short_t > trkpidbestplane
TrackData_t< Float_t > trkstartd
PlaneData_t< Float_t > trkpitchc
PlaneData_t< Int_t > trkidtruth_recoutils_totalrecocharge
PlaneData_t< Float_t > trkefftruth
TrackData_t< Short_t > trkcosmictype_tagger
PlaneData_t< Float_t > trkpidchi
TrackData_t< Float_t > trkendz
TrackData_t< Float_t > trkstartdcosz
HitData_t< Float_t > trkdqdx
TrackData_t< Float_t > trkstartdcosy
TrackData_t< Float_t > trkthetaxz
constexpr int kMaxTrackHits
TrackData_t< Float_t > trkstarty
PlaneData_t< Int_t > trkidtruth_recoutils_totaltrueenergy
TrackData_t< Float_t > trkendy
TrackData_t< Float_t > trkenddcosx
TrackData_t< Float_t > trkthetayz
PlaneData_t< Float_t > trkpidchika
PlaneData_t< Float_t > trkpidchipi
PlaneData_t< Float_t > trksimIDEenergytruth
HitCoordData_t< Float_t > trkxyz
TrackData_t< Short_t > trkncosmictags_tagger
PlaneData_t< Int_t > trkidtruth_recoutils_totalrecohits
TrackData_t< Short_t > trkevtxid
PlaneData_t< Float_t > trkrange
PlaneData_t< Int_t > trkpdgtruth
PlaneData_t< Int_t > trkidtruth
TrackData_t< Float_t > trkstartx
TrackData_t< Float_t > trkendx
PlaneData_t< Float_t > trkpurtruth
TrackData_t< Float_t > trkenddcosy