Presentation is loading. Please wait.

Presentation is loading. Please wait.

Setup and run athena locally and on grid Cunfeng feng 2005.9.19.

Similar presentations


Presentation on theme: "Setup and run athena locally and on grid Cunfeng feng 2005.9.19."— Presentation transcript:

1 Setup and run athena locally and on grid Cunfeng feng 2005.9.19

2 Setup work environmental The athena kits have been install in ui.hepg.sdu.edu.cn The athena kits have been install in ui.hepg.sdu.edu.cn You should have account in UI. You should have account in UI. Setup work directory in ui (from Li Hengne report) Setup work directory in ui (from Li Hengne report) cd /home/atlas/tools/pacman-3.11 cd /home/atlas/tools/pacman-3.11 source setup.sh source setup.sh cd /home/atlas/AtlasRelease cd /home/atlas/AtlasRelease source setup.sh source setup.sh source dist/10.0.3/Control/AthenaRunTime/*/cmt/setup.sh source dist/10.0.3/Control/AthenaRunTime/*/cmt/setup.sh cd /home/fengcf/ cd /home/fengcf/ >mkdir – p work/10.0.3 >mkdir – p work/10.0.3 >cd work/10.0.3 >cd work/10.0.3 pacman – get /home/atlas/AtlasReleases :10.0.3/AtlasRelease-slc3_ia32-opt pacman – get /home/atlas/AtlasReleases :10.0.3/AtlasRelease-slc3_ia32-opt ls ls o..pacman..o setup.csh setup.pl setup.py setup.sh trusted.cache o..pacman..o setup.csh setup.pl setup.py setup.sh trusted.cache

3 CVS Access Help : https://uimon.cern.ch/twiki/bin/view/Atlas/CvsAccess Help : https://uimon.cern.ch/twiki/bin/view/Atlas/CvsAccess https://uimon.cern.ch/twiki/bin/view/Atlas/CvsAccess mv /home/fengcf/.ssh /home/**/.ssh mv /home/fengcf/.ssh /home/**/.ssh get identify to CVS ( use minghui@lxplus.cern.ch account) get identify to CVS ( use minghui@lxplus.cern.ch account)minghui@lxplus.cern.ch mv /home/fengcf/work/10.0.3/setup.sh /home/**/work/ mv /home/fengcf/work/10.0.3/setup.sh /home/**/work/ or just adjust your work/setup.sh same as mine or just adjust your work/setup.sh same as mine (set CVSROOT) (set CVSROOT) source setup.sh source setup.sh cd work/10.0.3 cd work/10.0.3 cmt co – r AthExHelloWorld-00-01-12 Control/AthenaExamples/AthExHelloWorld cmt co – r AthExHelloWorld-00-01-12 Control/AthenaExamples/AthExHelloWorld ssh minghui@isscvs.cern.ch ( don ’ t need passward) ssh minghui@isscvs.cern.ch ( don ’ t need passward)minghui@isscvs.cern.ch

4 Modifying Athena Helloworld cd work/10.0.3 cd work/10.0.3 source ~/atlas-10.0.3-setup.sh source ~/atlas-10.0.3-setup.sh cmt co – r AthExHelloWorld-00-01-12 Control/AthenaExamples/AthExHelloWorld cmt co – r AthExHelloWorld-00-01-12 Control/AthenaExamples/AthExHelloWorld cmt co – r UserAnalysis-00-02-02 PhysicsAnalysis/AnalysisCommon/UserAnalysis cmt co – r UserAnalysis-00-02-02 PhysicsAnalysis/AnalysisCommon/UserAnalysis cd Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01- 12/src cd Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01- 12/src vi HelloWorld.cxx vi HelloWorld.cxx cd../cmt cd../cmt cmt config cmt config source setup.sh source setup.sh gmake gmake cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-02- 02/run cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-02- 02/run get_files HelloWorldOptions.py get_files HelloWorldOptions.py Athena.py HelloWorldOptions.py Athena.py HelloWorldOptions.py

5 ATLAS analysis code install cd work/10.0.3 cd work/10.0.3 source ~/atlas-10.0.3-setup.sh source ~/atlas-10.0.3-setup.sh cmt co – r AnalysisExamples-00-09-18 PhysicsAnalysis/Analysiscommon/AnalysisExamples cmt co – r AnalysisExamples-00-09-18 PhysicsAnalysis/Analysiscommon/AnalysisExamples You will something like: You will something like: /home/fengcf/work/10.0.3/PhysicsAnalysis/Analysis Common/AnalysisExamples/AnalysisExamples-00-09- 18/ls /home/fengcf/work/10.0.3/PhysicsAnalysis/Analysis Common/AnalysisExamples/AnalysisExamples-00-09- 18/ls AnalysisExamples cmt doc python scripts src AnalysisExamples cmt doc python scripts src ChangeLog CVS mergingAOD run share ChangeLog CVS mergingAOD run share

6 Run ATHENA cd cmt cd cmt cmt config cmt config source setup.sh source setup.sh gmake gmake “ InstallArea ” will appear in you work/10.0.3/ after above operation. “ InstallArea ” will appear in you work/10.0.3/ after above operation. cd../share cd../share vi ttbarExample_jobOptions.py vi ttbarExample_jobOptions.py cd../run cd../run athena.py../ttbarExample_jobOptions.py athena.py../ttbarExample_jobOptions.py

7 ttbarExample_jobOption.py

8 Run again copy /home/fengcf2/atlas-10.0.3-setup.sh /home/**/. copy /home/fengcf2/atlas-10.0.3-setup.sh /home/**/. cd work/10.0.3/ cd work/10.0.3/ source ~/atlas-10.0.3-setup.sh source ~/atlas-10.0.3-setup.sh cd PhysicsAnalysis/Analysis/Common/AnalysisExaples/AnalysisE xamples-00-09-18/src cd PhysicsAnalysis/Analysis/Common/AnalysisExaples/AnalysisE xamples-00-09-18/src vi *.cxx vi *.cxx cd../cmt cd../cmt cmt config cmt config source setup.sh source setup.sh gamke gamke cd../run/ cd../run/

9 Modify the code We has add some code in AnalysisExamples-00-09-18 We has add some code in AnalysisExamples-00-09-18 You can just copy the file in my src, share, AnalysisExamples to the same directory where you work. You can just copy the file in my src, share, AnalysisExamples to the same directory where you work. cmt/gmake cmt/gmake vi share/ttbarExample_jobOptions_small.py vi share/ttbarExample_jobOptions_small.py cd run/ cd run/ athena.py../share/ttbarExample_jobOptions_small.py athena.py../share/ttbarExample_jobOptions_small.py

10 Rome files form: rome.AAAAAA.TYPE.DECS._NUM.END AAAAAA: AAAAAA: 0040xx and 0049xx is a single particle sample (RomeCalibrationWiki) 0040xx and 0049xx is a single particle sample (RomeCalibrationWiki)RomeCalibrationWiki 0041xx is a "background sample" (RomeBackgroundWiki) 0041xx is a "background sample" (RomeBackgroundWiki)RomeBackgroundWiki 0042xx is a sample owned by the standard model group (RomeStandardWiki) 0042xx is a sample owned by the standard model group (RomeStandardWiki)RomeStandardWiki 0043xx is a sample owned by the Higgs group (RomeHiggsWiki) 0043xx is a sample owned by the Higgs group (RomeHiggsWiki)RomeHiggsWiki 0044xx is a sample owned by the SUSY group (RomeSUSYWiki) 0044xx is a sample owned by the SUSY group (RomeSUSYWiki)RomeSUSYWiki 0045xx is a sample owned by the Top (RomeTopWiki) 0045xx is a sample owned by the Top (RomeTopWiki)RomeTopWiki 0046xx is a sample owned by the Exotics group (RomeExoticWiki) 0046xx is a sample owned by the Exotics group (RomeExoticWiki)RomeExoticWiki 0047xx is a sample owned by the B-group (RomeBWiki) 0047xx is a sample owned by the B-group (RomeBWiki)RomeBWiki 0048xx (xx =01 to 49) is a sample owned by the jet/missing Et group group (JetMissingET) 0048xx (xx =01 to 49) is a sample owned by the jet/missing Et group group (JetMissingET)JetMissingET 0048xx (xx =50 to 99) is a sample owned by b-tagging group (RomeBtagging) 0048xx (xx =50 to 99) is a sample owned by b-tagging group (RomeBtagging)RomeBtagging

11 TYPE: TYPE: evgen corresponding to generated events evgen corresponding to generated events simul corresponding events processed by Geant-4 simul corresponding events processed by Geant-4 digi corresponding to digitised events with no pile up (with noise) digi corresponding to digitised events with no pile up (with noise) lumi01 corresponding to digitised events with 1x10**33 pile up (with noise) lumi01 corresponding to digitised events with 1x10**33 pile up (with noise) reco is an output from reconstruction reco is an output from reconstruction

12 DECS: string provides a short discription of the data (e.g. ttbarWp) DECS: string provides a short discription of the data (e.g. ttbarWp) NUM: starting from 00001 NUM: starting from 00001 END: log or pool.root END: log or pool.root in case of TYPE=reco, END=pool.root for ESD in case of TYPE=reco, END=pool.root for ESD END=CBNT.root for CBNT END=CBNT.root for CBNT END=AOD.pool.root for AOD END=AOD.pool.root for AOD

13 Samples Rome samples : 004521 and 004520 Rome samples : 004521 and 004520 187985 semileptonic ttbar events (l = e, mu) 187985 semileptonic ttbar events (l = e, mu) Parameters Parameters Mtop=175 GeV Mtop=175 GeV CTEQ5L(The Coordinated Theoretical-Experimental Project on QCD ) CTEQ5L(The Coordinated Theoretical-Experimental Project on QCD ) ISR/FSR on ISR/FSR on Multiple Interaction = DC2 Multiple Interaction = DC2 Q-scale = default Toprex (sqrt(M top **2+P T ttop**2) Q-scale = default Toprex (sqrt(M top **2+P T ttop**2) Generation : 9.0.4 Generation : 9.0.4 TopReX 4.09 and Pythia 6.226, with spin correlation TopReX 4.09 and Pythia 6.226, with spin correlation Simulation, digitization : 9.0.4 Simulation, digitization : 9.0.4 Initial detector geometry Initial detector geometry Reconstruction : 10.0.1 Reconstruction : 10.0.1 Use AOD Use AOD

14 Rome.*.recov10.ttbarW*._*.AOD.pool.root Without pileup Without pileup ref. 4520 : W- decays to leptons (e, mu), W+ decays to jets (Wm) ref. 4520 : W- decays to leptons (e, mu), W+ decays to jets (Wm) ref. 4521 : W+ decays to leptons (e, mu), W- decays to jets (Wp) ref. 4521 : W+ decays to leptons (e, mu), W- decays to jets (Wp) NLO cross-section:125pb NLO cross-section:125pb

15 Rome data Part of rome ttbar AOD data copied to /home/fengcf2/data/romeTopAOD/ Part of rome ttbar AOD data copied to /home/fengcf2/data/romeTopAOD/ rome.004521.recov10.ttbarWp._00001.AOD.pool.root rome.004521.recov10.ttbarWp._00001.AOD.pool.root Part of them with error, don ’ t us: Part of them with error, don ’ t us: the file whose size is 0 the file whose size is 0 00817 00817 00886 00886 01190 01190 run/testDataSample.py include all the data file run/testDataSample.py include all the data file

16 On grid tar – cvlpf checkout.tar Control PhysicsAnalysis tar – cvlpf checkout.tar Control PhysicsAnalysis vi HelloWorld.cxx (copy from Control/ … ) vi HelloWorld.cxx (copy from Control/ … ) vi hello.sh vi hello.sh vi hello.jdl vi hello.jdl grid-proxy-init grid-proxy-init edg-job-submit – vo atlas – o jobID hello.jdl edg-job-submit – vo atlas – o jobID hello.jdl

17 On grid Hello.sh Hello.sh #!/bin/bash #!/bin/bash # Script to run AthenaHelloWorld on the Grid # Script to run AthenaHelloWorld on the Grid source $VO_ATLAS_SW_DIR/software/10.0.1/setup.sh source $VO_ATLAS_SW_DIR/software/10.0.1/setup.sh source $SITEROOT/dist/10.0.1/Control/AthenaRunTime/*/cmt/setup.sh source $SITEROOT/dist/10.0.1/Control/AthenaRunTime/*/cmt/setup.sh export CMTPATH=`pwd`:$CMTPATH export CMTPATH=`pwd`:$CMTPATH # Create the checked out package then replace the modified file # Create the checked out package then replace the modified file tar -xf checkout.tar tar -xf checkout.tar cp HelloWorld.cxx Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01-12/src/ cp HelloWorld.cxx Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01-12/src/ # Rebuild # Rebuild cd Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01-12/cmt cd Control/AthenaExamples/AthExHelloWorld/AthExHelloWorld-00-01-12/cmt cmt config cmt config source setup.sh source setup.sh gmake gmake cd../../../../.. cd../../../../.. athena.py HelloWorldOptions.py athena.py HelloWorldOptions.py

18 On grid Hello.jdl Hello.jdl ############# Athena ################# ############# Athena ################# Executable = "hello.sh"; Executable = "hello.sh"; StdOutput = "hello.out"; StdOutput = "hello.out"; StdError = "hello.err"; StdError = "hello.err"; InputSandbox = {"hello.sh","HelloWorldOptions.py","checkout.tar","HelloWorld.cxx"}; InputSandbox = {"hello.sh","HelloWorldOptions.py","checkout.tar","HelloWorld.cxx"}; OutputSandbox = {"hello.out","hello.err", "CLIDDBout.txt"}; OutputSandbox = {"hello.out","hello.err", "CLIDDBout.txt"}; Requirements = Member("VO-atlas-release-10.0.3", Requirements = Member("VO-atlas-release-10.0.3", other.GlueHostApplicationSoftwareRunTimeEnvironment); other.GlueHostApplicationSoftwareRunTimeEnvironment); ###################################### ######################################

19 Using Don Quijote (ATLAS Experiment Data Management System ) Install DQ Install DQ cd cd wget http://www/mi.infi.it/~gnegri/dms2.tgz wget http://www/mi.infi.it/~gnegri/dms2.tgzhttp://www/mi.infi.it/~gnegri/dms2.tgz tar xvzf dms2.tgz tar xvzf dms2.tgz dms2.py search ‘ rome.*AOD.pool.root ’ dms2.py search ‘ rome.*AOD.pool.root ’ dms2.py get rome.004201.reco.ZeeJimmy._00001.AOD.pool.root -- catalog=PoolFileCatalog.xml --copy --remote dms2.py get rome.004201.reco.ZeeJimmy._00001.AOD.pool.root -- catalog=PoolFileCatalog.xml --copy --remote (copy a file to the current directory and create a POOL catalogue file PoolFileCatalog.xml) (copy a file to the current directory and create a POOL catalogue file PoolFileCatalog.xml)

20 Run ATHENA locally CMT CMT mkdir cmthome mkdir cmthome cd cmthome cd cmthome source /home/atlas/AtlasReleases/CMT/v1r16p20040901 /mgr/steup.sh source /home/atlas/AtlasReleases/CMT/v1r16p20040901 /mgr/steup.sh vi requirements vi requirements cmt config cmt config

21 Requirements Requirements #--------------------------------------------------------------------- #--------------------------------------------------------------------- # LOGIN REQUIREMENTS FILE # LOGIN REQUIREMENTS FILE # Copy file into your cmthome directory and amend where shown # Copy file into your cmthome directory and amend where shown # Usage instructions are at the end of the file # Usage instructions are at the end of the file set CMTSITE CERN set CMTSITE CERN set SITEROOT /home/atlas/AtlasReleases set SITEROOT /home/atlas/AtlasReleases macro ATLAS_DIST_AREA ${SITEROOT}/dist/10.0.3/ macro ATLAS_DIST_AREA ${SITEROOT}/dist/10.0.3/ # use optimised version by default # use optimised version by default apply_tag opt apply_tag opt # Set the location of your preferred development area # Set the location of your preferred development area # You should then work in a sub directory e.g. ${HOME}/testarea/10.0.1 # You should then work in a sub directory e.g. ${HOME}/testarea/10.0.1 macro ATLAS_TEST_AREA ${HOME}/work macro ATLAS_TEST_AREA ${HOME}/work use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA) use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)

22 In cern lxplus cd $HOME cd $HOME > mkdir cmthome > mkdir cmthome > mkdir testarea > mkdir testarea > mkdir testarea/10.0.1 (this is the directory in which you will work) > mkdir testarea/10.0.1 (this is the directory in which you will work) > cd cmthome > cd cmthome > source /afs/cern.ch/sw/contrib/CMT/v1r16p20040901/mgr/setup.sh [or.csh] > source /afs/cern.ch/sw/contrib/CMT/v1r16p20040901/mgr/setup.sh [or.csh] >vi requirements >vi requirements >cmt config >cmt config Now kill the terminal window and log back in


Download ppt "Setup and run athena locally and on grid Cunfeng feng 2005.9.19."

Similar presentations


Ads by Google