Skip to content
Merged
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
6 changes: 3 additions & 3 deletions rooutil/inc/Event.hh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ namespace rooutil {
}


Tracks GetTracks() { return tracks; }
const Tracks& GetTracks() { return tracks; }
Tracks GetTracks(TrackCut cut, bool inplace = false) {
if (!inplace) { // if we are not changing inplace, then just create a new vector to return
Tracks select_tracks;
Expand Down Expand Up @@ -310,7 +310,7 @@ namespace rooutil {
}
}

CrvCoincs GetCrvCoincs() { return crv_coincs; }
const CrvCoincs& GetCrvCoincs() { return crv_coincs; }
CrvCoincs GetCrvCoincs(CrvCoincCut cut) {
CrvCoincs select_crv_coincs;
for (auto& crv_coinc : crv_coincs) {
Expand All @@ -321,7 +321,7 @@ namespace rooutil {
return select_crv_coincs;
}

TimeClusters GetTimeClusters() { return time_clusters; }
const TimeClusters& GetTimeClusters() { return time_clusters; }
TimeClusters GetTimeClusters(TimeClusterCut cut, bool inplace = false) {
if (!inplace) { // if we are not changing inplace, then just create a new vector to return
TimeClusters select_time_clusters;
Expand Down