From 259992531311ef29d6263e85499069baf1677c93 Mon Sep 17 00:00:00 2001 From: Louis Lemair <lemair@lpccaen.in2p3.fr> Date: Tue, 29 Mar 2022 13:44:52 +0200 Subject: [PATCH] * Partial modification of Nebula behavior - Modification of the Scorer call to manage Charge and Time - For now (just to see how it works) each Charge is half the random Energy, and each Time half the random Time --- NPSimulation/Detectors/Nebula/Nebula.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NPSimulation/Detectors/Nebula/Nebula.cc b/NPSimulation/Detectors/Nebula/Nebula.cc index ebb727cbd..11d1b18eb 100644 --- a/NPSimulation/Detectors/Nebula/Nebula.cc +++ b/NPSimulation/Detectors/Nebula/Nebula.cc @@ -225,8 +225,10 @@ void Nebula::ReadSensitive(const G4Event* ){ if(Energy>Nebula_NS::EnergyThreshold){ double Time = RandGauss::shoot(Scorer->GetTime(i),Nebula_NS::ResoTime); int DetectorNbr = level[0]; - //m_Event->SetEnergy(DetectorNbr,Energy); - //m_Event->SetTime(DetectorNbr,Time); + m_Event->SetChargeUp(DetectorNbr,Energy/2); + m_Event->SetChargeDown(DetectorNbr,Energy/2); + m_Event->SetTimeUp(DetectorNbr,Time/2); + m_Event->SetTimeDown(DetectorNbr,Time/2); } } } -- GitLab