Warning, /analysis/JS-Jet/JetBkgdSub/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, the iterative method and the area method and saves resulting momentum to TTree.
0002
0003
0004 # Building
0005 1. Build the package in the [usual way](https://wiki.bnl.gov/sPHENIX/index.php/Example_of_using_DST_nodes#Building%20a%20package):
0006
0007 * Make a build directory inside the src directory:
0008
0009 cd src
0010 mkdir build
0011 cd build
0012
0013 * Setup the sPHENIX environment and install paths:
0014
0015 source /opt/sphenix/core/bin/sphenix_setup.csh -n (source /opt/sphenix/core/bin/sphenix_setup.sh)
0016 setenv MYINSTALL ~/install (export MYINSTALL=~/install)
0017 source /opt/sphenix/core/bin/setup_local.csh $MYINSTALL (source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL)
0018
0019 * Compile your code:
0020
0021 /PATH_TO_YOUR_SOURCE_DIR/autogen.csh --prefix=$MYINSTALL (/PATH_TO_YOUR_SOURCE_DIR/autogen.sh --prefix=$MYINSTALL)
0022 make -j 4
0023 make install
0024
0025 2. Run the code using the Fun4All macro:
0026
0027 * Go to the macro directory:
0028
0029 cd ../../macro
0030
0031 * Get some files to run on using CreateFileList.pl, for example to get 1000 events of pythia dijets embeded in minimum bias HIJING:
0032
0033 CreateFileList.pl -n 1000 -type 11 -embed DST_CALO_CLUSTER DST_TRUTH_JET DST_GLOBAL
0034
0035 * 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:
0036
0037 root -b -q 'Fun4All_JetBkgd.C("dst_truth_jet.list", "dst_calo_cluster.list", "dst_global.list", "output.root", 0.4)'
0038
0039 * This will create an output file containing all the necessary information for the histogram making.
0040 ## Options in JetBkgdSub
0041 There are a few options you can specify in the Fun4All macro for the JetBkgdSub module:
0042 * setPtRange(low, high): set the pt range of TRUTH jets you are interested in keeping in your tree
0043 * setEtaRange(low, high): set the eta range of TRUTH jets you are interested in keeping in your tree
0044 * add_input(string): add jet input to the tree. The string should be the name of the tower input.
0045 * doIterative(bool): Saves iterative background subtracted jets to the tree
0046 * doAreaSub(bool): Saves area background subtracted jets to the tree
0047 * doMultSub(bool): Saves multiplicity background subtracted jets to the tree
0048 * doTruth(bool): Saves truth jets to the tree
0049 * setMinRecoPt(float): Sets the minimum pt of the reconstructed jet to be saved to the tree
0050
0051
0052
0053 # Questions/suggestions
0054 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)