Skip to content

Conversation

@michaelmackenzie
Copy link
Contributor

No description provided.

@FNALbuild
Copy link
Collaborator

Hi @michaelmackenzie,
You have proposed changes to files in these packages:

  • Mu2eUtilities
  • Filters

which require these tests: build.

@Mu2e/fnalbuild-users, @Mu2e/write have access to CI actions on main.

⌛ The following tests have been triggered for 1c80479: build (Build queue - API unavailable)

About FNALbuild. Code review on Mu2e/Offline.

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at 1c80479.

Test Result Details
test with Command did not list any other PRs to include
merge Merged 1c80479 at e391635
build (prof) Log file. Build time: 04 min 47 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
trigger Log file.
check_cmake Log file.
FIXME, TODO TODO (0) FIXME (0) in 2 files
clang-tidy 🔶 1 errors 7 warnings
whitespace check no whitespace errors found

N.B. These results were obtained from a build of this Pull Request at 1c80479 after being merged into the base branch at e391635.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

Comment("Trigger line names to test; if any of these are set the event will pass the filter"), vector<string>()};
fhicl::Sequence<unsigned> triggerBits{ Name("TriggerBits"),
Comment("Trigger line bits to test; if any of these are set the event will pass the filter"), vector<unsigned>()};
};
Copy link
Contributor

Choose a reason for hiding this comment

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

In the future, it would be nice if you could align the different fields, this makes the code easier to read

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to better align these

throw cet::exception("TRIGGER") << "TriggerResultsNavigator: Bit " << bit << " not found";
}

// Has ith path accepted the event?
Copy link
Contributor

Choose a reason for hiding this comment

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

Please avoid implementing functions in the header because any change can trigger massive recompilation (exception: simple accessor /setter). Could you implement this in the cc file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved these to the cc file

return accepted(name);
}

bool wasrun(std::string const& name) const;
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that the trigger navigators relies a lot on strings, which is slow. IS there a way to improve this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added unordered maps so we can avoid more string comparisons. Users may ask about the bit, the string name, or the index, so all of these interfaces need to be maintained. I think this version should be clearer though.

@michaelmackenzie
Copy link
Contributor Author

I updated the interface to be clearer, but this leads to downstream updates. Before it was ambiguous if an access was using/returning the bit or list index, now methods include this information in the function name.

@michaelmackenzie
Copy link
Contributor Author

@FNALbuild run build test

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for 2709cea: build (Build queue - API unavailable)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at 2709cea.

Test Result Details
test with Command did not list any other PRs to include
merge Merged 2709cea at 5d5efb9
build (prof) Log file. Build time: 09 min 25 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
trigger Log file.
check_cmake Log file.
FIXME, TODO 🔶 TODO (0) FIXME (1) in 6 files
clang-tidy 🔶 7 errors 578 warnings
whitespace check no whitespace errors found

N.B. These results were obtained from a build of this Pull Request at 2709cea after being merged into the base branch at 5d5efb9.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

Copy link
Collaborator

@brownd1978 brownd1978 left a comment

Choose a reason for hiding this comment

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

Looks good to me

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