Difference between revisions of "DSelector"
From GlueXWiki
(→Setting up your environment) |
|||
Line 4: | Line 4: | ||
=== Improvements over TSelectors === | === Improvements over TSelectors === | ||
− | = Setting up | + | = Setting up the software & environment = |
− | 1) | + | 1) Go to the directory where you want the source code to go. Checkout the software here: |
+ | <pre> | ||
+ | svn co https://halldsvn.jlab.org/repos/trunk/home/pmatt/RootAnalysis/ | ||
+ | </pre> | ||
+ | |||
+ | 2) Set the path to the checked-out RootAnalysis directory to be the variable: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
$ROOT_ANALYSIS_HOME | $ROOT_ANALYSIS_HOME | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 3) After sourcing your standard GlueX environment file, set the following environment variables: | |
<syntaxhighlight> | <syntaxhighlight> | ||
setenv OS_NAME $BMS_OSNAME | setenv OS_NAME $BMS_OSNAME | ||
Line 18: | Line 23: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 4) Build and install the DSelector library | |
− | + | <pre> | |
+ | cd $ROOT_ANALYSIS_HOME/DSelector | ||
+ | make all | ||
+ | </pre> | ||
+ | |||
+ | 5) Build and install the MakeDSelector binary | ||
+ | <pre> | ||
+ | cd $ROOT_ANALYSIS_HOME/MakeDSelector | ||
+ | make all | ||
+ | </pre> | ||
+ | |||
= Creating a DSelector = | = Creating a DSelector = |
Revision as of 11:13, 4 April 2016
Contents
Overview
- Inherits from TSelector: Can be used with TTree::Process(), PROOF.
Improvements over TSelectors
Setting up the software & environment
1) Go to the directory where you want the source code to go. Checkout the software here:
svn co https://halldsvn.jlab.org/repos/trunk/home/pmatt/RootAnalysis/
2) Set the path to the checked-out RootAnalysis directory to be the variable:
$ROOT_ANALYSIS_HOME
3) After sourcing your standard GlueX environment file, set the following environment variables:
setenv OS_NAME $BMS_OSNAME setenv LD_LIBRARY_PATH ${ROOT_ANALYSIS_HOME}/${OS_NAME}/lib/:$LD_LIBRARY_PATH setenv PATH ${ROOT_ANALYSIS_HOME}/${OS_NAME}/bin/:$PATH
4) Build and install the DSelector library
cd $ROOT_ANALYSIS_HOME/DSelector make all
5) Build and install the MakeDSelector binary
cd $ROOT_ANALYSIS_HOME/MakeDSelector make all