13int main(
int argc,
char* argv[]){
15 cout <<
"please append txt file name" << endl;
19 TString str_txt_file(argv[1]);
20 TString str_root_file(str_txt_file);
21 str_root_file.ReplaceAll(
".txt",
".root");
22 TFile
f(str_root_file,
"recreate");
23 TTree *tree =
new TTree(
"track",
"track");
25 tree->Branch(
"run", &run,
"run/I");
26 tree->Branch(
"event", &event,
"event/I");
28 ifstream in(str_txt_file);
30 cout <<
"cannot open " << str_txt_file << endl;
36 sscanf(str ,
"%d %d", &run, &event);
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")