test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Enumerations | Functions
TkAlStyle.cc File Reference
#include "TColor.h"
#include "TError.h"
#include "TLegend.h"
#include "TPaveText.h"
#include "TString.h"
#include "TStyle.h"
#include <iostream>

Go to the source code of this file.

Classes

class  TkAlStyle
 

Macros

#define TKAL_STYLE_CC
 

Enumerations

enum  Era { NONE, CRUZET15, CRAFT15, COLL0T15 }
 
enum  PublicationStatus {
  NO_STATUS, INTERNAL, INTERNAL_SIMULATION, PRELIMINARY,
  PUBLIC, SIMULATION, UNPUBLISHED, CUSTOM
}
 

Functions

TString toTString (const PublicationStatus status)
 
static TString toTString (const Era era)
 

Macro Definition Documentation

#define TKAL_STYLE_CC

Definition at line 18 of file TkAlStyle.cc.

Enumeration Type Documentation

enum Era
Enumerator
NONE 
CRUZET15 
CRAFT15 
COLL0T15 

Definition at line 47 of file TkAlStyle.cc.

Enumerator
NO_STATUS 
INTERNAL 
INTERNAL_SIMULATION 
PRELIMINARY 
PUBLIC 
SIMULATION 
UNPUBLISHED 
CUSTOM 

Definition at line 30 of file TkAlStyle.cc.

Function Documentation

TString toTString ( const PublicationStatus  status)

Definition at line 31 of file TkAlStyle.cc.

References CUSTOM, INTERNAL, INTERNAL_SIMULATION, NO_STATUS, PRELIMINARY, PUBLIC, SIMULATION, and UNPUBLISHED.

Referenced by TkAlStyle::rightheader().

31  {
32  TString str = "";
33  if( status == NO_STATUS ) str = "Status not set yet!";
34  else if( status == INTERNAL ) str = "internal";
35  else if( status == INTERNAL_SIMULATION ) str = "simulation (internal)";
36  else if( status == PRELIMINARY ) str = "preliminary";
37  else if( status == PUBLIC ) str = "public";
38  else if( status == SIMULATION ) str = "simulation (public)";
39  else if( status == UNPUBLISHED ) str = "unpublished";
40  else if( status == CUSTOM ) str = "custom title set";
41 
42  return str;
43 }
tuple status
Definition: mps_update.py:57
static TString toTString ( const Era  era)
static

Definition at line 48 of file TkAlStyle.cc.

References COLL0T15, CRAFT15, and CRUZET15.

48  {
49  TString str = "";
50  if( era == CRUZET15 ) str = "0T cosmic ray data 2015";
51  else if( era == CRAFT15 ) str = "3.8T cosmic ray data 2015";
52  else if( era == COLL0T15 ) str = "0T collision data 2015";
53 
54  return str;
55 }