#include #include "TString.h" #include "TFile.h" #include "TError.h" #include "TTree.h" #include "../dataClasses/RawEvent.h" void read2() { // std::cout << argv[1] << "says hello, " << argv[2] << "!" << std::endl; // std::cout << infiles << "says hello, " << ofile << "!" << std::endl; // return 0; gSystem->Load("../libData.so"); Double_t A1[1000],A2[1000]; Double_t T1[1000],T2[1000]; Int_t k,n,p,Nchannel,nHun,nDec; TString line1,line2,filename1,filename2; Double_t amp1,amp2,time1,time2; const Int_t nfiles = 400; const Int_t Nlines = 500; TFile *f1 = new TFile("source.root","RECREATE"); TTree *tree = new TTree("rtree","signal"); tree->Branch("A1",A1,"A1[1000]/D"); tree->Branch("A2",A2,"A2[1000]/D"); tree->Branch("T1",T1,"T1[1000]/D"); tree->Branch("T2",T2,"T2[1000]/D"); ifstream myfile1,myfile2; Int_t i=0; //for(Int_t i=0;iFill(); for(j=0;jWrite(); f1->Close(); }