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
99614528
Commit
99614528
authored
3 months ago
by
Pierre Morfouace
Browse files
Options
Downloads
Patches
Plain Diff
Updating NPReaction for GEFReader
parent
e38870b7
No related branches found
Branches containing commit
No related tags found
1 merge request
!27
Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NPLib/Physics/NPReaction.cxx
+2
-2
2 additions, 2 deletions
NPLib/Physics/NPReaction.cxx
NPLib/Physics/NPReaction.h
+1
-1
1 addition, 1 deletion
NPLib/Physics/NPReaction.h
NPSimulation/Detectors/PISTA/PISTA.cc
+18
-18
18 additions, 18 deletions
NPSimulation/Detectors/PISTA/PISTA.cc
with
21 additions
and
21 deletions
NPLib/Physics/NPReaction.cxx
+
2
−
2
View file @
99614528
...
...
@@ -639,10 +639,10 @@ void Reaction::initializePrecomputeVariable() {
}
////////////////////////////////////////////////////////////////////////////////////////////
void
Reaction
::
SetParticle3
(
double
EnergyLab
,
double
ThetaLab
)
{
void
Reaction
::
SetParticle3
(
double
EnergyLab
,
double
ThetaLab
,
double
PhiLab
)
{
double
p3
=
sqrt
(
pow
(
EnergyLab
,
2
)
+
2
*
m3
*
EnergyLab
);
fEnergyImpulsionLab_3
=
TLorentzVector
(
p3
*
sin
(
ThetaLab
)
,
0
,
p3
*
cos
(
ThetaLab
),
EnergyLab
+
m3
);
fEnergyImpulsionLab_3
=
TLorentzVector
(
p3
*
sin
(
ThetaLab
)
*
cos
(
PhiLab
),
p3
*
sin
(
ThetaLab
)
*
sin
(
PhiLab
)
,
p3
*
cos
(
ThetaLab
),
EnergyLab
+
m3
);
fEnergyImpulsionLab_4
=
fTotalEnergyImpulsionLab
-
fEnergyImpulsionLab_3
;
fParticle3
.
SetEnergyImpulsion
(
fEnergyImpulsionLab_3
);
...
...
This diff is collapsed.
Click to expand it.
NPLib/Physics/NPReaction.h
+
1
−
1
View file @
99614528
...
...
@@ -262,7 +262,7 @@ namespace NPL {
// Check whenever the reaction is allowed at the given energy
bool
IsAllowed
(
double
Energy
);
void
SetParticle3
(
double
EnergyLab
,
double
ThetaLab
);
void
SetParticle3
(
double
EnergyLab
,
double
ThetaLab
,
double
PhiLab
=
0
);
void
SetParticle1
(
Beam
p
)
{
fParticle1
=
p
;
};
void
SetParticle2
(
Particle
p
)
{
fParticle2
=
p
;
};
...
...
This diff is collapsed.
Click to expand it.
NPSimulation/Detectors/PISTA/PISTA.cc
+
18
−
18
View file @
99614528
...
...
@@ -64,26 +64,26 @@ namespace PISTA_NS{
const
double
E_ResoEnergy
=
0.018
*
MeV
;
// Trapezoid dimension PISTA1
//const double TrapezoidBaseLarge = 72.3*mm;
//const double TrapezoidBaseSmall = 41.0*mm;
//const double TrapezoidHeight = 57.7*mm;
//const double TrapezoidLength = 1*cm;
//const double FirstStageThickness = 300*um;
//const double SecondStageThickness = 1.5*mm;
//const double DistanceBetweenSi = 4*mm;
//const double FirstStageNbrOfStrips = 91;
//const double SecondStageNbrOfStrips = 57;
// Trapezoid dimension PISTA2
const
double
TrapezoidBaseLarge
=
53
*
mm
;
const
double
TrapezoidBaseSmall
=
34.0
*
mm
;
const
double
TrapezoidHeight
=
27
*
mm
;
const
double
TrapezoidBaseLarge
=
72.3
*
mm
;
const
double
TrapezoidBaseSmall
=
41.0
*
mm
;
const
double
TrapezoidHeight
=
57.7
*
mm
;
const
double
TrapezoidLength
=
1
*
cm
;
const
double
FirstStageThickness
=
0.3
*
m
m
;
const
double
FirstStageThickness
=
300
*
u
m
;
const
double
SecondStageThickness
=
1.5
*
mm
;
const
double
DistanceBetweenSi
=
3
*
mm
;
const
double
FirstStageNbrOfStrips
=
49
;
const
double
SecondStageNbrOfStrips
=
45
;
const
double
DistanceBetweenSi
=
4
*
mm
;
const
double
FirstStageNbrOfStrips
=
91
;
const
double
SecondStageNbrOfStrips
=
57
;
// Trapezoid dimension PISTA2
//const double TrapezoidBaseLarge = 53*mm;
//const double TrapezoidBaseSmall = 34.0*mm;
//const double TrapezoidHeight = 27*mm;
//const double TrapezoidLength = 1*cm;
//const double FirstStageThickness = 0.3*mm;
//const double SecondStageThickness = 1.5*mm;
//const double DistanceBetweenSi = 3*mm;
//const double FirstStageNbrOfStrips = 49;
//const double SecondStageNbrOfStrips = 45;
}
using
namespace
PISTA_NS
;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
...
...
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