Get SCT AxAOD files

Set up rucio.

setupATLAS
lsetup emi
voms-proxy-init -voms atlas
lsetup rucio

Get SCT AxAOD files

rucio get --nrandom 1 user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.DAOD_SCTVALID_EXT0/

Prepare SCT_AxAODAnalysis package

First time setup

setupATLAS
svn co svn+ssh://svn.cern.ch/reps/atlasgroups/Detectors/SCT/AnalysisCode/SCT_AxAODAnalysis SCT_AxAODAnalysis
cd SCT_AxAODAnalysis
lsetup 'rcSetup Base,2.4.22'
rc find_packages
rc compile

Subsequent setup

setupATLAS
cd SCT_AxAODAnalysis
lsetup rcsetup

SCTAna/Root/SCTEventLoop.cxx

Please make sure

 SCTDataSize* dataSize=new SCTDataSize();
 m_analysisAlgs->push_back(dataSize);

are not commented out in SCTEventLoop :: addAnalysisAlgs () of SCTAna/Root/SCTEventLoop.cxx.

Run runSCTAna

Make input file list

\ls -1 ../user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.DAOD_SCTVALID_EXT0/* > inputfiles.txt

Run runSCTAna

runSCTAna

histograms.root is created.

Run runSCTAna on the grid

setupATLAS
lsetup rcsetup
lsetup emi
voms-proxy-init -voms atlas
lsetup panda
prun --exe "echo %IN | tr ',' '\n' > inputfiles.txt; runSCTAna" --inDS user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.DAOD_SCTVALID_EXT0/ --outDS user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.histograms/ --outputs histograms.root --useRootCore --mergeOutput

https://svnweb.cern.ch/trac/atlasgroups/browser/Detectors/SCT/AnalysisCode/SCT_AxAODAnalysis/README#L67

Get and merge output files

rucio get user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.histograms_histograms.root/

lsetup root
hadd -f ./histograms.root user.oda.data16_13TeV.00309390.physics_Main.lb0110_lb0113.histograms_histograms.root/*root*

Analysis codes

Get analysis codes

cd ..
svn co svn+ssh://svn.cern.ch/reps/atlas-oda/oda/SCT/NTUP_SCT/RdoClusterSize/trunk/macro_v3 macro_v3
cd macro_v3
setupATLAS
lsetup root

Run analysis codes

root -l -b -q CalculateDataSizeOfLinksPol.C'("../SCT_AxAODAnalysis/histograms.root")'
root -l -b -q PlotDataFlowFromRODAtAMuPol.C

output/SizePerGroup.txt will be created.


トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-02-24 (金) 20:46:51 (821d)