{ gInterpreter->Reset(); // Reset Root gInterpreter->AddIncludePath("C:/Users/Luminociter/Desktop/HGTDUtils/"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/HGTDUtils.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/HGTDfITS.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/DataConverters.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/HGTDSel.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/WaveForm.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/DUTChannel.cxx+"); gInterpreter->LoadMacro("C:/Users/Luminociter/Desktop/HGTDUtils/Root/HGTDRun.cxx+"); HGTDUtils* Utils = new HGTDUtils(); Utils->SetVerbose(false); // Testbeam example Utils->SetInstrument(2); Utils->SetInDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets/Testbeam", "data_1536561052"); Utils->SetOutDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets"); Utils->SetStartStopEvnt(0, 0); // Lab example //Utils->SetInstrument(1); //Utils->SetInDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets/LecroyTXT"); //Utils->SetOutDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets"); //Utils->SetStartStopEvnt(2000, 0); // Sampic Example // Start stop event not supported (no effect) //Utils->SetInstrument(0); //Utils->SetInDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets/Run_SAMPIC_Vagelis3_Data_2_26_2018_Ascii"); //Utils->SetOutDataNames("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets"); //Utils->ConvertData(); HGTDRun* Run1 = new HGTDRun(Utils); // Create the analysis chain TChain *chain = new TChain("wfm", ""); chain->SetCacheSize(500 * 1024 * 1024); gEnv->SetValue("TFile.AsyncPrefetching", 1); // Add data files to the chain chain->Add("C:/Users/Luminociter/Desktop/HGTDUtils/Sample Datasets/data_1536561052.root"); chain->Process(Run1,""); }