Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /analysis/JS-Jet/JetMultSub/README.md is written in an unsupported language. File is not indexed.

0001 This package is designed to subtract jets using the jet multiplicity method.
0002 The expression for the subtracted jet energy is:
0003        * pt_sub = pt_reco - rho*(N_reco - <N_signal>(pt_reco))
0004 
0005 # Building 
0006 1. Build the package in the [usual way](https://wiki.bnl.gov/sPHENIX/index.php/Example_of_using_DST_nodes#Building%20a%20package):
0007 
0008    * Make a build directory inside the src directory: 
0009   
0010          cd src
0011          mkdir build
0012          cd build
0013         
0014    * Setup the sPHENIX environment and install paths:
0015 
0016          source /opt/sphenix/core/bin/sphenix_setup.csh -n (source /opt/sphenix/core/bin/sphenix_setup.sh)
0017          setenv MYINSTALL ~/install (export MYINSTALL=~/install)
0018          source /opt/sphenix/core/bin/setup_local.csh $MYINSTALL (source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL)
0019         
0020    * Compile your code:
0021 
0022          /PATH_TO_YOUR_SOURCE_DIR/autogen.csh --prefix=$MYINSTALL (/PATH_TO_YOUR_SOURCE_DIR/autogen.sh --prefix=$MYINSTALL)
0023          make -j 4
0024          make install
0025          
0026 2. Run the code using the Fun4All macro:
0027  
0028    * Go to the macro directory:
0029    
0030           cd ../../macro
0031           
0032    * Get some files to run on using CreateFileList.pl, for example to get 1000 events of pythia dijets embeded in minimum bias HIJING:
0033           
0034           CreateFileList.pl -n 1000 -type 11 -embed DST_CALO_CLUSTER DST_TRUTH_JET DST_GLOBAL
0035  
0036    * Test run using Fun4All. The Fun4All macro takes in input file lists for the truth jet and calo cluster DSTs. For example, you can run:
0037           
0038           root -b -q 'Fun4All_JetSub.C("dst_truth_jet.list", "dst_calo_cluster.list", "dst_global.list")'
0039    
0040    * This will create an output file containing all the necessary information for the histogram making.
0041    ## Options in JetMultSub
0042    There are a few options you can specify in the Fun4All macro for the JetMultSub module:
0043    * setPtRange(low, high): set the pt range of TRUTH jets you are interested in keeping in your tree
0044    * setEtaRange(low, high): set the eta range of TRUTH jets you are interested in keeping in your tree
0045    * add_reco_input(string): add a reco jet input to the tree. The string should be the name of the reco jet node in the DST. Default is "AntiKt_Tower_r04"
0046    * add_kt_input(string): add a kt jet input to the tree. The string should be the name of the kt jet node in the DST. Default is "Kt_Tower_r04"
0047    * set_output_name(string): set the name of outout DST. default is "AntiKt_Tower_r04_sub"
0048 
0049 
0050 # Questions/suggestions
0051 This package is a work in progress, so please send any questions, bugs, or suggestions for new features to Tanner Mengel (tmengel@vols.utk.edu)