# Segmentation violation in plotting part

**URL:** <https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866>\
**Category:** Newbie\
**Created:** [October 15, 2020, 11:55am UTC](https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866 "2020-10-15T11:55:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephanMs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@StephanMs](https://root-forum.cern.ch/u/StephanMs)\
**Post date:** [October 15, 2020, 11:55am UTC](https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866/1 "2020-10-15T11:55:19Z")

</div>

Hello!  
I am using a virtual machine and standard framework for data analysis at 13 TeV. Can’t draw histograms. I carefully followed the readme file, the analysis (for example ZBoson) seems to complete correctly (dataA.root dataB.root and others appeared in the Output folder). But when I execute the plotme.sh script in the terminal, an error message appears:

```auto
Analysis option found, proceeding...
Reading list of histograms from: list_histos/HistoList_ZBosonAnalysis.txt

Analysis: ZBosonAnalysis, reading input from: inputfiles/Files_base.txt

Reading files from: ../Analysis/ZBosonAnalysis/Output_ZBosonAnalysis

=====processing ZBosonAnalysis=====

Error in <TFile::TFile>: file ../Analysis/ZBosonAnalysis/Output_ZBosonAnalysis/data.root does not exist

 ***Break*** segmentation violation

```

Apparently, the data .root file should have appeared in the Output folder, and not the dataA files listed above, etc.  
Help please, am I doing something wrong in the analysis part?  
thanks

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [October 15, 2020, 12:55pm UTC](https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866/2 "2020-10-15T12:55:05Z")

</div>

Hello,

From the error:

```auto
Error in <TFile::TFile>: file ../Analysis/ZBosonAnalysis/Output_ZBosonAnalysis/data.root does not exist

```

It seems that a certain ROOT file can’t be found in that path, could you check that?

---

<div class="post-metadata">

**Author:** ![StephanMs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@StephanMs](https://root-forum.cern.ch/u/StephanMs)\
**Post date:** [October 15, 2020, 2:04pm UTC](https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866/3 "2020-10-15T14:04:05Z")

</div>

Yes, I mentioned it above. There is no data .root file, but there are dataA .root dataB .root dataC .root datad .root files. I am trying to figure out if this is a program error or I am doing something wrong.  
As far as I can see in the analysis code the 4 above files are created, but the data .root file is not created.

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [October 15, 2020, 2:19pm UTC](https://root-forum.cern.ch/t/segmentation-violation-in-plotting-part/41866/4 "2020-10-15T14:19:23Z")

</div>

I see, is it possible that `data.root` needs to be generated by some other program that should run first, or the program you are running should be self-contained?

Alternatively, perhaps you need to rename `dataA.root , etc.` to `data.root` before you can generate the plots with `plotme.sh`? I am just speculating here, since I don’t know how the code is supposed to be used.
