--
JianqiaoDeng - 2022-07-13
At this place, I take zmumu as example, you should first get the logicpath of zmumu,
such as /MC/Upgrade/Beam7000GeV-Upgrade-MagDown-Nu7.6-25ns-Pythia8/Sim10-Up08/42112001/XDIGI
then tarnsform it to physics path and download these xidgi files.
///////////////
lhcb-proxy-init
lb-dirac dirac-bookkeeping-get-files --BK /MC/Upgrade/Beam7000GeV-Upgrade-MagDown-Nu7.6-25ns-Pythia8/Sim10-Up08/42112001/XDIGI --Output=zgg_magdown
cat zgg_magdown | awk '{print "LFN:"$1}' > magdown
//this command will produce pool_xml_catalog.xml
lb-dirac dirac-bookkeeping-genXMLCatalog --File=magdown
grep ROOT_All pool_xml_catalog.xml | awk '{print $3}' | sed "s/\"/\ /g" | awk '{print " - \"" $2"\""}'> final_magdown
vi final_magdown
//add download command to every line
%s/ -/lb-dirac dirac-dms-get-file -/g
mv final_magdown final_magdown.sh
sh final_magdown.sh
//////////////////
These xidgi files are very large, you should download them at /eos/home-X/yourname/.
-
How to get logical path?
click "DIRAC Portal", Applications->Data->Bookkeeping Browser, then set "simulation condition" to "Event type"