Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rec
Manage
Activity
Members
Labels
Plan
Issues
291
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
115
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
Rec
Merge requests
!1694
Streamline upgrade ghost ID
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Streamline upgrade ghost ID
streamline-ghostid
into
master
Overview
2
Commits
1
Pipelines
2
Changes
14
Merged
Gerhard Raven
requested to merge
streamline-ghostid
into
master
5 years ago
Overview
2
Commits
1
Pipelines
2
Changes
14
Expand
avoid virtual destructors if not required
prefer front/back over *begin and *end
multiply less
add const
avoid naked new and delete, prefer std::unique_ptr
avoid repeated push_back on container, prefer constructing in one shot
prefer switch over repeated if-else-if
Edited
5 years ago
by
Marco Cattaneo
👍
0
👎
0
Merge request reports
Compare
master
version 1
9a6183d3
5 years ago
master (base)
and
latest version
latest version
7981e76c
1 commit,
5 years ago
version 1
9a6183d3
1 commit,
5 years ago
14 files
+
220
−
256
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
Tr/TrackKernel/TrackKernel/Track1DTabFunc.h
+
2
−
6
Options
@@ -35,7 +35,7 @@ namespace Track {
*/
//============================================================================
class
TabulatedFunction1D
{
class
TabulatedFunction1D
final
{
public:
/** Default Constructor with optional interpolator type argument
@@ -44,10 +44,6 @@ namespace Track {
*/
TabulatedFunction1D
(
std
::
initializer_list
<
float
>
x
);
/// Destructor
virtual
~
TabulatedFunction1D
();
public:
/** Computes the function value (y) for the given parameter (x) value
* with linear interpolation between bin edges
* does out of range check
@@ -56,7 +52,7 @@ namespace Track {
*
* @return The value of the function at the given parameter value
*/
float
value
(
const
float
x
)
const
;
float
value
(
float
x
)
const
;
private:
// data
// edges of x bins
Loading