evovch / ACCULINNA_go4_user_library

1 stars 6 forks source link

online analysis in Go4 v5.3.1, build with ROOT 6.10/08 and Qt 5.9.5 #24

Open himyss opened 6 years ago

himyss commented 6 years ago

at the present moment I have a problem with reading .lmd file using Go4

After using bottom "Launch analysis" I choose this library: ACCULINNA_go4_user_library/build/useranalysis/libAccDaqUserAnalysis.so But I dont know what should i write into "Field" I tried to fill it with "3,/media/user/work/data/exp1804/test.root,/media/user/work/software/ACCULINNA_go4_user_library/usr/setup2_exp201803.xml" bui it did not work. I always get this error message: if (argc != 3) { // UserAnalysis.cxx str 47 TGo4Log::Error("Wrong number of arguments for the UserAnalysis constructor!\n" "Please supply the output and the setup configuration files' names.\n" "go4analysis ... -args output.root setup.xml"); exit(EXIT_FAILURE); } So what arguments are requared for this constructor UserAnalysis::UserAnalysis(int argc, char** argv) ?

himyss commented 6 years ago

Ok i figured out how to run it. I have to fill the field : Args in this way : -args output.root setup.xml which was not clear from that message.

evovch commented 6 years ago

The current syntax for batch analysis (no GUI) is the following:

go4analysis -v -lib libAccDaqUserAnalysis.so -number 1000 -asf autosave.root -file input.lmd -args ${OUTPUTFILE} ${SETUPFILE} >> out.txt 2> err.txt

-v - max verbose -lib libAccDaqUserAnalysis.so - specify dynamic library name -number 1000 - specify number of events to process -asf autosave.root - specify autosave file name -file input.lmd - specify input lmd or lml file -args ... - supply arguments to the 'main' program, which are processed by the user code (not somewhere deep inside go4 code).

See: https://github.com/evovch/ACCULINNA_go4_user_library/blob/master/useranalysis/UserAnalysis.cxx#L58 https://github.com/evovch/ACCULINNA_go4_user_library/blob/master/useranalysis/UserAnalysis.cxx#L76 https://github.com/evovch/ACCULINNA_go4_user_library/blob/master/useranalysis/UserAnalysis.cxx#L77

The trailing

out.txt 2> err.txt should be read as: append the stdout stream to the out.txt file and the stderr stream to the err.txt

This most probably be expanded one day. Exactly due to that reason the run.sh script is provided.

evovch commented 6 years ago

The procedure of using this go4 user library with go4 GUI has to be tested and instructions should be written.

vratislav3 commented 6 years ago

When launching analysis in GUI, we have to provide "Args" in Launch analysis dialog windows. It is very inconvenient to write full path to the window. E.g. output file is already written in next dialog in one of the steps.

Except it we need to launch online analysis without writing any output file. The histograms are not needed to be saved as well.