Skip to content
Snippets Groups Projects
Commit f80501ce authored by flavigny's avatar flavigny
Browse files

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
...@@ -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= 100 EnergyLow= 0
EnergyHigh= 100 EnergyHigh= 200
HalfOpenAngleMin= 40 HalfOpenAngleMin= 30
HalfOpenAngleMax= 40 HalfOpenAngleMax= 60
x0= 0 x0= 0
y0= 0 y0= 0
z0= 0 z0= 0
particle= 14C particle= 11Be
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Supported particle type: proton, neutron, deuton, triton, He3 , alpha % Supported particle type: proton, neutron, deuton, triton, He3 , alpha
...@@ -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.015*MeV ; const double DE_ResoEnergy = 0.040*MeV ;
const double DE_ResoEnergy = 0.015*MeV ; const double E_ResoEnergy = 0.018*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->GetStripLength(i); int StripFront = FirstStageScorer->GetStripWidth(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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment