Difference: UseCVMFS (1 vs. 2)

Revision 22016-10-18 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Using the CVMFS na62fw Installation

Line: 27 to 27
 

Running MC

Changed:
<
<
Assuming you've set up your framework as above, and you are in ~/work/v0.9.1, run the simulation with
>
>
Assuming you've set up your framework as above, and you are in ~/work/v0.9.1, configure GTK with
 
cd NA62MC/
chmod u+x config/GTK_RunCond.sh
config/GTK_RunCond.sh 3809
Added:
>
>
then run the simulation with
 NA62MC macros/StandardRun.mac 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.
Line: 45 to 48
 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
Changed:
<
<
Note that you can modify the reconstruction configuration by hand, simply by editing the files config/NA62Reconstruction.conf and config/LKr.2015.conf.
>
>
Note that you can modify the reconstruction configuration by hand, simply by editing the files config/NA62Reconstruction.conf and config/LKr.2015.conf (see differences here ).
  Then reconstruct the MC file produced in the previous step with
Line: 56 to 59
 

Running Analysis

To run the analysis, you will have to use the usual recipe for downloading NA62Analysis and setting up UserAnalysis.

Added:
>
>
META FILEATTACHMENT attachment="mc-data-diff.txt" attr="" comment="Differences between data and MC reconstruction configurations" date="1476792682" name="mc-data-diff.txt" path="mc-data-diff.txt" size="731" user="DanProtopopescu" version="1"

Revision 12016-10-18 - DanProtopopescu

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

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/.

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),

cd 
mkdir -p work/
cd work
setup your NA62FW with the commands
/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

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, run the simulation with

cd NA62MC/
chmod u+x config/GTK_RunCond.sh
config/GTK_RunCond.sh 3809
NA62MC macros/StandardRun.mac
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

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
Note that you can modify the reconstruction configuration by hand, simply by editing the files config/NA62Reconstruction.conf and config/LKr.2015.conf.

Then reconstruct the MC file produced in the previous step with

./NA62Reco -i ../NA62MC/pluto.root -o reco.root
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.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback