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
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
Pranav Sampathkumar
corsika
Commits
a591bff9
Commit
a591bff9
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Plain Diff
merged master
parents
7ba0023b
47391656
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/Sibyll/Interaction.h
+32
-0
32 additions, 0 deletions
Processes/Sibyll/Interaction.h
with
32 additions
and
0 deletions
Processes/Sibyll/Interaction.h
+
32
−
0
View file @
a591bff9
...
...
@@ -198,6 +198,7 @@ namespace corsika::process::sibyll {
// for Sibyll is always a single nucleon
auto
constexpr
nucleon_mass
=
0.5
*
(
corsika
::
particles
::
Proton
::
GetMass
()
+
corsika
::
particles
::
Neutron
::
GetMass
());
<<<<<<<
HEAD
// FOR NOW: target is always at rest
const
auto
eTargetLab
=
0
_GeV
+
nucleon_mass
;
const
auto
pTargetLab
=
MomentumVector
(
rootCS
,
0
_GeV
,
0
_GeV
,
0
_GeV
);
...
...
@@ -213,6 +214,12 @@ namespace corsika::process::sibyll {
<<
endl
;
cout
<<
"Interaction: etarget lab: "
<<
eTargetLab
/
1
_GeV
<<
endl
<<
"Interaction: ptarget lab: "
<<
pTargetLab
.
GetComponents
()
/
1
_GeV
=======
const
auto
Etarget
=
0
_GeV
+
nucleon_mass
;
const
auto
pTarget
=
MomentumVector
(
rootCS
,
0
_GeV
,
0
_GeV
,
0
_GeV
);
cout
<<
"target momentum (GeV/c): "
<<
pTarget
.
GetComponents
()
/
1
_GeV
<<
endl
;
cout
<<
"beam momentum (GeV/c): "
<<
p
.
GetMomentum
().
GetComponents
()
/
1
_GeV
>>>>>>>
4739165629
caedbec096282d6834e264b573c3b2
<<
endl
;
// define target kinematics in lab frame
...
...
@@ -227,6 +234,7 @@ namespace corsika::process::sibyll {
// boost target
auto
const
PtargCoM
=
boost
.
toCoM
(
PtargLab
);
<<<<<<<
HEAD
cout
<<
"Interaction: ebeam CoM: "
<<
PprojCoM
.
GetTimeLikeComponent
()
/
1
_GeV
<<
endl
<<
"Interaction: pbeam CoM: "
...
...
@@ -284,6 +292,30 @@ namespace corsika::process::sibyll {
// beam id for sibyll
const
int
kBeam
=
process
::
sibyll
::
ConvertToSibyllRaw
(
corsikaBeamId
);
=======
auto
const
pProjectileLab
=
p
.
GetMomentum
();
//{rootCS, {0_GeV / c, 1_PeV / c, 0_GeV / c}};
HEPEnergyType
const
eProjectileLab
=
p
.
GetEnergy
();
// energy(projectileMass, pProjectileLab);
// define target kinematics in lab frame
HEPMassType
const
targetMass
=
nucleon_mass
;
// define boost to com frame
COMBoost
const
boost
(
eProjectileLab
,
pProjectileLab
,
targetMass
);
cout
<<
"Interaction: new boost: ebeam lab: "
<<
eProjectileLab
/
1
_GeV
<<
endl
<<
"Interaction: new boost: pbeam lab: "
<<
pProjectileLab
.
GetComponents
()
/
1
_GeV
<<
endl
;
// boost projecticle
auto
const
[
eProjectileCoM
,
pProjectileCoM
]
=
boost
.
toCoM
(
eProjectileLab
,
pProjectileLab
);
cout
<<
"Interaction: new boost: ebeam com: "
<<
eProjectileCoM
/
1
_GeV
<<
endl
<<
"Interaction: new boost: pbeam com: "
<<
pProjectileCoM
/
1
_GeV
<<
endl
;
int
kBeam
=
process
::
sibyll
::
ConvertToSibyllRaw
(
p
.
GetPID
());
>>>>>>>
4739165629
caedbec096282d6834e264b573c3b2
std
::
cout
<<
"Interaction: "
<<
" DoInteraction: E(GeV):"
<<
eProjectileLab
/
1
_GeV
...
...
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