Skip to content
Snippets Groups Projects
Commit 03a9c9f1 authored by adrien-matta's avatar adrien-matta
Browse files

* Fixing yet another crash in TMust2Spectra

 - Missing +1 to index in naming the spectra
parent c2796e1c
No related branches found
No related tags found
No related merge requests found
...@@ -217,19 +217,19 @@ void TMust2Spectra::InitPhysicsSpectra(){ ...@@ -217,19 +217,19 @@ void TMust2Spectra::InitPhysicsSpectra(){
// ID plot detector by detector // ID plot detector by detector
for (unsigned int i = 0; i < fNumberOfTelescope; i++) { // loop on number of detectors for (unsigned int i = 0; i < fNumberOfTelescope; i++) { // loop on number of detectors
// E-TOF: // E-TOF:
name = Form("MM%d_E_TOF",i); name = Form("MM%d_E_TOF",i+1);
AddHisto2D(name, name,500,0,50,1000,200,1200,"MUST2/PHY"); AddHisto2D(name, name,500,0,50,1000,200,1200,"MUST2/PHY");
// SILIE-DE: // SILIE-DE:
name = Form("MM%d_SILIE_E",i); name = Form("MM%d_SILIE_E",i+1);
AddHisto2D(name, name,500,0,200,500,0,50,"MUST2/PHY"); AddHisto2D(name, name,500,0,200,500,0,50,"MUST2/PHY");
// CSI-DE: // CSI-DE:
name = Form("MM%d_CSIE_E",i); name = Form("MM%d_CSIE_E",i+1);
AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY"); AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY");
// Etot-DE: // Etot-DE:
name = Form("MM%d_Etot_E",i); name = Form("MM%d_Etot_E",i+1);
AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY"); AddHisto2D(name, name,500,0,500,500,0,50,"MUST2/PHY");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment