# Weird xenon Spectrum

**URL:** <https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555>\
**Category:** Physics Processes, Models and Cross Sections\
**Created:** [September 24, 2020, 10:11am UTC](https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555 "2020-09-24T10:11:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LFelicien](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/lfelicien/32/1873_2.png) [@LFelicien](https://geant4-forum.web.cern.ch/u/LFelicien)\
**Post date:** [September 24, 2020, 10:11am UTC](https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555/1 "2020-09-24T10:11:55Z")

</div>

I’m trying to simulate a xenon chamber. To generate my particles I use the following command:  
/gps/particle ion  
/gps/ion 54 135 0

In order to verify that the generated spectrum is the right one I retrieve the primary gamma information in a histogram. When I compare the result obtained with the theoretical data (from Janis), the spectra are not the same. I have low energy peaks.

 ![spectrum](https://geant4-forum.web.cern.ch/uploads/default/original/2X/1/10ebdd49d1678467db1dc6cb4515bed30be759c4.png)

I have already seen the following topic: [Weird decay spectrum](https://geant4-forum.web.cern.ch/t/weird-decay-spectrum/117)  
But this solution does not work (second figure).  
The graph is even less faithful to the theory. My code is the following:  
G4String Nom =particule -\> GetParticleName();  
G4int id = 1;

```
  const std::vector<const G4Track*>* secondary 
                                    = step->GetSecondaryInCurrentStep();    
  for (size_t lp=0; lp<(*secondary).size(); lp++) {
    G4double charge = (*secondary)[lp]->GetDefinition()->GetPDGCharge();
    if (step->GetTrack()->GetParentID()==1 && step->GetTrack()->GetCurrentStepNumber()==1 ){
    
    if (charge != 0.) { id = 6;} else if ((*secondary)[lp]->GetDefinition() == G4Gamma::Definition() ) { id = 7;
   // G4cout<<Nom<<particule->GetPDGCharge()<<G4endl;
     }
   // G4double energy = (*secondary)[lp]->GetKineticEnergy(); (uncommented for first histo)
    G4double energy =step->GetPreStepPoint()->GetKineticEnergy(); (uncommented for second histo)
    analysisManager->FillH1(id,energy);
    }}

```

How can I fix it ?  
Thank you !

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [September 24, 2020, 4:02pm UTC](https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555/2 "2020-09-24T16:02:33Z")

</div>

I ran example rdecay01 with attached macro : felicien.mac.txt  
Upper plot is with ARMflag = false (line 115 of PhysicsList.cc), lower plot with ARMflag =true.

ARM means Atomic Relexation Mode, aka Atomic Deexcitation, aka Fluorescence and Auger cascade.

In your application, add /process/em/fluo false and /process/em/augerCascade false

[felicien.mac.txt](https://geant4-forum.web.cern.ch/uploads/short-url/ws6dizIoDkYxKNnMhnxbCdqt1ti.txt) (221 Bytes)

 ![felicien](https://geant4-forum.web.cern.ch/uploads/default/original/2X/c/cd4128d3f36e020d3947809f970f1e98fb6db9a5.gif)

---

<div class="post-metadata">

**Author:** ![maire](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@maire](https://geant4-forum.web.cern.ch/u/maire)\
**Post date:** [September 24, 2020, 4:14pm UTC](https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555/3 "2020-09-24T16:14:53Z")

</div>

" In your application, add /process/em/fluo false and /process/em/augerCascade false "

more simply : /grdm/applyARM false would be enough ( I did not check …)

---

<div class="post-metadata">

**Author:** ![LFelicien](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/lfelicien/32/1873_2.png) [@LFelicien](https://geant4-forum.web.cern.ch/u/LFelicien)\
**Post date:** [September 24, 2020, 4:17pm UTC](https://geant4-forum.web.cern.ch/t/weird-xenon-spectrum/3555/4 "2020-09-24T16:17:43Z")

</div>

Will try it thank you !
