IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
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
Model registry
Operate
Environments
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
Air Shower Physics
corsika
Commits
2dbbff20
Commit
2dbbff20
authored
3 years ago
by
Remy Prechelt
Committed by
ralfulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove Setup from HistoryObservationPlane.
parent
62331c1a
No related branches found
No related tags found
2 merge requests
!365
Ci improve
,
!356
Remove Setup and setup:: from framework
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/stack/history/HistoryObservationPlane.inl
+16
-9
16 additions, 9 deletions
corsika/detail/stack/history/HistoryObservationPlane.inl
corsika/stack/history/HistoryObservationPlane.hpp
+12
-10
12 additions, 10 deletions
corsika/stack/history/HistoryObservationPlane.hpp
with
28 additions
and
19 deletions
corsika/detail/stack/history/HistoryObservationPlane.inl
+
16
−
9
View file @
2dbbff20
...
...
@@ -13,15 +13,18 @@
namespace
corsika
::
history
{
inline
HistoryObservationPlane
::
HistoryObservationPlane
(
setup
::
Stack
const
&
stack
,
Plane
const
&
obsPlane
,
bool
deleteOnHit
)
template
<
typename
TStack
>
inline
HistoryObservationPlane
<
TStack
>
HistoryObservationPlane
(
TStack
const
&
stack
,
Plane
const
&
obsPlane
,
bool
deleteOnHit
)
:
stack_
{
stack
}
,
plane_
{
obsPlane
}
,
deleteOnHit_
{
deleteOnHit
}
{}
inline
ProcessReturn
HistoryObservationPlane
::
DoContinuous
(
setup
::
Stack
::
ParticleType
const
&
particle
,
setup
::
Trajectory
const
&
trajectory
)
{
template
<
typename
TStack
>
template
<
typename
TParticle
,
typename
TTrajectory
>
inline
ProcessReturn
HistoryObservationPlane
<
TStack
>
DoContinuous
(
TParticle
const
&
particle
,
TTrajectory
const
&
trajectory
)
{
TimeType
const
timeOfIntersection
=
(
plane_
.
getCenter
()
-
trajectory
.
getR0
()).
dot
(
plane_
.
getNormal
())
/
trajectory
.
getV0
().
dot
(
plane_
.
getNormal
());
...
...
@@ -45,8 +48,10 @@ namespace corsika::history {
}
}
inline
LengthType
HistoryObservationPlane
::
MaxStepLength
(
setup
::
Stack
::
ParticleType
const
&
,
setup
::
Trajectory
const
&
trajectory
)
{
template
<
typename
TStack
>
template
<
typename
TParticle
,
typename
TTrajectory
>
inline
LengthType
HistoryObservationPlane
<
TStack
>
MaxStepLength
(
TParticle
const
&
,
TTrajectory
const
&
trajectory
)
{
TimeType
const
timeOfIntersection
=
(
plane_
.
getCenter
()
-
trajectory
.
getR0
()).
dot
(
plane_
.
getNormal
())
/
trajectory
.
getV0
().
dot
(
plane_
.
getNormal
());
...
...
@@ -59,8 +64,10 @@ namespace corsika::history {
return
(
trajectory
.
getR0
()
-
pointOfIntersection
).
norm
()
*
1.0001
;
}
inline
void
HistoryObservationPlane
::
fillHistoryHistogram
(
setup
::
Stack
::
ParticleType
const
&
muon
)
{
template
<
typename
TStack
>
template
<
typename
TParticle
>
inline
void
HistoryObservationPlane
<
TStack
>
fillHistoryHistogram
(
TParticle
const
&
muon
)
{
double
const
muon_energy
=
muon
.
getEnergy
()
/
1
_GeV
;
int
genctr
{
0
};
...
...
This diff is collapsed.
Click to expand it.
corsika/stack/history/HistoryObservationPlane.hpp
+
12
−
10
View file @
2dbbff20
...
...
@@ -10,8 +10,6 @@
#include
<corsika/geometry/Plane.h>
#include
<corsika/process/ContinuousProcess.h>
#include
<corsika/setup/SetupStack.h>
#include
<corsika/setup/SetupTrajectory.h>
#include
<corsika/units/PhysicalUnits.h>
#include
<boost/histogram.hpp>
...
...
@@ -24,22 +22,26 @@
namespace
corsika
::
history
{
class
HistoryObservationPlane
:
public
ContinuousProcess
<
HistoryObservationPlane
>
{
template
<
typename
TStack
>
class
HistoryObservationPlane
:
public
ContinuousProcess
<
HistoryObservationPlane
<
TStack
>>
{
public:
HistoryObservationPlane
(
setup
::
Stack
const
&
,
Plane
const
&
,
bool
=
true
);
HistoryObservationPlane
(
T
Stack
const
&
,
Plane
const
&
,
bool
=
true
);
LengthType
getMaxStepLength
(
setup
::
Stack
::
p
article
_
type
const
&
,
setup
::
Trajectory
const
&
vTrajectory
);
template
<
typename
TP
article
,
type
name
TTrajectory
>
LengthType
getMaxStepLength
(
TParticle
const
&
,
T
Trajectory
const
&
vTrajectory
);
ProcessReturn
doContinuous
(
setup
::
Stack
::
particle_type
const
&
vParticle
,
setup
::
Trajectory
const
&
vTrajectory
);
template
<
typename
TParticle
,
typename
TTrajectory
>
ProcessReturn
doContinuous
(
TParticle
const
&
vParticle
,
TTrajectory
const
&
vTrajectory
);
auto
const
&
histogram
()
const
{
return
histogram_
;
}
private
:
void
fillHistoryHistogram
(
setup
::
Stack
::
particle_type
const
&
);
template
<
typename
TParticle
>
void
fillHistoryHistogram
(
TParticle
const
&
);
setup
::
Stack
const
&
stack_
;
T
Stack
const
&
stack_
;
Plane
const
plane_
;
bool
const
deleteOnHit_
;
...
...
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