![]() |
AliPhysics
914d8ff (914d8ff)
|
Public Types | |
enum | ETag { kNone = 0, kPreliminary, kPerformance } |
enum | { kBW = 0, kText = 0x1, kL3 = 0x2, kParticles = 0x4, kMany = 0x8, kPad = 0x10, kReverse = 0x20 } |
Static Public Member Functions | |
static UInt_t | ParseColors (const TString &what) |
static UShort_t | ParseTag (const TString &what) |
static void | Test (const TString &what) |
static void | Test (UShort_t tag, UInt_t col, Bool_t debug) |
static void | Check (const TString &what) |
static void | Check (UShort_t tag, UInt_t col, Bool_t debug=true) |
Public Attributes | |
TVirtualPad * | fPad |
Double_t | fAspect |
Double_t | fL3Thick |
Double_t | fL3Height |
Double_t | fL3Width |
Bool_t | fDebug |
Int_t | fRed |
Int_t | fYellow |
Int_t | fPink |
Int_t | fBlue |
Structure to draw the ALICE logo on a pad (canvas). The logo and text is drawn using ROOT primitives and the result is somewhat scalable.
Note, you can save the logo as a PNG, PDF, or SVG to include it in some other document or the like.
How to use
There are many options for colours and options for preliminary, performance and just the logo.
The logo produced does not exactly match the logos found on the ALICE web-site
https://aliceinfo.cern.ch/Figure/alice_logo
In particular, the 'C' was hard to get right. However, the logo does follow the charter as described in
http://aliweb.cern.ch/system/files/documents/charter/charte_A5_120628.pdf
Use the static member function(s) AliceLogo::Check to see how well this code reproduces the logos. Note, you need the official logos in PNG format for this. Here's a list of places to get them:
Definition at line 65 of file AliceLogo.C.
anonymous enum |
Colour options
Enumerator | |
---|---|
kBW | |
kText | |
kL3 | |
kParticles | |
kMany | |
kPad | |
kReverse |
Definition at line 78 of file AliceLogo.C.
enum AliceLogo::ETag |
|
inline |
|
inlinestatic |
Check compatiblity by overlaying this logo on 'official' images
what |
Definition at line 967 of file AliceLogo.C.
Check compatiblity by overlaying this logo on 'official' images
tag | |
col | |
debug |
Definition at line 979 of file AliceLogo.C.
|
inline |
Draw everything
p | Pad to draw in |
x | Starting X position |
y | Starting Y position |
h | Relative height |
tag | Tag |
colors | Color options |
Definition at line 145 of file AliceLogo.C.
|
inline |
Draw everything
p | Pad to draw in |
x | Starting X position |
y | Starting Y position |
h | Relative height |
tag | Tag |
color | Color options |
Definition at line 160 of file AliceLogo.C.
Draw the letter A
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
bg | Background colour |
Definition at line 476 of file AliceLogo.C.
Referenced by DrawALICE(), and DrawLabel().
Draw the text ALICE in a separate pad
Definition at line 409 of file AliceLogo.C.
Referenced by Draw().
Draw the letter C
x | Base X coordinate |
y | Base Y coordinate |
a | Aspect ratio of pad |
fg | Foreground colour |
bg | Background colour |
Definition at line 559 of file AliceLogo.C.
Referenced by DrawALICE(), and DrawLabel().
Draw the letter E
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 629 of file AliceLogo.C.
Referenced by DrawALICE(), and DrawLabel().
Draw the letter F
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 648 of file AliceLogo.C.
Referenced by DrawLabel().
Draw the letter I
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 542 of file AliceLogo.C.
Referenced by DrawALICE(), and DrawLabel().
Draw the letter L
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 526 of file AliceLogo.C.
Referenced by DrawALICE(), and DrawLabel().
Draw the L3 outline. Note, this is put in a sub-pad of it's own.
color | Colour flags |
bg | Background color |
Definition at line 253 of file AliceLogo.C.
Referenced by Draw().
Draw the label text ("Preliminary" or "Performance") in it's own pad
fg | Foreground colour |
bg | Background colour |
preliminary | If true, draw preliminary, otherwise performance |
Definition at line 664 of file AliceLogo.C.
Referenced by Draw().
Draw the letter M
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 811 of file AliceLogo.C.
Referenced by DrawLabel().
Draw the letter N
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 842 of file AliceLogo.C.
Referenced by DrawLabel().
Draw the letter O
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
bg | Background colour |
Definition at line 731 of file AliceLogo.C.
Referenced by DrawLabel().
Draw the letter P
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
bg | Background colour |
Definition at line 752 of file AliceLogo.C.
Referenced by DrawLabel(), and DrawR().
Draw the letter R
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
bg | Background colour |
Definition at line 780 of file AliceLogo.C.
Referenced by DrawLabel().
Draw a spoke in the L3 outline.
ang | Rotation angle in degrees. |
w | Width |
len | Length of spoke |
fg | Foreground colour |
Definition at line 367 of file AliceLogo.C.
Referenced by DrawL3().
Draw the letter Y
x | Base X coordinate |
y | Base Y coordinate |
w | Line width |
a | Aspect ratio of pad |
fg | Foreground colour |
Definition at line 874 of file AliceLogo.C.
Referenced by DrawLabel().
|
inline |
Definition at line 926 of file AliceLogo.C.
|
inline |
Definition at line 927 of file AliceLogo.C.
|
inline |
Definition at line 922 of file AliceLogo.C.
|
inline |
Definition at line 923 of file AliceLogo.C.
|
inline |
Definition at line 924 of file AliceLogo.C.
|
inline |
Definition at line 925 of file AliceLogo.C.
Parse a string with colour options
what |
Definition at line 110 of file AliceLogo.C.
Parse a tag string
what | String to parse |
Definition at line 128 of file AliceLogo.C.
|
inline |
|
inlinestatic |
Double_t AliceLogo::fAspect |
Definition at line 1030 of file AliceLogo.C.
Referenced by Draw().
Int_t AliceLogo::fBlue |
Definition at line 1038 of file AliceLogo.C.
Referenced by AliceLogo(), Draw(), and DrawL3().
Bool_t AliceLogo::fDebug |
Definition at line 1034 of file AliceLogo.C.
Referenced by Draw(), DrawALICE(), DrawC(), DrawL3(), DrawLabel(), DrawN(), DrawY(), and SetAttr().
Double_t AliceLogo::fL3Height |
Definition at line 1032 of file AliceLogo.C.
Referenced by Draw(), DrawALICE(), and DrawL3().
Double_t AliceLogo::fL3Thick |
Definition at line 1031 of file AliceLogo.C.
Referenced by Draw(), DrawALICE(), and DrawL3().
Double_t AliceLogo::fL3Width |
Definition at line 1033 of file AliceLogo.C.
Referenced by Draw(), DrawALICE(), and DrawL3().
TVirtualPad* AliceLogo::fPad |
Definition at line 1029 of file AliceLogo.C.
Referenced by Draw(), DrawALICE(), DrawL3(), DrawLabel(), GetCX(), GetCY(), GetX1(), GetX2(), GetY1(), and GetY2().
Int_t AliceLogo::fPink |
Definition at line 1037 of file AliceLogo.C.
Referenced by AliceLogo(), and DrawL3().
Int_t AliceLogo::fRed |
Definition at line 1035 of file AliceLogo.C.
Referenced by AliceLogo(), and DrawL3().
Int_t AliceLogo::fYellow |
Definition at line 1036 of file AliceLogo.C.
Referenced by AliceLogo(), and DrawL3().