Skip to content

Conversation

@fengyvoid
Copy link
Contributor

EBLAPPD Tool in EventBuildingV2 tool set.

This is also splitted from PR #307

@S81D S81D self-assigned this Aug 22, 2025
@S81D
Copy link
Collaborator

S81D commented Aug 28, 2025

This looks good! New tool and no obvious problems. We have used this extensively and have not observed any problems.


bool EBLAPPD::Matching(int targetTrigger, int matchToTrack)
{
cout << "\033[1;34m******* EBLAPPD : Matching *******\033[0m" << endl;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printout

{
uint64_t LAPPDtime = MatchBuffer_LAPPDTimestamp_ns.at(i);
// if found LAPPDtime at PairedLAPPDTimeStamps, skip //shouldn't happen
if (std::find(PairedLAPPDTimeStamps[matchToTrack].begin(), PairedLAPPDTimeStamps[matchToTrack].end(), LAPPDtime) != PairedLAPPDTimeStamps[matchToTrack].end())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count rather than find

int matchedTrack = 0;
int matchedIndex = 0;

for (std::pair<int, std::vector<std::map<uint64_t, uint32_t>>> pair : GroupedTriggersInTotal)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a reference to avoid copy

// Log("EBLAPPD: Skipping TrackTriggerWord " + std::to_string(TrackTriggerWord), v_debug, verbosityEBLAPPD);
continue;
}
vector<std::map<uint64_t, uint32_t>> GroupedTriggers = pair.second;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a reference to avoid copy


for (int j = 0; j < GroupedTriggers.size(); j++)
{
map<uint64_t, uint32_t> groupedTrigger = GroupedTriggers.at(j);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a reference to avoid copy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants