File indexing completed on 2026-11-04 09:11:23
0001 #include "Setup.h"
0002 #include "RICHIRT.h"
0003 int main(int argc, char* argv[]){
0004 if(argc!=4){
0005 std::cerr<<"Usage: "<<argv[0]<<" <RICHString> <infile> <outfile>"<<std::endl;
0006 std::cerr<<" <RICHString> DRICH or PFRICH"<<std::endl;
0007 std::cerr<<" <infile> reconstructed edm4eic file"<<std::endl;
0008 std::cerr<<" <outfile> output file with histograms (written as given)"<<std::endl;
0009 return 1;
0010 }
0011 try{
0012 RICHIRT irt;
0013
0014 irt.set_irtRICH(argv[1]);
0015 irt.set_inFile(argv[2]);
0016 irt.set_outFile(argv[3]);
0017 irt.HistoInit();
0018 irt.SetCollections();
0019 irt.Process();
0020 }catch(const std::exception& e){
0021 std::cerr<<"Error: "<<e.what()<<std::endl;
0022 return 1;
0023 }
0024 return 0;
0025 }