Skip to content
Snippets Groups Projects
Commit 25999253 authored by LEMAIR Louis's avatar LEMAIR Louis
Browse files

* 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
parent 68603db1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
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