TWiki
>
NA62 Web
>
UseCVMFS
(2016-10-18,
DanProtopopescu
)
(raw view)
E
dit
A
ttach
---+ Using the CVMFS na62fw Installation From version v0.9.0 up, the NA62 software framework is available on PPE machines via CVMFS. No Git checkout or compilation is necessary in order to run simulation or reconstruction - the code is compiled by the developers and can be found in =/cvmfs/na62.cern.ch/offline/NA62FW/prod/=. %TOC% ---++ Set up na62fw We are using version =v0.9.1= in this example, but this should be valid for future production versions as well. Assuming you are on a CVMFS-enabled machine, in your preferred work directory (say =~/work=), <verbatim> cd mkdir -p work/ cd work </verbatim> setup your !NA62FW with the commands <verbatim> /cvmfs/na62.cern.ch/offline/NA62FW/prod/v0.9.1/NA62FWBuildRunTree.py -v v0.9.1 -w ~/work/v0.9.1 cd v0.9.1 source envv0.9.1.sh </verbatim> This will create two new subdirectories, !NA62MC and !NA62Reconstruction. =NA62AnalysisBuilder.py= will be added to your =PATH= and !NA62Reco can be run from the !NA62Reconstruction directory. ---++ Running MC Assuming you've set up your framework as above, and you are in =~/work/v0.9.1=, configure GTK with <verbatim> cd NA62MC/ chmod u+x config/GTK_RunCond.sh config/GTK_RunCond.sh 3809 </verbatim> then run the simulation with <verbatim> NA62MC macros/StandardRun.mac </verbatim> This example will produce 1000 events in a file named =pluto.root= located in the current directory. To simulate other physics channels, create your own macro using the =StandardRun.mac= example. ---++ Running Reconstruction First we go to the !NA62Reconstruction directory and we adapt our SAV and LKr configurations for MC data type <verbatim> cd ../NA62Reconstruction cat config/NA62Reconstruction.2015.conf | sed 's|\(RecoSeq.*\)SAV|\1|' > config/NA62Reconstruction.conf mv -v config/LKr.2015.conf config/LKr.2015.conf.orig cat config/LKr.2015.conf.orig | sed 's|^DataType =.*|DataType = mc|' | sed 's|^RefShapeFileName=.*|RefShapeFileName= config/LKr-refshape_mc.dat|' | sed 's|^DigFilterFileName=.*|DigFilterFileName= config/LKr-digfcons_mc.dat|' > config/LKr.2015.conf </verbatim> Note that you can modify the reconstruction configuration by hand, simply by editing the files =config/NA62Reconstruction.conf= and =config/LKr.2015.conf= (see [[%PUBURLPATH%/%WEB%/%TOPIC%/mc-data-diff.txt][differences here]] ). Then reconstruct the MC file produced in the previous step with <verbatim> ./NA62Reco -i ../NA62MC/pluto.root -o reco.root </verbatim> This will produce a file named =reco.root= located in the current directory. ---++ Running Analysis To run the analysis, you will have to use the usual recipe for downloading !NA62Analysis and setting up !UserAnalysis.
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
txt
mc-data-diff.txt
r1
manage
0.7 K
2016-10-18 - 12:11
DanProtopopescu
Differences between data and MC reconstruction configurations
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2016-10-18
-
DanProtopopescu
NA62
Log In
or
Register
NA62 Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback