《可以按照网页上的说明来建立自己的工》由会员分享,可在线阅读,更多相关《可以按照网页上的说明来建立自己的工(26页珍藏版)》请在金锄头文库上搜索。
1、1Using the offline software at BESIII -primaryLI Gang Group meeting, 2006-06-202Content BOSS short introduction Starts the jobs of simulation, reconstruction and analysis Using of ROOT Popular fit package - roofit Using your generatorAll based on BOSS 6.0.03BOSS- BESIII Offline Software System? Mach
2、ine: , ? OS : Scientific Linux Cern (SLC)? Compiler : gcc-3.2.3? Framework :Based on GAUDI_v16r4? External lib: lcg/external; geant4 and etc.? Developing language : C+,some FORTRAN? Database : PostgreSql, MySql? Version management tool : CVS? Browsing files in CVS repository : ViewCVS? Configuration
3、 management tool : CMT4BOSSStructure(link)BOOST integrated with BOSS5Starts the jobs 可以按照网页上的说明来建立自己的工 作环境。 也可以采用网上给出的脚本自动建立。 但是,前提是必须有lxplus和lxslc上的帐 号,以及koala上的cvs帐号(用来从cvs checkout 相关的文件)6Setting up your CMT environment 首先,连接CMT $mkdir cmthome $cp /afs/ /cmthome 注:如果你使用的是bash,则copy setupCMT.sh到你的
4、 cmthome目录下。 然后,修改login requirements,设置符合自己要求的配置 $cp /afs/ /cmthome 编辑requirements文件,使其符合你的要求 $vi requirements 注:需要修改的可能有两个地方: set BES_RELEASE 6.0.0 macro WorkArea “/ihepbatch/bes/lig/workarea“ 7author # set the SITEROOTset SITEROOT “/afs/ # Set release numbermacro BES_RELEASE “6.0.0“#macro BES_RELE
5、ASE “nightly_build“# Setup the CMT search pathset BesArea “$(BES_DIST_AREA)/$(BES_RELEASE)“path_remove CMTPATH “/sw/dist/“path_prepend CMTPATH “$BesArea“# Setup the CMT search pathset BesArea “$(BES_DIST_AREA)/$(BES_RELEASE)“path_remove CMTPATH “dist“path_prepend CMTPATH “$BesArea“#Add your worarea
6、to CMTPATHmacro WorkArea “/ihepbatch/bes/lig/workarea“ 8 最后,设置环境完成 source setupCMT.csh cmt config source setup.csh mkdir workarea; cd workarea; cmt co TestRealse 注:最好把以下语句放到.tcshrc文件中: source /ihepbatch/bes/lig/cmthome/setupCMT.csh source /ihepbatch/bes/lig/cmthome/setupCVS.csh source /ihepbatch/bes
7、/lig/cmthome/setup.csh source /ihepbatch/bes/lig/workarea/TestRelease/TestRelease-00-00- 14/cmt/setup.csh9How to run simulation jobAssuming you have done: Setup your environment in /cmthome Checkout package TestRelease to your $workarea (1) cd TestRelease/*/cmt (2) vi requirements #= for Generator =
8、 use PartPropSvcPartPropSvc-* Generator use Tester Tester-* Generator/BesGenInterface use Howl Howl-* Generator/BesGenInterface use RadeeRadee-* Generator/BesGenInterface . #= for Simulation = use BesSimBesSim-* Simulation/BOOST10How to run simulation job (3) cmt config (4) cmt broadcast gmake (5) s
9、ource setup.csh (6) cd ./run (7) edit jobOption file: jobOptions_sim.txt11jobOptions_sim.txt ApplicationMgr.DLLs += “Tester“ , “BesSim“ ; ApplicationMgr.TopAlg += “BesGenModule“ , “BesSim“; #include “Bes_Gen.txt“ #include “PartPropSvc.txt“ BesSim.Mdc = 1; (0:no construction 1; construction) BesSim.T
10、of = 1; BesSim.Emc = 1; BesSim.Muc = 1; BesSim.Field = true; BesSim.PhysicsList = 4; 1:BesPhysicsList 2:LHEP_GN 3:QGSP_GN 4:QGSPfor BOSS 6.0.012jobOptions_sim.txtApplicationMgr.DLLs += “G4Svc“ ; ApplicationMgr.ExtSvc += “G4Svc“ ;/ interactive mode G4Svc.InteractiveG4 = false;/Geant4 run macro, to se
11、t directory and file name of output data G4Svc.FADSMacro = “run.mac“; / geant4 verbosity G4Svc.RunVerbosity = 1; G4Svc.EventVerbosity = 0; G4Svc.TrackingVerbosity = 0; /number of events to simulate ApplicationMgr.EvtMax = 10; for BOSS 6.0.013How to run simulation job (8) edit generator card (run.car
12、ds) same as genbes.cards in BESII the generator name in run.cards must match with algorithm name in jobOptions_sim.txt ApplicationMgr.DLLs += “Rhopi“ , “BesSim“ ; ApplicationMgr.TopAlg += “BesGenModule“ , “BesSim“; generator_name rhopi rhopi_ipar 1 Ineffective control in run.cards Event range (contr
13、olled in jobOption) Random seed (will be added in the future by yugw)for BOSS 6.0.014Particle ID in run.cardssame as BESII15How to run simulation job (9) edit run.mac /run/runID -9 /runAction/ascii 1 1 1 1 1 1 1 1 /home/lig/boost.dat you must specify a full directory name, such as /ihepbatch/besdata
14、/public/lig/boost.dat (10) boss.exe jobOptions_sim.txtMDCTRUTHTOFTRUTHEMCTRUTHMUCTRUT HMDCDIGITOFDIG IEMCDIGIMUCDIGIfor BOSS 6.0.016How to run simulation job In brief specify generator algorithm in jobOptions_sim.txt ApplicationMgr.DLLs += “Rhopi“ , “BesSim“ ; G4Svc.FADSMacro = “run.mac“; ApplicationMgr.EvtMax = 10; open generator in run.cards generator_name rhopi specify output data file in run.mac /runAction/ascii 1 1 1 1 1 1 1 1 /home/lig/boost.dat using all the other default settingsfor BOSS 6.0.017How to run r