Warning, /analysis/PhotonJet/Photons/README.md is written in an unsupported language. File is not indexed.
0001 # Photon package
0002
0003 This analysis package has two modules associated with it. Photons identifies single photons and Forward_pi0s identifies netural pions in either the fsPHENIX arm or central arm (despite it's name, it can do both arms).
0004
0005 It can run with the default Fun4All_G4_sPHENIX.C or Fun4All_G4_fsPHENIX.C macro. The packages are only designed to run for single (or multi) particle simulations. The output trees are simply trees with either single photons or pi0 characteristics, with the truth information stored in the tree.
0006
0007 The analysis packages can be used with the following steps:
0008
0009 1. Execute the usual `autogen.sh` and `make install` building of the Photons package, per the usual sPHENIX way.
0010
0011 2. Include the following lines of code in the Fun4All_G4_sPHENIX.C macro:
0012 ```
0013 gSystem->Load("libPhotons.so");
0014 Photons *photons = new Photons("outputfilename.root");
0015 se->registerSubsystem(photons);
0016 ```
0017 where se is the Fun4AllServer instantiated at the beginning of the macro.
0018
0019 The outputfile will have the name "outputfilename.root" and have several trees in it, which are named based on their contents.
0020
0021 ## Embedding capabilities
0022
0023 The package was modified to run in HIJING embedded backgrounds. One simply needs to turn the switch on in the package:
0024 ```
0025 photons->use_embedding(1); //1 == use embedding, 0 == don't use it
0026 ```
0027 One may need to also set the appropriate embedding flags in the actual Fun4All macro as well