Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions RecoTracker/LSTCore/standalone/code/core/write_lst_ntuple.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1770,17 +1770,18 @@ std::map<unsigned int, unsigned int> setPixelLineSegmentBranches(LSTEvent* event
ana.tx->pushbackToBranch<int>("pLS_charge", pixelSeeds.charge()[ipLS]);
ana.tx->pushbackToBranch<float>("pLS_deltaPhi", pixelSeeds.deltaPhi()[ipLS]);
ana.tx->pushbackToBranch<int>("pLS_nhit", hit_idx.size());
for (size_t ihit = 0; ihit < trk_see_hitIdx[ipLS].size(); ++ihit) {
int hitidx = trk_see_hitIdx[ipLS][ihit];
int hittype = trk_see_hitType[ipLS][ihit];
unsigned int seedIdx = pixelSeeds.seedIdx()[ipLS];
for (size_t ihit = 0; ihit < trk_see_hitIdx[seedIdx].size(); ++ihit) {
int hitidx = trk_see_hitIdx[seedIdx][ihit];
int hittype = trk_see_hitType[seedIdx][ihit];
auto const& x = trk_pix_x[hitidx];
auto const& y = trk_pix_y[hitidx];
auto const& z = trk_pix_z[hitidx];
ana.tx->pushbackToBranch<float>(TString::Format("pLS_hit%zu_x", ihit), x);
ana.tx->pushbackToBranch<float>(TString::Format("pLS_hit%zu_y", ihit), y);
ana.tx->pushbackToBranch<float>(TString::Format("pLS_hit%zu_z", ihit), z);
}
if (trk_see_hitIdx[ipLS].size() == 3) {
if (trk_see_hitIdx[seedIdx].size() == 3) {
ana.tx->pushbackToBranch<float>("pLS_hit3_x", -999);
ana.tx->pushbackToBranch<float>("pLS_hit3_y", -999);
ana.tx->pushbackToBranch<float>("pLS_hit3_z", -999);
Expand Down