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
c0770c99
Commit
c0770c99
authored
1 year ago
by
Adrien Matta
Browse files
Options
Downloads
Plain Diff
Merge branch 'NPTool.2.dev' of
https://gitlab.in2p3.fr/np/nptool
into NPTool.2.dev
parents
75d3d7d6
960ffb62
No related branches found
No related tags found
No related merge requests found
Pipeline
#244584
passed
1 year ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NPLib/Detectors/PISTA/TPISTAPhysics.cxx
+11
-5
11 additions, 5 deletions
NPLib/Detectors/PISTA/TPISTAPhysics.cxx
NPSimulation/Detectors/PISTA/PISTA.cc
+5
-8
5 additions, 8 deletions
NPSimulation/Detectors/PISTA/PISTA.cc
Projects/PISTA/Analysis.cxx
+1
-1
1 addition, 1 deletion
Projects/PISTA/Analysis.cxx
with
17 additions
and
14 deletions
NPLib/Detectors/PISTA/TPISTAPhysics.cxx
+
11
−
5
View file @
c0770c99
...
...
@@ -257,14 +257,20 @@ void TPISTAPhysics::BuildPhysicalEvent() {
int
DEMult
=
m_PreTreatedData
->
GetPISTADEMult
();
int
EMult
=
m_PreTreatedData
->
GetPISTAEMult
();
int
DE_DetNbr
=
-
1
;
int
DE_StripNbr
=
-
1
;
int
E_DetNbr
=
-
1
;
int
E_StripNbr
=
-
1
;
for
(
unsigned
int
i
=
0
;
i
<
DEMult
;
i
++
){
DE_DetNbr
=
m_PreTreatedData
->
GetPISTA_DE_DetectorNbr
(
i
);
DE_StripNbr
=
m_PreTreatedData
->
GetPISTA_DE_StripNbr
(
i
);
for
(
unsigned
int
j
=
0
;
j
<
EMult
;
j
++
){
int
DE_DetNbr
=
m_PreTreatedData
->
GetPISTA_DE_DetectorNbr
(
i
);
int
E_DetNbr
=
m_PreTreatedData
->
GetPISTA_E_DetectorNbr
(
j
);
E_DetNbr
=
m_PreTreatedData
->
GetPISTA_E_DetectorNbr
(
j
);
E_StripNbr
=
m_PreTreatedData
->
GetPISTA_E_StripNbr
(
j
);
if
(
DE_DetNbr
==
E_DetNbr
){
int
DE_StripNbr
=
m_PreTreatedData
->
GetPISTA_DE_StripNbr
(
i
);
int
E_StripNbr
=
m_PreTreatedData
->
GetPISTA_E_StripNbr
(
j
);
// Taking Strip energy for DE
double
DE_Energy
=
m_PreTreatedData
->
GetPISTA_DE_StripEnergy
(
i
);
// Taking BAck Energy for E
...
...
This diff is collapsed.
Click to expand it.
NPSimulation/Detectors/PISTA/PISTA.cc
+
5
−
8
View file @
c0770c99
...
...
@@ -64,12 +64,9 @@ namespace PISTA_NS{
const
double
E_ResoEnergy
=
0.018
*
MeV
;
// Trapezoid dimension
const
double
TrapezoidBaseLarge
=
74.1
*
mm
;
//const double TrapezoidBaseLarge = 78.1*mm;
const
double
TrapezoidBaseSmall
=
39.3
*
mm
;
//const double TrapezoidBaseSmall = 43.3*mm;
const
double
TrapezoidHeight
=
57.8
*
mm
;
//const double TrapezoidHeight = 61.8*mm;
const
double
TrapezoidBaseLarge
=
78.1
*
mm
;
const
double
TrapezoidBaseSmall
=
43.3
*
mm
;
const
double
TrapezoidHeight
=
61.7
*
mm
;
const
double
TrapezoidLength
=
1
*
cm
;
const
double
FirstStageThickness
=
100
*
um
;
const
double
SecondStageThickness
=
1
*
mm
;
...
...
@@ -375,13 +372,13 @@ void PISTA::InitializeScorers() {
SecondStageNbrOfStrips
,
1
);
G4VPrimitiveScorer
*
InteractionFirstStage
=
new
InteractionScorers
::
PS_Interactions
(
"InteractionFirstStage"
,
ms_InterCoord
,
0
);
G4VPrimitiveScorer
*
InteractionSecondStage
=
new
InteractionScorers
::
PS_Interactions
(
"InteractionSecondStage"
,
ms_InterCoord
,
0
);
//
G4VPrimitiveScorer* InteractionSecondStage = new InteractionScorers::PS_Interactions("InteractionSecondStage",ms_InterCoord,0);
// Register it to the multifunctionnal detector
m_FirstStageScorer
->
RegisterPrimitive
(
FirstStageScorer
);
m_FirstStageScorer
->
RegisterPrimitive
(
InteractionFirstStage
);
m_SecondStageScorer
->
RegisterPrimitive
(
SecondStageScorer
);
m_SecondStageScorer
->
RegisterPrimitive
(
InteractionSecondStage
);
//
m_SecondStageScorer->RegisterPrimitive(InteractionSecondStage);
G4SDManager
::
GetSDMpointer
()
->
AddNewDetector
(
m_FirstStageScorer
);
G4SDManager
::
GetSDMpointer
()
->
AddNewDetector
(
m_SecondStageScorer
);
...
...
This diff is collapsed.
Click to expand it.
Projects/PISTA/Analysis.cxx
+
1
−
1
View file @
c0770c99
...
...
@@ -64,7 +64,7 @@ void Analysis::TreatEvent(){
OriginalEx = ReactionConditions->GetExcitation4();
*/
int
mult
=
InteractionCoordinates
->
GetDetectedMultiplicity
();
if
(
mult
==
2
){
if
(
mult
==
1
){
for
(
int
i
=
0
;
i
<
mult
;
i
++
){
Xpista
=
InteractionCoordinates
->
GetDetectedPositionX
(
i
);
Ypista
=
InteractionCoordinates
->
GetDetectedPositionY
(
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