Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /analysis/TowerInfoExample/README.md is written in an unsupported language. File is not indexed.

0001 # TowerInfoExample
0002 
0003 ## Building the module
0004 * Load sPHENIX newest software:
0005   * source /opt/sphenix/core/bin/sphenix_setup.sh -n new
0006 * Create the environmental variable MYINSTALL point to you installation directory
0007   * Ex.: export MYINSTALL=/sphenix/u/antoniosilva/myInstall (This is just an example, you have to change it accordingly to your directories)
0008 * Load some more setup:
0009   * source $OPT_SPHENIX/bin/setup_local.sh $MYINSTALL
0010 * Inside the TowerInfoExample directory, go to src
0011   * cd src
0012 * Now create a build directory inside src
0013   * mkdir build
0014   * cd build
0015 * Run autogen.sh from inside the build directory. Don't forget to use the entire path where it is located. Use the --prefix to pass the MYINSTALL variable
0016   * Ex.: /sphenix/u/antoniosilva/analysis/TowerInfoExample/src/autogen.sh --prefix=$MYINSTALL (This is just an example, you have to change it accordingly to your directories)
0017 * Compile it:
0018   * make install
0019 
0020 ## Running the software
0021 * After building the package, go back to the TowerInfoExample directory and run Fun4All_TowerBuilder.C
0022   * root Fun4All_TowerBuilder.C
0023 
0024 * The Fun4All_TowerBuilder.C is ready to run over a few events of the Pythia 8 simulation (MDC2). This is minimum bias pp events at 200 GeV
0025 * Information about energy and time of the towers should be printed when running the code
0026 
0027 ## IMPORTANT additional information
0028 * SaveTowerInfo.cc will get information from old towers and save it in the new TowerInfo classes. This is just a way to get some tower information and save it to the node. Soon, this will be done by the new TowerBuilder class
0029 
0030 * RunTowerInfo.cc will get the TowerInfoContainer from the node and loop over the towers. I believe this is the most important part of the example and will show how to access the tower information and how to use the TowerInfoContainer to get the stl maps containing the TowerInfo objects