![]() |
|
|||
File indexing completed on 2025-08-06 08:12:31
0001 #include "Analyze.h" 0002 #include <fstream> 0003 0004 using namespace std; 0005 0006 R__LOAD_LIBRARY(libAnalyze.so) 0007 0008 void runAnalysis(const char * listfilename="") 0009 { 0010 /* 0011 //std::string save_dir = "/home/phnxrc/INTT/commissioning_5_23/hit_files/"; 0012 std::string save_dir = "./"; 0013 0014 ifstream fin(listfilename); 0015 if(!fin) { 0016 cout<<"failed to open file : "<<listfilename<<endl; 0017 } 0018 0019 char filename[2048]; 0020 fin>>filename; 0021 fin.close(); 0022 0023 TString out_file_name = gSystem->BaseName(filename); 0024 out_file_name.ReplaceAll(".root", "_ana.root"); 0025 out_file_name.Replace(out_file_name.Index("intt", 0), 5, "inttall"); 0026 out_file_name = save_dir + out_file_name; 0027 0028 std::cout << out_file_name << std::endl; 0029 0030 // read and generate InttTree 0031 0032 if ( listfilename != NULL) 0033 { 0034 InitAnalysis(out_file_name.Data()); 0035 std::cout<<listfilename<<std::endl; 0036 RunAnalysis(listfilename); 0037 } 0038 */ 0039 InitAnalysis("test.root"); 0040 RunAnalysis(""); 0041 0042 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |