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
35455921
Commit
35455921
authored
6 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
save node in trackingTest "stack"
parent
8883a66e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/TrackingLine/testTrackingLine.cc
+5
-3
5 additions, 3 deletions
Processes/TrackingLine/testTrackingLine.cc
Processes/TrackingLine/testTrackingLineStack.h
+7
-2
7 additions, 2 deletions
Processes/TrackingLine/testTrackingLineStack.h
with
12 additions
and
5 deletions
Processes/TrackingLine/testTrackingLine.cc
+
5
−
3
View file @
35455921
...
@@ -69,14 +69,16 @@ TEST_CASE("TrackingLine") {
...
@@ -69,14 +69,16 @@ TEST_CASE("TrackingLine") {
//~ std::cout << env.GetUniverse().get() << std::endl;
//~ std::cout << env.GetUniverse().get() << std::endl;
DummyParticle
p
(
1
_GeV
,
Vector
<
MOMENTUM
>
(
cs
,
0
_GeV
,
0
_GeV
,
1
_GeV
),
Point
(
cs
,
0
_m
,
0
_m
,
0
_m
));
auto
const
radius
=
20
_m
;
auto
const
radius
=
20
_m
;
auto
theMedium
=
corsika
::
environment
::
Environment
::
CreateNode
<
Sphere
>
(
auto
theMedium
=
corsika
::
environment
::
Environment
::
CreateNode
<
Sphere
>
(
Point
{
env
.
GetCoordinateSystem
(),
0
_m
,
0
_m
,
0
_m
},
radius
);
Point
{
env
.
GetCoordinateSystem
(),
0
_m
,
0
_m
,
0
_m
},
radius
);
universe
.
AddChild
(
std
::
move
(
theMedium
));
universe
.
AddChild
(
std
::
move
(
theMedium
));
Point
p0
(
cs
,
0
_m
,
0
_m
,
0
_m
);
auto
*
const
node
=
universe
.
GetContainingNode
(
p0
);
DummyParticle
p
(
1
_GeV
,
Vector
<
MOMENTUM
>
(
cs
,
0
_GeV
,
0
_GeV
,
1
_GeV
),
p0
,
node
);
Point
const
origin
(
cs
,
{
0
_m
,
0
_m
,
0
_m
});
Point
const
origin
(
cs
,
{
0
_m
,
0
_m
,
0
_m
});
Vector
<
corsika
::
units
::
si
::
SpeedType
::
dimension_type
>
v
(
cs
,
0
_m
/
second
,
Vector
<
corsika
::
units
::
si
::
SpeedType
::
dimension_type
>
v
(
cs
,
0
_m
/
second
,
...
...
This diff is collapsed.
Click to expand it.
Processes/TrackingLine/testTrackingLineStack.h
+
7
−
2
View file @
35455921
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#define _include_process_trackinling_teststack_h_
#define _include_process_trackinling_teststack_h_
#include
<corsika/geometry/Point.h>
#include
<corsika/geometry/Point.h>
#include
<corsika/environment/Environment.h>
#include
<corsika/geometry/Vector.h>
#include
<corsika/geometry/Vector.h>
#include
<corsika/particles/ParticleProperties.h>
#include
<corsika/particles/ParticleProperties.h>
#include
<corsika/units/PhysicalUnits.h>
#include
<corsika/units/PhysicalUnits.h>
...
@@ -23,18 +24,22 @@ struct DummyParticle {
...
@@ -23,18 +24,22 @@ struct DummyParticle {
corsika
::
units
::
si
::
HEPEnergyType
fEnergy
;
corsika
::
units
::
si
::
HEPEnergyType
fEnergy
;
corsika
::
geometry
::
Vector
<
MOMENTUM
>
fMomentum
;
corsika
::
geometry
::
Vector
<
MOMENTUM
>
fMomentum
;
corsika
::
geometry
::
Point
fPosition
;
corsika
::
geometry
::
Point
fPosition
;
corsika
::
environment
::
BaseNodeType
const
*
fNodePtr
;
DummyParticle
(
corsika
::
units
::
si
::
HEPEnergyType
pEnergy
,
DummyParticle
(
corsika
::
units
::
si
::
HEPEnergyType
pEnergy
,
corsika
::
geometry
::
Vector
<
MOMENTUM
>
pMomentum
,
corsika
::
geometry
::
Vector
<
MOMENTUM
>
pMomentum
,
corsika
::
geometry
::
Point
pPosition
)
corsika
::
geometry
::
Point
pPosition
,
corsika
::
environment
::
BaseNodeType
const
*
pNodePtr
)
:
fEnergy
(
pEnergy
)
:
fEnergy
(
pEnergy
)
,
fMomentum
(
pMomentum
)
,
fMomentum
(
pMomentum
)
,
fPosition
(
pPosition
)
{}
,
fPosition
(
pPosition
)
,
fNodePtr
(
pNodePtr
)
{}
auto
GetEnergy
()
const
{
return
fEnergy
;
}
auto
GetEnergy
()
const
{
return
fEnergy
;
}
auto
GetMomentum
()
const
{
return
fMomentum
;
}
auto
GetMomentum
()
const
{
return
fMomentum
;
}
auto
GetPosition
()
const
{
return
fPosition
;
}
auto
GetPosition
()
const
{
return
fPosition
;
}
auto
GetPID
()
const
{
return
corsika
::
particles
::
Code
::
Unknown
;
}
auto
GetPID
()
const
{
return
corsika
::
particles
::
Code
::
Unknown
;
}
auto
*
GetNode
()
const
{
return
fNodePtr
;
}
};
};
struct
DummyStack
{
struct
DummyStack
{
...
...
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