Hi,all:
I currently keeps geting problems creating trees to store the data from muDST files.
in my script, I create only one tree to store the data,
TFile *f = new TFile(outroot, "RECREATE");
TTree *tpc = new TTree("tpc","Reconst ntuple");
tpc->Branch("ePVz", &ePVz);
tpc->Branch("eMult",&eMult);
tpc->Branch("tPhi", &tPhi);
tpc->Branch("tEta", &tEta);
tpc->Branch("tPt", &tPt);
tpc->Branch("tCharge", &tCharge);
//do stuff
f=tpc->GetCurrentFile();
tpc->Write();
f->Close();
but in the final root files, there would be two trees having the same name “tpc” with number tags.
I really don’t know what’s wrong with the code.
Can anyone give any suggestion?
Regards.