This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
nimashltjetproject [2016/05/13 06:46] nimas |
nimashltjetproject [2016/05/16 13:40] (current) dag [How to setup the code I use on lxplus] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Nima's HLT boosted jet authorship project ====== | ====== Nima's HLT boosted jet authorship project ====== | ||
- | How to setup the code I use on lxplus | ||
- | 1. Setup RootCore and checkout the packages | + | ===== How to setup the code I use on lxplus ===== |
- | I created all of my analysis code at the work area (not home) on lxplus where I keep all of required data for my analysis. | ||
- | At the work area first I should bring up ATLAS software using following command : | + | **1. Setup RootCore and checkout the packages** |
+ | |||
+ | I created all of my analysis codes at the work area (not home) on lxplus where I keep all of required data for my analysis. | ||
+ | |||
+ | One can get my package using **svn co** as follows: ''svn co $SVNINST/Institutes/Carleton/HLT_JetTrigger | ||
+ | '' | ||
+ | |||
+ | At the work area, first I should bring up ATLAS software using following command : | ||
''setupATLAS'' | ''setupATLAS'' | ||
- | For the first time, I needed to install RootCore Packages using: | + | For the first time, I needed to install //RootCore// Packages using: |
- | ''rcSetup Base,2.4.3'' and for the next time only ''rcSetup'' is required. | + | ''rcSetup Base,2.4.3'' ;for the next time only ''rcSetup'' is required. |
Every time I add a new package to my header file, I should make it available for my code by typing : | Every time I add a new package to my header file, I should make it available for my code by typing : | ||
Line 20: | Line 25: | ||
''rc compile'' | ''rc compile'' | ||
- | 2. How to run the validation of the HLT jet building. This produces histgorams of the | + | **2. How to run the validation of the HLT jet building. This produces histgorams of the Reconstructed jets** |
- | Reconstructed jets. | ||
- | + | I created a macro called //run.cxx// where I used //Samplerhandler// tool which is very useful for organizing input and output files. This macro is located at //macro// directory. To run my code, following command is required at //macro// directory : | |
- | I created a macro called run.cxx using Samplerhandler which is a very useful tool for organizing input and output files. This macro is located at macro directory. To run my code, following command is required at macro directory : | + | |
''root -l '$ROOTCOREDIR/scripts/load_packages.C' 'run.cxx ("run_result")''' | ''root -l '$ROOTCOREDIR/scripts/load_packages.C' 'run.cxx ("run_result")''' | ||
- | Using this command, my code will be running in root and all of the output files (histograms) can be found at run_result directory. | + | Using this command, my code will be running at //root// and all of the output files (histograms) can be found at //run_result// directory. |
+ | |||
+ | **3. How to make nice plots of the produced histograms** | ||
+ | |||
+ | |||
+ | **Dag's test of the code** | ||
+ | Logging in to lxplus, I do: | ||
+ | |||
+ | setupATLAS | ||
+ | cd /tmp/$USER | ||
+ | rcSetup Base,2.4.8 | ||
+ | svn co svn+ssh://svn.cern.ch/reps/atlasinst/Institutes/Carleton/HLT_JetTrigger | ||
+ | rc find_packages | ||
+ | rc compile | ||
+ | |||
+ | Compilation was successful! Now, let's try to run it | ||
- | 3. How to make nice plots of the produced histograms | + | cd HLT_JetTrigger/macros/ |
+ | root -b $ROOTCOREDIR/scripts/load_packages.C 'run.cxx("hlt_results")' |