CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
fireworks::PaletteExtraTopBottomIndices Struct Reference

Public Member Functions

void InitArctic ()
 
void InitFall ()
 
void InitPurple ()
 
void InitSpring ()
 
 PaletteExtraTopBottomIndices (float(*iColors)[3], bool iIsWhiteBg, FWColorManager::EPalette iId)
 
void set (int i, Color_t cidx)
 

Public Attributes

float(* colVals )[3]
 
FWColorManager::EPalette id
 
bool whiteBg
 

Detailed Description

Definition at line 14 of file fwPaletteExtra.cc.

Constructor & Destructor Documentation

fireworks::PaletteExtraTopBottomIndices::PaletteExtraTopBottomIndices ( float(*)  iColors[3],
bool  iIsWhiteBg,
FWColorManager::EPalette  iId 
)
inline

Definition at line 18 of file fwPaletteExtra.cc.

Member Function Documentation

void fireworks::PaletteExtraTopBottomIndices::InitArctic ( )
inline

Definition at line 61 of file fwPaletteExtra.cc.

References set().

Referenced by fireworks::switch().

61  {
62  // set muon geometry gray
63  set(0, kYellow+2);
64  set(1, kMagenta-3);
65  set(2, kCyan+3);
66  set(3, kAzure+7);
67  set(4, kAzure+8);
68 
69  set(5, kAzure+3);// jets, met
70  set(6, kAzure-3);
71  set(7, kOrange+7);
72  set(8, kAzure);// jets, met
73  set(9, kBlue-1);
74  set(10, kBlue-7);
75  set(11, kTeal-1);
76  set(12, kTeal-7);
77  set(13, kCyan-7);
78  set(14, kAzure+10);
79  // set(16, kOrange);
80  }
void fireworks::PaletteExtraTopBottomIndices::InitFall ( )
inline

Definition at line 85 of file fwPaletteExtra.cc.

References i, j, and set().

Referenced by fireworks::switch().

86  {
87  set(0, kYellow -4); //vertices, jets
88  set(1, kRed +1);
89  set(2, kMagenta+3);
90  set(3, kGreen + 2);
91  set(4, kBlue +2);
92  set(5, kOrange -5);//hcal
93  set(6, kOrange -8);
94  set(7, kMagenta -1);
95  set(8, kRed -2); // muon, ecal, met
96  set(9, kCyan +2); // tracks
97 
98 
99  int j = 2;
100  for (int i = 10; i < 15; ++i)
101  {
102  set(i, kRed -j);
103  j++;
104 
105  }
106  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
void fireworks::PaletteExtraTopBottomIndices::InitPurple ( )
inline

Definition at line 128 of file fwPaletteExtra.cc.

References set().

Referenced by fireworks::switch().

129  {
130  set(0, kGreen-7);
131  set(1, kRed +1);
132  set(2, kMagenta+3);
133  set(3, kCyan + 2);
134  set(4, kBlue +2);
135  set(5, kViolet -5);
136  set(6, kViolet -6);
137  set(7, kViolet -7);
138  set(8, kGray+1); //ecal, muo
139  set(9, kPink-8); //tracks
140  set(10, kBlue-8);
141  set(11, kBlue-4);
142  set(12, kBlue-2);
143  set(13, kViolet+8);
144  set(14, kViolet +10);
145  }
void fireworks::PaletteExtraTopBottomIndices::InitSpring ( )
inline

Definition at line 108 of file fwPaletteExtra.cc.

References set().

Referenced by fireworks::switch().

109  {
110  set(0, kRed);// jet
111  set(1, kOrange-2);
112  set(2, kRed-7);
113  set(3, kPink+2);
114  set(4, kOrange-7);
115  set(5, kSpring+5);//hcal
116 
117  set(6, kSpring);
118  set(7, kMagenta); // electrons
119  set(8, kSpring +4); //ecal, muons
120  set(9, kGreen+2 );
121  set(10, kSpring +3);
122  set(11,kGreen -5 );
123  set(12,kGreen -6 );
124  set(13,kGreen -7 );
125  set(14, kTeal-5);
126  }
void fireworks::PaletteExtraTopBottomIndices::set ( int  i,
Color_t  cidx 
)
inline

Definition at line 20 of file fwPaletteExtra.cc.

References EnergyCorrector::c, colVals, i, FWColorManager::kPurple, and whiteBg.

Referenced by InitArctic(), InitFall(), InitPurple(), and InitSpring().

20  {
21 
22  if (whiteBg) {
23  //if (id == FWColorManager::kFall || id == FWColorManager::kArctic)
24  const TColor * c = gROOT->GetColor(cidx);
25  colVals[i][0] = c->GetRed();
26  colVals[i][1] = c->GetGreen();
27  colVals[i][2] = c->GetBlue();
28  if (id != FWColorManager::kPurple)
29  TColor::HLStoRGB(c->GetHue(), 1.2*c->GetLight(), c->GetSaturation(), colVals[i][0], colVals[i][1], colVals[i][2]);
30 
31  /*
32 
33  cidx = TColor::GetColorBright(cidx);
34  TColor* cb = gROOT->GetColor(cidx);
35  colVals[i+rSize][0] = cb->GetRed();
36  colVals[i+rSize][1] = cb->GetGreen();
37  colVals[i+rSize][2] = cb->GetBlue();
38  */
39 
40  }
41  else {
42 
43  const TColor * c = gROOT->GetColor(cidx);
44  colVals[i][0] = c->GetRed();
45  colVals[i][1] = c->GetGreen();
46  colVals[i][2] = c->GetBlue();
47  /*
48  cidx = TColor::GetColorDark(cidx);
49  const TColor * cd = gROOT->GetColor(cidx);
50  colVals[i+rSize][0] = cd->GetRed();
51  colVals[i+rSize][1] = cd->GetGreen();
52  colVals[i+rSize][2] = cd->GetBlue();
53  */
54  }
55  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

float(* fireworks::PaletteExtraTopBottomIndices::colVals)[3]

Definition at line 15 of file fwPaletteExtra.cc.

Referenced by set().

FWColorManager::EPalette fireworks::PaletteExtraTopBottomIndices::id

Definition at line 17 of file fwPaletteExtra.cc.

bool fireworks::PaletteExtraTopBottomIndices::whiteBg

Definition at line 16 of file fwPaletteExtra.cc.

Referenced by set().