Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:12:08

0001 //
0002 //   @file    sPhenixStyle.h         
0003 //   
0004 //            sPHENIX Style, based on a style file from ATLAS
0005 //
0006 //
0007 //   @author Peter Steinberg
0008 // 
0009 //   Copyright (C) 2017 sPhenix Collaboration
0010 //
0011 //   Version 0.1
0012 
0013 #ifndef  __SPHENIXSTYLE_H
0014 #define __SPHENIXSTYLE_H
0015 
0016 #include <TStyle.h>
0017 
0018 //! \brief sPHENIX Style, based on a style file from ATLAS by Peter Steinberg
0019 /*
0020 Please find instruction at https://wiki.bnl.gov/sPHENIX/index.php/Plot_template . Here is a snapshot:
0021 # How to use
0022 To ensure some consistency among plots produced by different sPHENIX members, a candidate style file is being proposed (May 2017), based on the ATLAS style file. Please click here for the gzipped tar file.
0023 For general use, copy or link the ``sPHENIXStyle.h`` and ``sPHENIXStyle.C`` files somewhere, either locally or in your macro path (``gROOT->GetMacroPath()`` will tell you, and add it in ``.rootrc`` if you need one).
0024 Then do
0025 ``
0026 [0] gROOT->LoadMacro("sPhenixStyle.C")
0027 [1] SetsPhenixStyle()
0028 ``
0029 and you're good to go (even better, add this all into your ``.rootlogon.C`` file)
0030 # Rules of the sPHENIX style
0031 * Don't talk about the style file.
0032 * Always use the style file.
0033 * Units should always be indicated in brackets "[ ]", while counts will typically specify the bin width "Events / 2 GeV" or "Events / 0.13 rad".
0034 * Every plot should have a legend indicating "sPHENIX", "sPHENIX Preliminary", "sPHENIX Simulation", etc.
0035 * sPHENIX should be bold, italic
0036 * Where possible, indicate the system being considered and it's energy
0037 * "MC" predictions should be filled, with distinguishable colors
0038 * Data or pseudodata should always be histograms or graphs with error bars
0039 * Elements should never overlap, with each other or with the axis
0040  *
0041  */
0042 void SetsPhenixStyle();
0043 
0044 TStyle* sPhenixStyle(); 
0045 
0046 #endif // __SPHENIXSTYLE_H