1 / 17

BesIII offline software system (BOSS)

BesIII offline software system (BOSS). Boss development environment. Framework :Based on GAUDI External Libs: CERNLIB 、 ROOT 、 CLHEP 、 Geant4 、 and etc. Developing language : C++ , some FORTRAN Configuration management tool : CMT. Linux 下的常用命令. cd 改变工作目录 cd ../.. 到上两级目录 ls 显示该目录下的内容

aram
Download Presentation

BesIII offline software system (BOSS)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BesIII offline software system (BOSS)

  2. Boss development environment • Framework :Based on GAUDI • External Libs: CERNLIB、ROOT、CLHEP、Geant4、and etc. • Developing language : C++,some FORTRAN • Configuration management tool : CMT

  3. Linux 下的常用命令 • cd 改变工作目录 • cd ../.. 到上两级目录 • ls 显示该目录下的内容 • mkdir 建立子目录(文件夹) • mv 将一个文件(夹)移入另一个目录 • rm 删除文件及文件夹 • cp 拷贝文件 • cp-r 拷贝文件夹 • pwd 查看当前路径

  4. Linux操作系统下vi编辑器常用命令 Comand mode:控制屏幕光标的移动,字符或光标的删除,移动复制某区段 Insert mode:文字数据输入 Last line mode:储存文件或离开编辑器,寻找字符串、列出行号 vi的基本操作 a)进入vi 在系统提示符号输入vi及文件名称后,就进入vi全屏幕编辑画面: $ vi myfile b)编辑文件 按一下字母 i 就可以进入Insert mode,这时候你就可以开 始输入文字了。 yw:复制光标所在处到单词字尾的字符

  5. yy:复制光标所在行 p:粘贴 dd:删除光标所在行 u:撤销操作 Ctrl+G:列出光标所在行的行号 Ctrl+B:屏幕往后移动一页 Ctrl+F:屏幕往前移动一页 0 (数字零):移动文章的开头 G:移动到文章的最后 c) 退出vi及保存文件 按esc键,进入Command mode,输入:进入Last line mode set nu (列出行号 ) /( 查找) 1,$s/A/B/g (将全文A替换为B) w (输入 w 保存修改)wq (输入 wq,存盘并退出vi) q! (输入 q!, 不存盘强制退出vi)

  6. Set environment • Change SHELL • 在根目录下面键入命令chsh • New shell [/bin/bash]: [/bin/tcsh] • 退出重新login, change shell 才能生效。

  7. Set environment • mkdir cmthome • mkdir workarea • cd cmthome • cp -r /lufs/softimgs/bes6.5.5/scripts/6.5.5./ • cd 6.5.5 • vi requirements ${HOME}/boss改成${HOME}/workarea • vi setupCMT.csh 写入 source /lufs/softimgs/bes6.5.5/CMT/v1r20/mgr/setup.csh • 退出并保存 命令 :wq • vi setup.cshpath=/home/用户名/cmthome/6.5.5

  8. Set environment • cd workarea • cp –r /lufs/softimgs/bes6.5.5/dist/6.5.5/TestRelease ./ • cd TestRelease/TestRelease-00-00-75/cmt • vi setup.csh 更改 path=/home/用户名/workarea • 在根目录下面 vi .tcshrc • 写入 alias ls 'ls --color=tty’ set autolist source /lufs/softimgs/bes6.5.5/setup.csh source /home/用户名/cmthome/6.5.5/setupCMT.csh source /home/用户名/cmthome/6.5.5/setup.csh source /home/用户名/workarea/TestRelease/*/cmt/setup.csh • source .tcshrc • 如果没有错误,就说明你的环境已经设好了! 

  9. Structure of a package • /src : source files (*.cxx) • /<package-name> : header files (*.h) • /cmt : requirements file and some scripts • /share : jobOptions and other running scripts • /i386_linux24 : Automatically created at build time

  10. Example : ExHelloWorld • cd workarea • cp –r /lufs/softimgs/bes6.5.5/dist/6.5.5/BesExamples ./ • mkdir BesExamples • mv ExHelloWorld BesExamples • cd TestRelease/TestRelease-00-00-46/cmt/ • vi requirements

  11. 保存并退出 :wq

  12. cmt br cmt config • cmt br make • cd ../../../BesExample/ExHelloWorld/ExHelloWorld-00-00-03/share/ • boss.exe HelloWorldOptions.txt • 运行模拟作业boss.exe jobOptions_sim.txt • 运行重建作业boss.exe jobOptions_rec.txt

  13. Example: RhopiAlg • cd workarea • cp -r /top/level/directory/dist/6.4.1/Analysis/Physics/ ./ • mkdir Analysis • mv Physics Analysis • cd TestRelease/TestRelease-00-00-46/cmt/ • vi requirements

  14. cmt br cmt config • cmt br make • 运行分析作业 boss.exe jobOptions_ana_rhopi.txt • 打开root文件 root rhopi_ana.root

  15. Reference • Boss 网页 • http://bes3.ihep.ac.cn/group/offline/index.html • 我的mail : • licui@mail.ustc.edu.cn • wangyadi12@mail.ustc.edu.cn • licui@ihep.ac.cn

  16. 谢谢 !

More Related