CMS 3D CMS Logo

Functions
TkAlStyle.cc File Reference
#include "Alignment/OfflineValidation/interface/TkAlStyle.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ toTString() [1/2]

TString toTString ( const PublicationStatus  status)

Definition at line 3 of file TkAlStyle.cc.

References CUSTOM, INTERNAL, INTERNAL_SIMULATION, NO_STATUS, PRELIMINARY, PUBLIC, SIMULATION, mps_update::status, str, and UNPUBLISHED.

Referenced by TkAlStyle::rightheader().

3  {
4  TString str = "";
5  if (status == NO_STATUS)
6  str = "Status not set yet!";
7  else if (status == INTERNAL)
8  str = "internal";
9  else if (status == INTERNAL_SIMULATION)
10  str = "simulation (internal)";
11  else if (status == PRELIMINARY)
12  str = "preliminary";
13  else if (status == PUBLIC)
14  str = "public";
15  else if (status == SIMULATION)
16  str = "simulation (public)";
17  else if (status == UNPUBLISHED)
18  str = "unpublished";
19  else if (status == CUSTOM)
20  str = "custom title set";
21 
22  return str;
23 }
#define str(s)

◆ toTString() [2/2]

static TString toTString ( const Era  era)
static

Definition at line 25 of file TkAlStyle.cc.

References COLL0T15, CRAFT15, CRUZET15, and str.

25  {
26  TString str = "";
27  if (era == CRUZET15)
28  str = "0T cosmic ray data 2015";
29  else if (era == CRAFT15)
30  str = "3.8T cosmic ray data 2015";
31  else if (era == COLL0T15)
32  str = "0T collision data 2015";
33 
34  return str;
35 }
#define str(s)