Skip to content
Snippets Groups Projects

UTHitHandle filled based on new UT channelID

Merged Xuhao Yuan requested to merge UT-newID-and-Geo into master
2 files
+ 59
47
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,24 +50,28 @@ void DumpUTHits::operator()(const LHCb::ODIN& odin, const UT::HitHandler& hitHan
auto ut_highThreshold = std::array<std::vector<int>, n_layers_ut> {};
auto ut_LHCbID = std::array<std::vector<unsigned int>, n_layers_ut> {};
for (int iStation = 1; iStation < 3; ++iStation) {
for (int iLayer = 1; iLayer < 3; ++iLayer) {
for (int iRegion = 1; iRegion < 4; ++iRegion) {
for (int iSector = 1; iSector < 99; ++iSector) {
for (const auto& hit : hitHandler.hits(iStation, iLayer, iRegion, iSector)) {
/* For GPU input */
ut_cos[hit.planeCode()].push_back(hit.cos());
ut_yBegin[hit.planeCode()].push_back(hit.yBegin());
ut_yEnd[hit.planeCode()].push_back(hit.yEnd());
ut_dxDy[hit.planeCode()].push_back(hit.dxDy());
ut_zAtYEq0[hit.planeCode()].push_back(hit.zAtYEq0());
ut_xAtYEq0[hit.planeCode()].push_back(hit.xAtYEq0());
ut_weight[hit.planeCode()].push_back(hit.weight());
ut_highThreshold[hit.planeCode()].push_back(hit.highThreshold());
ut_LHCbID[hit.planeCode()].push_back(hit.lhcbID().lhcbID());
}
}
}
for (int iSide = 0; iSide < 2; ++iSide) {
for (int iLayer = 0; iLayer < 4; ++iLayer) {
for (int iStave = 0; iStave < 9; ++iStave) {
for (int iFace = 0; iFace < 2; ++iFace) {
for (int iModule = 0; iModule < 8; ++iModule) {
for (int iSector = 0; iSector < 0; ++iSector) {
for (const auto& hit : hitHandler.hits(iSide, iLayer, iStave, iFace, iModule, iSector)) {
/* For GPU input */
ut_cos[hit.planeCode()].push_back(hit.cos());
ut_yBegin[hit.planeCode()].push_back(hit.yBegin());
ut_yEnd[hit.planeCode()].push_back(hit.yEnd());
ut_dxDy[hit.planeCode()].push_back(hit.dxDy());
ut_zAtYEq0[hit.planeCode()].push_back(hit.zAtYEq0());
ut_xAtYEq0[hit.planeCode()].push_back(hit.xAtYEq0());
ut_weight[hit.planeCode()].push_back(hit.weight());
ut_highThreshold[hit.planeCode()].push_back(hit.highThreshold());
ut_LHCbID[hit.planeCode()].push_back(hit.lhcbID().lhcbID());
}
}
}
}
}
}
}
Loading