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
29f1563d
Commit
29f1563d
authored
6 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* removing argument by reference in TReaction Condition to make the
fonction callable from root cint
parent
fdebb0c3
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/Physics/TReactionConditions.cxx
+1
-1
1 addition, 1 deletion
NPLib/Physics/TReactionConditions.cxx
NPLib/Physics/TReactionConditions.h
+9
-9
9 additions, 9 deletions
NPLib/Physics/TReactionConditions.h
with
10 additions
and
10 deletions
NPLib/Physics/TReactionConditions.cxx
+
1
−
1
View file @
29f1563d
...
@@ -103,7 +103,7 @@ TVector3 TReactionConditions::GetBeamDirection() const{
...
@@ -103,7 +103,7 @@ TVector3 TReactionConditions::GetBeamDirection() const{
cos
(
fRC_Beam_Emittance_Theta
*
deg
));
cos
(
fRC_Beam_Emittance_Theta
*
deg
));
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
TVector3
TReactionConditions
::
GetParticleDirection
(
const
int
&
i
)
const
{
TVector3
TReactionConditions
::
GetParticleDirection
(
const
int
i
)
const
{
return
TVector3
(
fRC_Momentum_Direction_X
[
i
],
return
TVector3
(
fRC_Momentum_Direction_X
[
i
],
fRC_Momentum_Direction_Y
[
i
],
fRC_Momentum_Direction_Y
[
i
],
fRC_Momentum_Direction_Z
[
i
]);
fRC_Momentum_Direction_Z
[
i
]);
...
...
This diff is collapsed.
Click to expand it.
NPLib/Physics/TReactionConditions.h
+
9
−
9
View file @
29f1563d
...
@@ -123,24 +123,24 @@ public:
...
@@ -123,24 +123,24 @@ public:
int
GetParticleMultiplicity
()
const
{
return
fRC_Kinetic_Energy
.
size
();}
//!
int
GetParticleMultiplicity
()
const
{
return
fRC_Kinetic_Energy
.
size
();}
//!
string
GetParticleName
(
const
int
&
i
)
const
{
return
fRC_Particle_Name
[
i
];}
//!
string
GetParticleName
(
const
int
&
i
)
const
{
return
fRC_Particle_Name
[
i
];}
//!
double
GetTheta
(
const
int
&
i
)
const
{
return
fRC_Theta
[
i
];}
//!
double
GetTheta
(
const
int
&
i
)
const
{
return
fRC_Theta
[
i
];}
//!
double
GetPhi
(
const
int
&
i
)
const
{
return
fRC_Phi
[
i
];}
//!
double
GetPhi
(
const
int
&
i
)
const
{
return
fRC_Phi
[
i
];}
//!
double
GetKineticEnergy
(
const
int
&
i
)
const
{
return
fRC_Kinetic_Energy
[
i
];}
//!
double
GetKineticEnergy
(
const
int
&
i
)
const
{
return
fRC_Kinetic_Energy
[
i
];}
//!
double
GetMomentumDirectionX
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_X
[
i
];}
//!
double
GetMomentumDirectionX
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_X
[
i
];}
//!
double
GetMomentumDirectionY
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_Y
[
i
];}
//!
double
GetMomentumDirectionY
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_Y
[
i
];}
//!
double
GetMomentumDirectionZ
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_Z
[
i
];}
//!
double
GetMomentumDirectionZ
(
const
int
&
i
)
const
{
return
fRC_Momentum_Direction_Z
[
i
];}
//!
TVector3
GetBeamDirection
()
const
;
//!
TVector3
GetBeamDirection
()
const
;
TVector3
GetParticleDirection
(
const
int
&
i
)
const
;
//!
TVector3
GetParticleDirection
(
const
int
i
)
const
;
double
GetThetaLab_WorldFrame
(
const
int
&
i
)
const
{
double
GetThetaLab_WorldFrame
(
const
int
i
)
const
{
return
(
GetParticleDirection
(
i
).
Angle
(
TVector3
(
0
,
0
,
1
)))
/
deg
;
return
(
GetParticleDirection
(
i
).
Angle
(
TVector3
(
0
,
0
,
1
)))
/
deg
;
}
//!
}
double
GetThetaLab_BeamFrame
(
const
int
&
i
)
const
{
double
GetThetaLab_BeamFrame
(
const
int
i
)
const
{
return
(
GetParticleDirection
(
i
).
Angle
(
GetBeamDirection
()))
/
deg
;
return
(
GetParticleDirection
(
i
).
Angle
(
GetBeamDirection
()))
/
deg
;
}
//!
}
unsigned
int
GetEmittedMult
()
const
{
return
fRC_Particle_Name
.
size
();}
//!
unsigned
int
GetEmittedMult
()
const
{
return
fRC_Particle_Name
.
size
();}
ClassDef
(
TReactionConditions
,
1
)
// TReactionConditions structure
ClassDef
(
TReactionConditions
,
1
)
// TReactionConditions structure
};
};
...
...
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