Skip to content
Snippets Groups Projects
Commit 7d20c20e authored by audrey.chatillon's avatar audrey.chatillon
Browse files

[EventGeneratorAlphaDecay] time window was not taken into account

parent 9ef5fa63
No related branches found
No related tags found
No related merge requests found
Pipeline #385368 passed
......@@ -36,7 +36,7 @@ class TEpicData : public TObject {
// per TrackID
struct EpicAnodeData {
int TrackID;
string ParticleName;
string ParticleName;
UShort_t AnodeNbr;
Double_t Q1;
Double_t Time;
......
......@@ -115,7 +115,7 @@ void EventGeneratorAlphaDecay::GenerateEvent(G4Event* evt){
double alpha_t = 0.;
double step_t = 1.e-2 / m_ActivityBq; // step size in [s] to have a maximum proba of 1.e-2
int step_n = ((int)(m_TimeWindow / step_t) == 0) ? 1 : (int)(50.e-9 / step_t);
int step_n = ((int)(m_TimeWindow / step_t) == 0) ? 1 : (int)(m_TimeWindow / step_t);
bool DecayOn = true;
for(int i=0; i<step_n; 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