IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Antonio Augusto Alves Junior
corsika
Commits
c4d903e0
Commit
c4d903e0
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
added first template-tracking code
parent
62b62a47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Processes/CMakeLists.txt
+2
-0
2 additions, 0 deletions
Processes/CMakeLists.txt
Processes/TrackingLine/CMakeLists.txt
+38
-0
38 additions, 0 deletions
Processes/TrackingLine/CMakeLists.txt
Processes/TrackingLine/TrackingLine.h
+35
-0
35 additions, 0 deletions
Processes/TrackingLine/TrackingLine.h
with
75 additions
and
0 deletions
Processes/CMakeLists.txt
+
2
−
0
View file @
c4d903e0
...
...
@@ -2,9 +2,11 @@
add_subdirectory
(
NullModel
)
add_subdirectory
(
Sibyll
)
add_subdirectory
(
StackInspector
)
add_subdirectory
(
TrackingLine
)
#add_custom_target(CORSIKAprocesses)
add_library
(
CORSIKAprocesses INTERFACE
)
add_dependencies
(
CORSIKAprocesses ProcessNullModel
)
add_dependencies
(
CORSIKAprocesses ProcessSibyll
)
add_dependencies
(
CORSIKAprocesses ProcessStackInspector
)
add_dependencies
(
CORSIKAprocesses ProcessTrackingLine
)
This diff is collapsed.
Click to expand it.
Processes/TrackingLine/CMakeLists.txt
0 → 100644
+
38
−
0
View file @
c4d903e0
set
(
MODEL_HEADERS
TrackingLine.h
)
set
(
MODEL_NAMESPACE
corsika/process/tracking_line
)
add_library
(
ProcessTrackingLine INTERFACE
)
CORSIKA_COPY_HEADERS_TO_NAMESPACE
(
ProcessTrackingLine
${
MODEL_NAMESPACE
}
${
MODEL_HEADERS
}
)
target_include_directories
(
ProcessTrackingLine
INTERFACE
$<BUILD_INTERFACE:
${
PROJECT_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:include/include>
)
install
(
FILES
${
MODEL_HEADERS
}
DESTINATION include/
${
MODEL_NAMESPACE
}
)
# # --------------------
# # code unit testing
# add_executable (testStackInspector testStackInspector.cc)
# target_link_libraries (
# testStackInspector
# CORSIKAunits
# CORSIKAthirdparty # for catch2
# )
# add_test (NAME testStackInspector COMMAND testStackInspector)
This diff is collapsed.
Click to expand it.
Processes/TrackingLine/TrackingLine.h
0 → 100644
+
35
−
0
View file @
c4d903e0
#ifndef _include_corsika_processes_TrackinLine_h_
#define _include_corsika_processes_TrackinLine_h_
#include
<corsika/geometry/Vector.h>
#include
<corsika/geometry/Point.h>
#include
<corsika/units/PhysicalUnits.h>
#include
<corsika/setup/SetupStack.h>
#include
<corsika/setup/SetupTrajectory.h>
using
namespace
corsika
;
namespace
corsika
::
process
{
namespace
tracking_line
{
template
<
typename
Stack
>
class
TrackingLine
{
// Newton-step, naja.. not yet
typedef
typename
Stack
::
ParticleType
Particle
;
public:
void
Init
()
{}
setup
::
Trajectory
GetTrack
(
Particle
&
p
)
{
geometry
::
Vector
<
SpeedType
::
dimension_type
>
v
=
p
.
GetDirection
();
geometry
::
Line
traj
(
p
.
GetPosition
(),
v
);
return
geometry
::
Trajectory
<
corsika
::
geometry
::
Line
>
(
traj
,
100
_ns
);
}
};
}
// namespace stack_inspector
}
// namespace corsika::process
#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