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
f80501ce
Commit
f80501ce
authored
1 year ago
by
flavigny
Browse files
Options
Downloads
Plain Diff
Merge branch 'NPTool.2.dev' of
https://gitlab.in2p3.fr/np/nptool
into NPTool.2.dev
parents
5e836d83
8dfdd641
No related branches found
No related tags found
No related merge requests found
Pipeline
#234307
passed
1 year ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Inputs/EventGenerator/isotropic.source
+5
-5
5 additions, 5 deletions
Inputs/EventGenerator/isotropic.source
NPSimulation/Detectors/PISTA/PISTA.cc
+4
-4
4 additions, 4 deletions
NPSimulation/Detectors/PISTA/PISTA.cc
with
9 additions
and
9 deletions
Inputs/EventGenerator/isotropic.source
+
5
−
5
View file @
f80501ce
...
@@ -4,13 +4,13 @@
...
@@ -4,13 +4,13 @@
% Energy are given in MeV , Position in mm %
% Energy are given in MeV , Position in mm %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Isotropic
Isotropic
EnergyLow=
10
0
EnergyLow= 0
EnergyHigh=
1
00
EnergyHigh=
2
00
HalfOpenAngleMin=
4
0
HalfOpenAngleMin=
3
0
HalfOpenAngleMax=
4
0
HalfOpenAngleMax=
6
0
x0= 0
x0= 0
y0= 0
y0= 0
z0= 0
z0= 0
particle= 1
4C
particle= 1
1Be
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Supported particle type: proton, neutron, deuton, triton, He3 , alpha
% Supported particle type: proton, neutron, deuton, triton, He3 , alpha
This diff is collapsed.
Click to expand it.
NPSimulation/Detectors/PISTA/PISTA.cc
+
4
−
4
View file @
f80501ce
...
@@ -60,8 +60,8 @@ namespace PISTA_NS{
...
@@ -60,8 +60,8 @@ namespace PISTA_NS{
// Energy and time Resolution
// Energy and time Resolution
const
double
EnergyThreshold
=
0.1
*
MeV
;
const
double
EnergyThreshold
=
0.1
*
MeV
;
const
double
ResoTime
=
0.2
*
ns
;
const
double
ResoTime
=
0.2
*
ns
;
const
double
ResoEnergy
=
0.0
15
*
MeV
;
const
double
DE_
ResoEnergy
=
0.0
40
*
MeV
;
const
double
D
E_ResoEnergy
=
0.01
5
*
MeV
;
const
double
E_ResoEnergy
=
0.01
8
*
MeV
;
// Trapezoid dimension
// Trapezoid dimension
const
double
TrapezoidBaseLarge
=
74.1
*
mm
;
const
double
TrapezoidBaseLarge
=
74.1
*
mm
;
...
@@ -282,7 +282,7 @@ void PISTA::ReadSensitive(const G4Event* ){
...
@@ -282,7 +282,7 @@ void PISTA::ReadSensitive(const G4Event* ){
if
(
Energy
>
EnergyThreshold
){
if
(
Energy
>
EnergyThreshold
){
double
Time
=
RandGauss
::
shoot
(
FirstStageScorer
->
GetTimeLength
(
i
),
ResoTime
);
double
Time
=
RandGauss
::
shoot
(
FirstStageScorer
->
GetTimeLength
(
i
),
ResoTime
);
int
DetNbr
=
FirstStageScorer
->
GetDetectorLength
(
i
);
int
DetNbr
=
FirstStageScorer
->
GetDetectorLength
(
i
);
int
StripFront
=
FirstStageScorer
->
GetStrip
Leng
th
(
i
);
int
StripFront
=
FirstStageScorer
->
GetStrip
Wid
th
(
i
);
m_Event
->
SetPISTA_DE
(
DetNbr
,
StripFront
,
Energy
,
Energy
,
Time
,
Time
);
m_Event
->
SetPISTA_DE
(
DetNbr
,
StripFront
,
Energy
,
Energy
,
Time
,
Time
);
}
}
}
}
...
@@ -294,7 +294,7 @@ void PISTA::ReadSensitive(const G4Event* ){
...
@@ -294,7 +294,7 @@ void PISTA::ReadSensitive(const G4Event* ){
unsigned
int
sizeE
=
SecondStageScorer
->
GetLengthMult
();
unsigned
int
sizeE
=
SecondStageScorer
->
GetLengthMult
();
for
(
unsigned
int
i
=
0
;
i
<
sizeE
;
i
++
){
for
(
unsigned
int
i
=
0
;
i
<
sizeE
;
i
++
){
double
Energy
=
RandGauss
::
shoot
(
SecondStageScorer
->
GetEnergyLength
(
i
),
ResoEnergy
);
double
Energy
=
RandGauss
::
shoot
(
SecondStageScorer
->
GetEnergyLength
(
i
),
E_
ResoEnergy
);
if
(
Energy
>
EnergyThreshold
){
if
(
Energy
>
EnergyThreshold
){
double
Time
=
RandGauss
::
shoot
(
SecondStageScorer
->
GetTimeLength
(
i
),
ResoTime
);
double
Time
=
RandGauss
::
shoot
(
SecondStageScorer
->
GetTimeLength
(
i
),
ResoTime
);
int
DetNbr
=
SecondStageScorer
->
GetDetectorLength
(
i
);
int
DetNbr
=
SecondStageScorer
->
GetDetectorLength
(
i
);
...
...
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