Open lucabaldini opened 8 years ago
analyzer git clone https://your_user@github.com/centrofermi/EEE_Analyzer
cd EEE_Anayzer/eeeroot
make config make
il binario è sotto bin
eeereco.exe -b -r -c full_path/SCHOL-XX_XX/XX/XXXX_XXXXX.bin
-b batch mode -r resetta le vecchie calibrazioni -c calibra prima di ricostruire -oc calibra col vecchio schema (non strip by strip) -d aggiunge qualche istogramma -e0 -e1 -e2 per studi efficienze
-a update file invece di ricrearlo
And here I am logging the progress.
config/__analyzer__.py
: added new variable E3_ANALYZER_NEWtasks/e3analyzer2.py
: created new task for the new analyzer.apps/e3analyzer2.py
: created new app for the new analyzer.Ok, this seems to do something, although at this time I don't seem to be able to compile the new analyzer and I am just borrowing one from Francesco, namely /home/noferini/Soft/EEE_Analyzer/eeeroot/bin/eeereco.exe
[lbaldini@eee-analisi e3pipe]$ e3analyzer2.py /data/SAVO-02/data/2015-11-30/SAVO-02-2015-11-30-00001.bin
Welcome to e3pipe version 2.3.3 (built on Sat, 11 Jul 2015 08:24:07 -0700).
Copyright (C) 2014--2015 Luca Baldini (luca.baldini@pi.infn.it)
e3pipe comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain
conditions. See the LICENSE file for details.
Visit https://github.com/centrofermi/e3pipe more information.
>>> About to execute "rm -rf /home/lbaldini/eeetmp/*"...
>>> Command executed with status code 0.
>>> Content of /home/lbaldini/eeetmp: []
>>> Processing run data file /data/SAVO-02/data/2015-11-30/SAVO-02-2015-11-30-00001.bin...
>>> About to copy /data/SAVO-02/data/2015-11-30/SAVO-02-2015-11-30-00001.bin to /home/lbaldini/eeetmp/SAVO-02-2015-11-30-00001.bin...
>>> File succesfully copied.
>>> Generating the calibration file...
>>> About to execute "cd /home/lbaldini/eeetmp; /home/noferini/Soft/EEE_Analyzer/eeeroot/bin/eeereco.exe -b -r -c /home/lbaldini/eeetmp/SAVO-02-2015-11-30-00001.bin"...
>>> Command executed with status code 0.
>>> Run processed in 19.512 s.
>>> Content of /home/lbaldini/eeetmp: ['SAVO-02-2015-11-30-00001.bin', 'SAVO-02-2015-11-30-00001.root', 'SAVO-02-2015-11-30-00001_dst.root', 'eee_calib.txt']
>>> Returning dst file path: "/home/lbaldini/eeetmp/SAVO-02-2015-11-30-00001.root"...
[lbaldini@eee-analisi e3pipe]$
And starting with the dst:
This fails, but at this point I can't tell whether it's because I am using an old version of the analyzer. .
The relevant part of the code is in tasks/e3recon.py, particularly the lines
Assuming that the root output of the new analyzer is compatible (from the prospective of the DQM) with the old one, we should just replace this with a one-line call to the new analyzer, and then proceed as before.
Some questions/items for discussion:
As we do this, it'd be nice to fix a few other things that have had issues open for a long time. I will do a list here.
The new analyzer produces an additional output file that's useful for comparison with the old analyzer. In this initial stage we want to keep it.
We want to maintain the old analyzer for the time being.