joshhooker
6/26/2016 - 9:10 AM

ROOT Save Cuts

The following are simple steps to save cuts in ROOT

TCutG *mycutg;
mycutg=(TCutG*)gROOT->GetListOfSpecials()->FindObject("CUTG");
mycutg->SetName("Name of Cut");
TFile *f = new TFile("File to save to","new/update");
mycutg->Write();
f->Close();