Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
np
nptool
Commits
a4565f32
Commit
a4565f32
authored
4 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* Adding Tracking utility file
parent
b2f6db6b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPLib/TrackReconstruction/CMakeLists.txt
+1
-1
1 addition, 1 deletion
NPLib/TrackReconstruction/CMakeLists.txt
NPLib/TrackReconstruction/NPTrackingUtility.h
+34
-0
34 additions, 0 deletions
NPLib/TrackReconstruction/NPTrackingUtility.h
with
35 additions
and
1 deletion
NPLib/TrackReconstruction/CMakeLists.txt
+
1
−
1
View file @
a4565f32
...
@@ -7,4 +7,4 @@ add_custom_command(OUTPUT TrackingDict.cxx COMMAND ${CMAKE_BINARY_DIR}/scripts/b
...
@@ -7,4 +7,4 @@ add_custom_command(OUTPUT TrackingDict.cxx COMMAND ${CMAKE_BINARY_DIR}/scripts/b
add_library
(
NPTrackReconstruction SHARED NPRansac.cxx NPCluster.cxx NPTrack.cxx Tracking.cxx NPRansacDict.cxx NPClusterDict.cxx TrackingDict.cxx
)
add_library
(
NPTrackReconstruction SHARED NPRansac.cxx NPCluster.cxx NPTrack.cxx Tracking.cxx NPRansacDict.cxx NPClusterDict.cxx TrackingDict.cxx
)
target_link_libraries
(
NPTrackReconstruction
${
ROOT_LIBRARIES
}
NPCore
)
target_link_libraries
(
NPTrackReconstruction
${
ROOT_LIBRARIES
}
NPCore
)
install
(
FILES NPRansac.h NPCluster.h NPTrack.h Tracking.h DESTINATION
${
CMAKE_INCLUDE_OUTPUT_DIRECTORY
}
)
install
(
FILES NPRansac.h NPCluster.h NPTrack.h Tracking.h
NPTrackingUtility.h
DESTINATION
${
CMAKE_INCLUDE_OUTPUT_DIRECTORY
}
)
This diff is collapsed.
Click to expand it.
NPLib/TrackReconstruction/NPTrackingUtility.h
0 → 100644
+
34
−
0
View file @
a4565f32
#ifndef NPUTILITY_H
#define NPUTILITY_H
/*****************************************************************************
* Copyright (C) 2009-2016 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* *
* Original Author : Adrien Matta contact address: matta@lpccaen.in2p3.fr *
* *
* Creation Date : July 2020 *
*---------------------------------------------------------------------------*
* Decription: *
* This class deal with finding all the track event by event *
*****************************************************************************/
namespace
NPL
{
double
MinimunDistance
(
TVector3
v1
,
TVector3
v2
,
TVector3
w1
,
TVector3
w2
){
TVector3
v
=
v1
-
v2
;
TVector3
w
=
w2
-
w1
;
// Minimum distance
// let be n perpendicular to both line
TVector3
n
=
v
.
Cross
(
w
);
double
d
=
n
.
Dot
(
v1
-
w1
)
/
n
.
Mag
();
return
d
;
}
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment