Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sPhenixStyle.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file sPhenixStyle.h
1 //
2 // @file sPhenixStyle.h
3 //
4 // sPHENIX Style, based on a style file from ATLAS
5 //
6 //
7 // @author Peter Steinberg
8 //
9 // Copyright (C) 2017 sPhenix Collaboration
10 //
11 // Version 0.1
12 
13 #ifndef __SPHENIXSTYLE_H
14 #define __SPHENIXSTYLE_H
15 
16 #include <TStyle.h>
17 
19 /*
20 Please find instruction at https://wiki.bnl.gov/sPHENIX/index.php/Plot_template . Here is a snapshot:
21 
22 # How to use
23 
24 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.
25 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).
26 Then do
27 ``
28 [0] gROOT->LoadMacro("sPhenixStyle.C")
29 [1] SetsPhenixStyle()
30 ``
31 and you're good to go (even better, add this all into your ``.rootlogon.C`` file)
32 
33 # Rules of the sPHENIX style
34 
35 * Don't talk about the style file.
36 * Always use the style file.
37 * Units should always be indicated in brackets "[ ]", while counts will typically specify the bin width "Events / 2 GeV" or "Events / 0.13 rad".
38 * Every plot should have a legend indicating "sPHENIX", "sPHENIX Preliminary", "sPHENIX Simulation", etc.
39 * sPHENIX should be bold, italic
40 * Where possible, indicate the system being considered and it's energy
41 * "MC" predictions should be filled, with distinguishable colors
42 * Data or pseudodata should always be histograms or graphs with error bars
43 * Elements should never overlap, with each other or with the axis
44 
45  *
46  */
47 void SetsPhenixStyle();
48 
49 TStyle* sPhenixStyle();
50 
51 #endif // __SPHENIXSTYLE_H