Skip to content
Snippets Groups Projects
Commit 34866d8c authored by ShengYang.b@gmail.com's avatar ShengYang.b@gmail.com
Browse files

move the event fill() before the clear

parent 304d96f8
No related branches found
No related tags found
No related merge requests found
......@@ -470,6 +470,8 @@ void generateWaveform(string fileName, bool DRAW){
}//end tile loop
if(DRAW) c->Print( Form("event%d.png",ev) );
outTree->Fill();
//Delete all TF1 objects, clear vectors, reset histograms
for(int tile = 0; tile < 16; tile++){
waveforms[tile]->clear();
......@@ -481,7 +483,6 @@ void generateWaveform(string fileName, bool DRAW){
pulses[tile].clear();
if(DRAW)h[tile]->Reset();
}//end tile loop
outTree->Fill();
}//end event loop
cout << endl;
......
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