Difference between revisions of "NU JPsi Simulations"

From GlueXWiki
Jump to: navigation, search
(Simulations)
(Simulations)
Line 14: Line 14:
 
==Simulations==
 
==Simulations==
  
Example files are located at.
+
Example files are located at:
 
<pre>
 
<pre>
 
/work/halld/home/sdobbs/jpsi_mc/
 
/work/halld/home/sdobbs/jpsi_mc/
Line 32: Line 32:
 
* mcsmear simulates the response of the detector
 
* mcsmear simulates the response of the detector
 
* hd_root is the main analysis program
 
* hd_root is the main analysis program
 +
 +
Notes:
 +
* When analyzing simulations (e.g. running hd_root) you should set the environment variable JANA_CALIB_CONTEXT in the following way: (setenv JANA_CALIB_CONTEXT "variation=mc")
 +
* There's current a bug in the code for certain run values.  The current example files use run 1501.

Revision as of 18:26, 30 March 2015

Quick Start

  1. Copy /work/halld/home/sdobbs/jpsi_mc
  2. To load software configurations, use setup_jlab.csh script, e.g., "source setup_jlab.csh"
  3. Optional, check out your own copy of latest software and build it:
    1. HDDS geometry package: svn co https://halldsvn.jlab.org/repos/trunk/hdds
    2. sim-recon: svn co https://halldsvn.jlab.org/repos/trunk/sim-recon
    3. Designate local build area by setting HALLD_MY
    4. J/psi event generator: svn co https://halldsvn.jlab.org/repos/trunk/home/sdobbs/bggen_jpsi - place in local build area
  4. Build/develop plugin: /work/halld/home/sdobbs/halld_my/plugins/ccbar_recon

Simulations

Example files are located at:

/work/halld/home/sdobbs/jpsi_mc/

The simulation chain looks like the following:

bggen_jpsi
hdgeant
mcsmear hdgeant.hddm
hd_root -PPLUGINS=analysis_plugin hdgeant_smeared.hddm

Where

  • bggen_jpsi generates the 4-vectors of the reaction. It is one of the many generator programs that does so. Its configuration file is "run_jpsi.ffr", which must be softlinked to "fort.15".
  • hdgeant simulates the path of the generated particles through the detector using GEANT. Its configuration file is "control.in".
  • mcsmear simulates the response of the detector
  • hd_root is the main analysis program

Notes:

  • When analyzing simulations (e.g. running hd_root) you should set the environment variable JANA_CALIB_CONTEXT in the following way: (setenv JANA_CALIB_CONTEXT "variation=mc")
  • There's current a bug in the code for certain run values. The current example files use run 1501.