Data points plotted with unwanted error bars

Hi,

I don’t know why but the last time when I wanna’ have a look at some data the TBrowser Plot Settings are totally weird… whyever huge error bars are drawn around the data points and I can get somehow get rid of them by choosing “SetLineAttributes/Errors/Rectangles”.

Does anyone know something how to solve that ? Thank you in advance!
I attached two different Plots with the same effect. The one with the title “Event 4 : Crystal …” was gained by importing the data via a Tree/Branch and the other “directly”.

Kind regards, -B

PS: I already asked this about a month but I was busy with some other issues and now the topic has been closed :frowning:

Directly after posting I stumbled over a remedy: https://root.cern.ch/root/roottalk/roottalk07/1248.html
It does change the plotting but not as I would like to:

This is how it should look like.

To avoid the error bars you can plot your histogram with option “HIST”

Thanks, “Hist P9” or similar changed something indeed but it looks as if the origin error bars are still plotted.
I made the marker in a big size for a better visibility.

I do not understand why you put P9 and not only P … P9 is not a valid option.
Anyway it does not change the plot.

By default empty bins are not drawn with the P option.
When you want to see them you need to use P0 (see doc).
So in your case the empty bins are not drawn.

So the maker you see at the bottom are there because the bins are not empty … close to 0 but not empty.

I used P9 because someone typed it in another thread.
I attached the plot with only P:

That’s true but something is going wrong… I attached also the Plot by writing the root-file and the one by reading it in in another macro.
By writing it is more or less correct instead of the huge error bars:

But by reading it in it also looks quite different (the first above in the entry post).

I would need a macro reproducer or a ROOT file.

Yes, I copied the certain lines:

Write:

unsigned int *FADC[(68+8)];
TRACELEN=detector.get_maxevents(5); // 4, only for bonntest set to 1
printf(“Length of trace: %i\n”, TRACELEN);

unsigned int FADC_ev4_crystal_11[TRACELEN];
for(int n=0; n<(68+8); n++)
{
FADC[n]=new unsigned int[TRACELEN];
}

hfile.mkdir (“raw_trace”);
hfile.cd (“raw_trace”);

TH1D *pFADC=new TH1D(“FADC_raw”,"",TRACELEN,0,TRACELEN);

hfile.mkdir (“tree”);
hfile.cd(“tree”);
TTree *anaTree = new TTree(“anaTree”, “anaTree”);

anaTree->Branch(“FADC_raw_APD1_ev4_crystal_11”, FADC_ev4_crystal_11);

FADC_ev4_crystal_11[n]=FADC[board*8+channel][n];
anaTree->Fill();

Read:

// get input file
const char *inTree=“tree/anaTree”;
TFile *f;
Char_t tmpstr[80];
Double_t fraction;
f = new TFile(inFile,""); // Input File
if(f->IsZombie())
{
cout<<“Input file " << inFile << " doesn’t exist!” << endl;
cout<<“Exit program” << endl;
return 0;
}
cout << "Reading from file: " << inFile << endl;

TTree *anaTree=(TTree *) f->Get(inTree);
if(anaTree==0)
{
cout << “Tree " << inTree << " doesn’t exist!!!” << endl;
cout <<“Exit program” << endl;
return 0;
}

int TRACELEN = 500;
unsigned int FADC_ev4_crystal_11[TRACELEN];

  anaTree->SetBranchAddress("FADC_raw_APD1_ev4_crystal_11", FADC_ev4_crystal_11);
  TH1D *pFADC_ev4_crystal_11;
sprintf(name,"Event 4 : Crystal 11 : APD 1");					
pFADC_ev4_crystal_11=new TH1D(name,name,TRACELEN,0,TRACELEN); 

for(int i=0; i<TRACELEN; i++)
{
pFADC_ev4_crystal_11->Fill(i, FADC_ev4_crystal_11[i]);
}
pFADC_ev4_crystal_11->Draw("");

It’s not the complete code but it should be all that’s necessary. Otherwise it would be too much. But I attached also the complete files.

aw_proto120_5times5.cxx (15.7 KB)
Filter.cxx (4.8 KB)

All the included files/headers and so on were never changed so it must be somewhere in one of both macros respectively probable in both.
Thank you very much in advance!

What should I do to run it ?
I get:

root [0] .x Filter.cxx
Error in <TFile::TFile>: file Filter_traces_array.root does not exist
Input file Filter_traces_array.root doesn't exist!
Exit program
(int) 0
root [1] 

Sorry, for sure. It’s the root-file generated by aw_proto120_5times5.

I attach the one: Filter_traces_array.root (12.6 KB)

Thanks again!

Meanwhile I’m sure that the reading of the tree in the macro Filter.cxx is doing something wrongly. The aspect of the error bars is probably something indepent from that.

Ok I can run it now. It gives me the attached picture. What is wrong with it ?

At first it should look like:

because these are the data I fill in in aw_proto120_5times5 where the root-file is generated.
The origin question was how do I get rid of these huge error bars but actually I’m facing a more significant problem as I cannot transfer the data from the one macro to the other correctly via a tree.

Thanks again for helping me!

I do not get this plot with huge error bars. How can I get it with what you sent me ?

This is the plot when I fill in values into the unsigned int arrays which. Afterwards these I want to read in in Filter.cxx
I just plotted it in aw_proto120_5times5 to ensure the data is extracted correctly (which is).

I obtain this plot by extracting raw data into the root file, so the origin files are very large (several GB).

But I would state that this aspect is more or less correct (the error bars I would handle afterwards). More important is that the histograms generated with Filter.cxx are looking completely different from that. At least it should look like the same.

These are 500 exemplary samples:

ADC[0]: 44091
ADC[1]: 44077
ADC[2]: 44090
ADC[3]: 44079
ADC[4]: 44096
ADC[5]: 44089
ADC[6]: 44110
ADC[7]: 44109
ADC[8]: 44119
ADC[9]: 44113
ADC[10]: 44125
ADC[11]: 44116
ADC[12]: 44133
ADC[13]: 44125
ADC[14]: 44139
ADC[15]: 44124
ADC[16]: 44145
ADC[17]: 44134
ADC[18]: 44162
ADC[19]: 44148
ADC[20]: 44161
ADC[21]: 44155
ADC[22]: 44172
ADC[23]: 44162
ADC[24]: 44166
ADC[25]: 44156
ADC[26]: 44165
ADC[27]: 44157
ADC[28]: 44166
ADC[29]: 44161
ADC[30]: 44185
ADC[31]: 44177
ADC[32]: 44192
ADC[33]: 44183
ADC[34]: 44195
ADC[35]: 44178
ADC[36]: 44191
ADC[37]: 44180
ADC[38]: 44184
ADC[39]: 44170
ADC[40]: 44195
ADC[41]: 44181
ADC[42]: 44182
ADC[43]: 44162
ADC[44]: 44172
ADC[45]: 44145
ADC[46]: 44157
ADC[47]: 44140
ADC[48]: 44155
ADC[49]: 44147
ADC[50]: 44155
ADC[51]: 44145
ADC[52]: 44149
ADC[53]: 44137
ADC[54]: 44141
ADC[55]: 44122
ADC[56]: 44131
ADC[57]: 44125
ADC[58]: 44142
ADC[59]: 44145
ADC[60]: 44162
ADC[61]: 44152
ADC[62]: 44152
ADC[63]: 44139
ADC[64]: 44153
ADC[65]: 44125
ADC[66]: 44137
ADC[67]: 44120
ADC[68]: 44123
ADC[69]: 44100
ADC[70]: 44118
ADC[71]: 44103
ADC[72]: 44104
ADC[73]: 44096
ADC[74]: 44119
ADC[75]: 44102
ADC[76]: 44110
ADC[77]: 44101
ADC[78]: 44132
ADC[79]: 44120
ADC[80]: 44143
ADC[81]: 44144
ADC[82]: 44154
ADC[83]: 44150
ADC[84]: 44175
ADC[85]: 44174
ADC[86]: 44193
ADC[87]: 44188
ADC[88]: 44210
ADC[89]: 44207
ADC[90]: 44216
ADC[91]: 44215
ADC[92]: 44224
ADC[93]: 44225
ADC[94]: 44238
ADC[95]: 44237
ADC[96]: 44251
ADC[97]: 44247
ADC[98]: 44258
ADC[99]: 44252
ADC[100]: 44264
ADC[101]: 44248
ADC[102]: 44256
ADC[103]: 44251
ADC[104]: 44255
ADC[105]: 44243
ADC[106]: 44252
ADC[107]: 44246
ADC[108]: 44256
ADC[109]: 44234
ADC[110]: 44253
ADC[111]: 44235
ADC[112]: 44252
ADC[113]: 44244
ADC[114]: 44249
ADC[115]: 44240
ADC[116]: 44264
ADC[117]: 44254
ADC[118]: 44273
ADC[119]: 44260
ADC[120]: 44275
ADC[121]: 44266
ADC[122]: 44270
ADC[123]: 44255
ADC[124]: 44270
ADC[125]: 44253
ADC[126]: 44251
ADC[127]: 44227
ADC[128]: 44233
ADC[129]: 44214
ADC[130]: 44232
ADC[131]: 44216
ADC[132]: 44224
ADC[133]: 44222
ADC[134]: 44229
ADC[135]: 44231
ADC[136]: 44244
ADC[137]: 44235
ADC[138]: 44250
ADC[139]: 44242
ADC[140]: 44255
ADC[141]: 44247
ADC[142]: 44269
ADC[143]: 44259
ADC[144]: 44273
ADC[145]: 44257
ADC[146]: 44270
ADC[147]: 44271
ADC[148]: 44273
ADC[149]: 44265
ADC[150]: 44286
ADC[151]: 44281
ADC[152]: 44300
ADC[153]: 44281
ADC[154]: 44308
ADC[155]: 44289
ADC[156]: 44300
ADC[157]: 44293
ADC[158]: 44311
ADC[159]: 44295
ADC[160]: 44297
ADC[161]: 44294
ADC[162]: 44292
ADC[163]: 44280
ADC[164]: 44291
ADC[165]: 44269
ADC[166]: 44279
ADC[167]: 44257
ADC[168]: 44266
ADC[169]: 44249
ADC[170]: 44265
ADC[171]: 44254
ADC[172]: 44258
ADC[173]: 44247
ADC[174]: 44251
ADC[175]: 44248
ADC[176]: 44265
ADC[177]: 44248
ADC[178]: 44265
ADC[179]: 44252
ADC[180]: 44263
ADC[181]: 44255
ADC[182]: 44270
ADC[183]: 44254
ADC[184]: 44273
ADC[185]: 44263
ADC[186]: 44273
ADC[187]: 44274
ADC[188]: 44281
ADC[189]: 44262
ADC[190]: 44271
ADC[191]: 44256
ADC[192]: 44265
ADC[193]: 44245
ADC[194]: 44254
ADC[195]: 44232
ADC[196]: 44240
ADC[197]: 44231
ADC[198]: 44228
ADC[199]: 44216
ADC[200]: 44220
ADC[201]: 44202
ADC[202]: 44183
ADC[203]: 44116
ADC[204]: 44039
ADC[205]: 43892
ADC[206]: 43743
ADC[207]: 43523
ADC[208]: 43296
ADC[209]: 43022
ADC[210]: 42755
ADC[211]: 42454
ADC[212]: 42179
ADC[213]: 41876
ADC[214]: 41595
ADC[215]: 41315
ADC[216]: 41076
ADC[217]: 40817
ADC[218]: 40615
ADC[219]: 40406
ADC[220]: 40241
ADC[221]: 40073
ADC[222]: 39960
ADC[223]: 39841
ADC[224]: 39764
ADC[225]: 39693
ADC[226]: 39648
ADC[227]: 39604
ADC[228]: 39603
ADC[229]: 39587
ADC[230]: 39620
ADC[231]: 39631
ADC[232]: 39690
ADC[233]: 39722
ADC[234]: 39801
ADC[235]: 39856
ADC[236]: 39956
ADC[237]: 40030
ADC[238]: 40127
ADC[239]: 40215
ADC[240]: 40323
ADC[241]: 40406
ADC[242]: 40524
ADC[243]: 40618
ADC[244]: 40728
ADC[245]: 40822
ADC[246]: 40936
ADC[247]: 41024
ADC[248]: 41142
ADC[249]: 41215
ADC[250]: 41334
ADC[251]: 41428
ADC[252]: 41535
ADC[253]: 41609
ADC[254]: 41719
ADC[255]: 41803
ADC[256]: 41901
ADC[257]: 41979
ADC[258]: 42073
ADC[259]: 42144
ADC[260]: 42237
ADC[261]: 42302
ADC[262]: 42375
ADC[263]: 42430
ADC[264]: 42522
ADC[265]: 42561
ADC[266]: 42629
ADC[267]: 42681
ADC[268]: 42752
ADC[269]: 42800
ADC[270]: 42865
ADC[271]: 42902
ADC[272]: 42960
ADC[273]: 43006
ADC[274]: 43059
ADC[275]: 43103
ADC[276]: 43149
ADC[277]: 43189
ADC[278]: 43241
ADC[279]: 43273
ADC[280]: 43330
ADC[281]: 43354
ADC[282]: 43398
ADC[283]: 43426
ADC[284]: 43470
ADC[285]: 43500
ADC[286]: 43540
ADC[287]: 43558
ADC[288]: 43602
ADC[289]: 43620
ADC[290]: 43652
ADC[291]: 43662
ADC[292]: 43695
ADC[293]: 43708
ADC[294]: 43737
ADC[295]: 43739
ADC[296]: 43771
ADC[297]: 43774
ADC[298]: 43803
ADC[299]: 43805
ADC[300]: 43837
ADC[301]: 43836
ADC[302]: 43862
ADC[303]: 43861
ADC[304]: 43887
ADC[305]: 43899
ADC[306]: 43926
ADC[307]: 43940
ADC[308]: 43967
ADC[309]: 43974
ADC[310]: 44004
ADC[311]: 43997
ADC[312]: 44037
ADC[313]: 44027
ADC[314]: 44057
ADC[315]: 44066
ADC[316]: 44081
ADC[317]: 44077
ADC[318]: 44105
ADC[319]: 44097
ADC[320]: 44105
ADC[321]: 44098
ADC[322]: 44120
ADC[323]: 44103
ADC[324]: 44114
ADC[325]: 44102
ADC[326]: 44116
ADC[327]: 44116
ADC[328]: 44125
ADC[329]: 44112
ADC[330]: 44136
ADC[331]: 44113
ADC[332]: 44130
ADC[333]: 44122
ADC[334]: 44132
ADC[335]: 44111
ADC[336]: 44122
ADC[337]: 44095
ADC[338]: 44105
ADC[339]: 44097
ADC[340]: 44108
ADC[341]: 44092
ADC[342]: 44110
ADC[343]: 44100
ADC[344]: 44120
ADC[345]: 44102
ADC[346]: 44115
ADC[347]: 44100
ADC[348]: 44102
ADC[349]: 44083
ADC[350]: 44095
ADC[351]: 44071
ADC[352]: 44082
ADC[353]: 44060
ADC[354]: 44068
ADC[355]: 44048
ADC[356]: 44061
ADC[357]: 44051
ADC[358]: 44065
ADC[359]: 44050
ADC[360]: 44055
ADC[361]: 44035
ADC[362]: 44039
ADC[363]: 44013
ADC[364]: 44020
ADC[365]: 43994
ADC[366]: 43991
ADC[367]: 43969
ADC[368]: 43981
ADC[369]: 43962
ADC[370]: 43968
ADC[371]: 43953
ADC[372]: 43959
ADC[373]: 43937
ADC[374]: 43955
ADC[375]: 43955
ADC[376]: 43982
ADC[377]: 43980
ADC[378]: 44000
ADC[379]: 43993
ADC[380]: 44020
ADC[381]: 44014
ADC[382]: 44029
ADC[383]: 44018
ADC[384]: 44027
ADC[385]: 44016
ADC[386]: 44034
ADC[387]: 44030
ADC[388]: 44044
ADC[389]: 44030
ADC[390]: 44044
ADC[391]: 44037
ADC[392]: 44040
ADC[393]: 44026
ADC[394]: 44049
ADC[395]: 44034
ADC[396]: 44039
ADC[397]: 44028
ADC[398]: 44035
ADC[399]: 44014
ADC[400]: 44025
ADC[401]: 44015
ADC[402]: 44024
ADC[403]: 44005
ADC[404]: 44013
ADC[405]: 43996
ADC[406]: 44006
ADC[407]: 43999
ADC[408]: 44012
ADC[409]: 43994
ADC[410]: 44005
ADC[411]: 43996
ADC[412]: 44000
ADC[413]: 43992
ADC[414]: 44011
ADC[415]: 44003
ADC[416]: 44031
ADC[417]: 44015
ADC[418]: 44034
ADC[419]: 44026
ADC[420]: 44051
ADC[421]: 44046
ADC[422]: 44051
ADC[423]: 44055
ADC[424]: 44067
ADC[425]: 44048
ADC[426]: 44062
ADC[427]: 44053
ADC[428]: 44067
ADC[429]: 44036
ADC[430]: 44044
ADC[431]: 44022
ADC[432]: 44019
ADC[433]: 44011
ADC[434]: 44013
ADC[435]: 44005
ADC[436]: 44001
ADC[437]: 43987
ADC[438]: 44001
ADC[439]: 43986
ADC[440]: 43987
ADC[441]: 43973
ADC[442]: 43981
ADC[443]: 43957
ADC[444]: 43958
ADC[445]: 43942
ADC[446]: 43946
ADC[447]: 43931
ADC[448]: 43939
ADC[449]: 43912
ADC[450]: 43928
ADC[451]: 43915
ADC[452]: 43926
ADC[453]: 43913
ADC[454]: 43927
ADC[455]: 43904
ADC[456]: 43928
ADC[457]: 43916
ADC[458]: 43921
ADC[459]: 43911
ADC[460]: 43932
ADC[461]: 43922
ADC[462]: 43941
ADC[463]: 43940
ADC[464]: 43931
ADC[465]: 43933
ADC[466]: 43941
ADC[467]: 43932
ADC[468]: 43938
ADC[469]: 43943
ADC[470]: 43940
ADC[471]: 43931
ADC[472]: 43937
ADC[473]: 43940
ADC[474]: 43945
ADC[475]: 43953
ADC[476]: 43948
ADC[477]: 43948
ADC[478]: 43949
ADC[479]: 43946
ADC[480]: 43955
ADC[481]: 43968
ADC[482]: 43979
ADC[483]: 43981
ADC[484]: 43997
ADC[485]: 43996
ADC[486]: 44007
ADC[487]: 44003
ADC[488]: 44015
ADC[489]: 44022
ADC[490]: 44031
ADC[491]: 44032
ADC[492]: 44033
ADC[493]: 44025
ADC[494]: 44034
ADC[495]: 44022
ADC[496]: 44023
ADC[497]: 44017
ADC[498]: 44024
ADC[499]: 44012

So when I read them from the tree (generated by aw_proto120_5times5) in Filter.cxx the histograms should look like a smooth curve with 500 entries and values of around 44000.
But I fail at this and I really don’t get behind it.

edit: Ok, I figured out that the arrays are not extracted from the tree. The histograms are plotted with random values because by commenting out the tree-reading/extracting it does not change anything.

So, with what you sent send what should I do ? what is the problem I should look at ?
That’s still not clear to me. Can you tell me a sequence of command I should type giving the wrong result and tell what is wrong ?

(you started saying that the problem was the error bars. I told you to use the option HIST but now it seems you question is different… I am a bit lost).

The reading of the tree in Filter.cxx does not work.
Above I copied the values which are in “unsigned int FADC_ev4_crystal_11[TRACELEN];” (in aw_proto120_5times5).
Now I want to read them from the tree in Filter.cxx and this does not work.

Hope this is briefly enough but also understandable ?

Ok I will try to understand … By the way when I run Filter.cxx I get the following printout:

FADC[0]: 0
FADC[1]: 0
FADC[2]: 2
FADC[3]: 0
FADC[4]: 1452177776
FADC[5]: 32767
FADC[6]: 2592598355
FADC[7]: 32767
FADC[8]: 1452177680
FADC[9]: 32767
FADC[10]: 2592694485
FADC[11]: 32767
FADC[12]: 176127488
FADC[13]: 32714
FADC[14]: 173831680
FADC[15]: 32714
FADC[16]: 167772160
FADC[17]: 32714
FADC[18]: 159812096
FADC[19]: 1
FADC[20]: 2
FADC[21]: 0
FADC[22]: 173830656
FADC[23]: 32714
FADC[24]: 154247168
FADC[25]: 1
FADC[26]: 177906432
FADC[27]: 32714
FADC[28]: 0
FADC[29]: 0
FADC[30]: 177906432
FADC[31]: 32714
FADC[32]: 0
FADC[33]: 0
FADC[34]: 1024
FADC[35]: 0
FADC[36]: 1452146690
FADC[37]: 32767
FADC[38]: 168498661
FADC[39]: 1
FADC[40]: 0
FADC[41]: 0
FADC[42]: 159812096
FADC[43]: 1
FADC[44]: 0
FADC[45]: 16
FADC[46]: 4096
FADC[47]: 4286578688
FADC[48]: 65535
FADC[49]: 0
FADC[50]: 0
FADC[51]: 0
FADC[52]: 1452178424
FADC[53]: 32767
FADC[54]: 0
FADC[55]: 0
FADC[56]: 2740994048
FADC[57]: 32767
FADC[58]: 1024
FADC[59]: 0
FADC[60]: 1452177824
FADC[61]: 32767
FADC[62]: 2592596610
FADC[63]: 32767
FADC[64]: 1024
FADC[65]: 0
FADC[66]: 1024
FADC[67]: 0
FADC[68]: 1024
FADC[69]: 0
FADC[70]: 193274480
FADC[71]: 32714
FADC[72]: 1452177856
FADC[73]: 32767
FADC[74]: 2592592384
FADC[75]: 32767
FADC[76]: 1024
FADC[77]: 0
FADC[78]: 1024
FADC[79]: 0
FADC[80]: 1452177888
FADC[81]: 32767
FADC[82]: 2570096174
FADC[83]: 32767
FADC[84]: 1024
FADC[85]: 0
FADC[86]: 1452178416
FADC[87]: 32767
FADC[88]: 1452177936
FADC[89]: 32767
FADC[90]: 191683442
FADC[91]: 1
FADC[92]: 1452178416
FADC[93]: 32767
FADC[94]: 1452178416
FADC[95]: 32767
FADC[96]: 5
FADC[97]: 0
FADC[98]: 193274480
FADC[99]: 32714
FADC[100]: 1452178000
FADC[101]: 32767
FADC[102]: 191684290
FADC[103]: 1
FADC[104]: 0
FADC[105]: 0
FADC[106]: 1452178416
FADC[107]: 32767
FADC[108]: 1452178000
FADC[109]: 32767
FADC[110]: 650405323
FADC[111]: 0
FADC[112]: 1452178048
FADC[113]: 32767
FADC[114]: 2592602399
FADC[115]: 32767
FADC[116]: 3
FADC[117]: 0
FADC[118]: 2
FADC[119]: 0
FADC[120]: 154247168
FADC[121]: 1
FADC[122]: 2
FADC[123]: 0
FADC[124]: 159717888
FADC[125]: 1
FADC[126]: 159717888
FADC[127]: 1
FADC[128]: 1452178272
FADC[129]: 32767
FADC[130]: 2592597106
FADC[131]: 32767
FADC[132]: 1452178288
FADC[133]: 32767
FADC[134]: 2592597106
FADC[135]: 32767
FADC[136]: 0
FADC[137]: 0
FADC[138]: 17
FADC[139]: 0
FADC[140]: 154247168
FADC[141]: 1
FADC[142]: 17
FADC[143]: 0
FADC[144]: 159717888
FADC[145]: 1
FADC[146]: 159717888
FADC[147]: 1
FADC[148]: 0
FADC[149]: 0
FADC[150]: 2592597106
FADC[151]: 32767
FADC[152]: 0
FADC[153]: 0
FADC[154]: 0
FADC[155]: 0
FADC[156]: 159717888
FADC[157]: 1
FADC[158]: 32
FADC[159]: 0
FADC[160]: 159717888
FADC[161]: 1
FADC[162]: 2
FADC[163]: 0
FADC[164]: 0
FADC[165]: 0
FADC[166]: 2
FADC[167]: 0
FADC[168]: 154247168
FADC[169]: 1
FADC[170]: 4096
FADC[171]: 4286578688
FADC[172]: 154271743
FADC[173]: 1
FADC[174]: 0
FADC[175]: 0
FADC[176]: 11
FADC[177]: 0
FADC[178]: 3
FADC[179]: 0
FADC[180]: 1452178400
FADC[181]: 32767
FADC[182]: 2592602399
FADC[183]: 32767
FADC[184]: 12
FADC[185]: 0
FADC[186]: 3
FADC[187]: 0
FADC[188]: 154247168
FADC[189]: 1
FADC[190]: 3
FADC[191]: 0
FADC[192]: 159717888
FADC[193]: 1
FADC[194]: 159717888
FADC[195]: 1
FADC[196]: 1452178544
FADC[197]: 32767
FADC[198]: 2592597106
FADC[199]: 32767
FADC[200]: 48
FADC[201]: 0
FADC[202]: 159717888
FADC[203]: 1
FADC[204]: 154247168
FADC[205]: 1
FADC[206]: 178241664
FADC[207]: 32714
FADC[208]: 177904576
FADC[209]: 32714
FADC[210]: 177904720
FADC[211]: 32714
FADC[212]: 9
FADC[213]: 0
FADC[214]: 177209344
FADC[215]: 0
FADC[216]: 0
FADC[217]: 0
FADC[218]: 159717888
FADC[219]: 1
FADC[220]: 2714
FADC[221]: 0
FADC[222]: 21
FADC[223]: 0
FADC[224]: 1452178576
FADC[225]: 32767
FADC[226]: 2592691422
FADC[227]: 32767
FADC[228]: 154247168
FADC[229]: 268435456
FADC[230]: 177904384
FADC[231]: 32714
FADC[232]: 154247168
FADC[233]: 1
FADC[234]: 2592602399
FADC[235]: 32767
FADC[236]: 2
FADC[237]: 0
FADC[238]: 3
FADC[239]: 0
FADC[240]: 154247168
FADC[241]: 1
FADC[242]: 3
FADC[243]: 0
FADC[244]: 159717888
FADC[245]: 1
FADC[246]: 159717888
FADC[247]: 1
FADC[248]: 1452178752
FADC[249]: 32767
FADC[250]: 2592597106
FADC[251]: 32767
FADC[252]: 159717888
FADC[253]: 1
FADC[254]: 650405323
FADC[255]: 0
FADC[256]: 1452178624
FADC[257]: 32767
FADC[258]: 2592602399
FADC[259]: 32767
FADC[260]: 3
FADC[261]: 0
FADC[262]: 2
FADC[263]: 0
FADC[264]: 154247168
FADC[265]: 1
FADC[266]: 2
FADC[267]: 0
FADC[268]: 0
FADC[269]: 0
FADC[270]: 19
FADC[271]: 0
FADC[272]: 180088176
FADC[273]: 32714
FADC[274]: 21
FADC[275]: 0
FADC[276]: 1452178784
FADC[277]: 32767
FADC[278]: 2592691422
FADC[279]: 32767
FADC[280]: 154247168
FADC[281]: 16777216
FADC[282]: 180088176
FADC[283]: 32714
FADC[284]: 154247168
FADC[285]: 1
FADC[286]: 180338816
FADC[287]: 32714
FADC[288]: 180088480
FADC[289]: 32714
FADC[290]: 180088512
FADC[291]: 32714
FADC[292]: 2
FADC[293]: 0
FADC[294]: 2
FADC[295]: 0
FADC[296]: 1452178864
FADC[297]: 32767
FADC[298]: 2592691422
FADC[299]: 32767
FADC[300]: 1452178880
FADC[301]: 32767
FADC[302]: 2592691422
FADC[303]: 32767
FADC[304]: 5
FADC[305]: 0
FADC[306]: 1
FADC[307]: 0
FADC[308]: 154247168
FADC[309]: 1
FADC[310]: 1
FADC[311]: 0
FADC[312]: 159717888
FADC[313]: 1
FADC[314]: 159717888
FADC[315]: 1
FADC[316]: 1452179024
FADC[317]: 32767
FADC[318]: 2592597106
FADC[319]: 32767
FADC[320]: 154247168
FADC[321]: 1
FADC[322]: 4
FADC[323]: 0
FADC[324]: 159717888
FADC[325]: 1
FADC[326]: 159717888
FADC[327]: 1
FADC[328]: 1452179072
FADC[329]: 32767
FADC[330]: 2592597106
FADC[331]: 32767
FADC[332]: 1452178976
FADC[333]: 32767
FADC[334]: 2592694485
FADC[335]: 32767
FADC[336]: 0
FADC[337]: 0
FADC[338]: 2592694485
FADC[339]: 32767
FADC[340]: 154247168
FADC[341]: 1
FADC[342]: 0
FADC[343]: 0
FADC[344]: 159717888
FADC[345]: 1
FADC[346]: 8
FADC[347]: 0
FADC[348]: 0
FADC[349]: 0
FADC[350]: 1
FADC[351]: 0
FADC[352]: 1452179088
FADC[353]: 0
FADC[354]: 5
FADC[355]: 0
FADC[356]: 1452179104
FADC[357]: 32767
FADC[358]: 2592691422
FADC[359]: 32767
FADC[360]: 154271743
FADC[361]: 1
FADC[362]: 0
FADC[363]: 0
FADC[364]: 154247168
FADC[365]: 1
FADC[366]: 180338816
FADC[367]: 32714
FADC[368]: 179737520
FADC[369]: 32714
FADC[370]: 179737600
FADC[371]: 32714
FADC[372]: 5
FADC[373]: 0
FADC[374]: 2592596610
FADC[375]: 0
FADC[376]: 80
FADC[377]: 0
FADC[378]: 159717888
FADC[379]: 1
FADC[380]: 1452179104
FADC[381]: 32767
FADC[382]: 2591515137
FADC[383]: 32767
FADC[384]: 169470464
FADC[385]: 32714
FADC[386]: 0
FADC[387]: 0
FADC[388]: 2740920744
FADC[389]: 32767
FADC[390]: 44
FADC[391]: 0
FADC[392]: 1452179152
FADC[393]: 32767
FADC[394]: 2591485223
FADC[395]: 32767
FADC[396]: 1
FADC[397]: 0
FADC[398]: 1452179415
FADC[399]: 32767
FADC[400]: 0
FADC[401]: 0
FADC[402]: 2740920744
FADC[403]: 32767
FADC[404]: 1452179232
FADC[405]: 32767
FADC[406]: 2591495557
FADC[407]: 32767
FADC[408]: 1452179288
FADC[409]: 32767
FADC[410]: 0
FADC[411]: 1
FADC[412]: 1452179288
FADC[413]: 32767
FADC[414]: 1452179415
FADC[415]: 32767
FADC[416]: 1
FADC[417]: 0
FADC[418]: 0
FADC[419]: 0
FADC[420]: 1
FADC[421]: 0
FADC[422]: 1452179288
FADC[423]: 32767
FADC[424]: 1452179344
FADC[425]: 32767
FADC[426]: 2591496385
FADC[427]: 32767
FADC[428]: 1
FADC[429]: 0
FADC[430]: 1
FADC[431]: 0
FADC[432]: 1
FADC[433]: 0
FADC[434]: 1452179415
FADC[435]: 32767
FADC[436]: 1
FADC[437]: 0
FADC[438]: 1452179272
FADC[439]: 32767
FADC[440]: 1
FADC[441]: 0
FADC[442]: 10
FADC[443]: 0
FADC[444]: 159413984
FADC[445]: 1
FADC[446]: 179704480
FADC[447]: 32714
FADC[448]: 2740920744
FADC[449]: 32767
FADC[450]: 1452179408
FADC[451]: 32767
FADC[452]: 0
FADC[453]: 0
FADC[454]: 1452179416
FADC[455]: 32767
FADC[456]: 1452179392
FADC[457]: 32767
FADC[458]: 2591485070
FADC[459]: 32767
FADC[460]: 69271671
FADC[461]: 34777332
FADC[462]: 0
FADC[463]: 0
FADC[464]: 1452179472
FADC[465]: 32767
FADC[466]: 2569682343
FADC[467]: 32767
FADC[468]: 1452179416
FADC[469]: 32767
FADC[470]: 2738501216
FADC[471]: 32767
FADC[472]: 69271671
FADC[473]: 34777332
FADC[474]: 2738501216
FADC[475]: 32767
FADC[476]: 179704481
FADC[477]: 32714
FADC[478]: 179704480
FADC[479]: 32714
FADC[480]: 1452179472
FADC[481]: 32767
FADC[482]: 166606694
FADC[483]: 1
FADC[484]: 69271671
FADC[485]: 34777332
FADC[486]: 149980752
FADC[487]: 32714
FADC[488]: 159413984
FADC[489]: 1
FADC[490]: 179704480
FADC[491]: 32714
FADC[492]: 2738501216
FADC[493]: 32767
FADC[494]: 166208416
FADC[495]: 1
FADC[496]: 1452179856
FADC[497]: 32767
FADC[498]: 159408582
FADC[499]: 1

Exactly, that’s the problem!
These also occurs by commenting out the tree so these are just randomly filled values by creating the array.

Thank you very much!

When you have a look at Filter_trace_array.root in the TBrowser there should be two directories: raw_trace and tree.
The ones in tree should look like as the one in raw_trace. But they don’t so I guess the error occurs already in aw_proto120_5times5.

In tree I have an ntuple and in raw_trace I see an histogram … that’s completely different … how can they “look like”… ? I am lost

The data extracted from anaTree/FADC_raw_APD1_ev4_crystal_11 should look like the Plot in raw_trace/FADC_raw by filling them into a histogram.