CMS 3D CMS Logo

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 11 of file fwPaletteExtra.cc.

Constructor & Destructor Documentation

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

Definition at line 15 of file fwPaletteExtra.cc.

Member Function Documentation

void fireworks::PaletteExtraTopBottomIndices::InitArctic ( )
inline

Definition at line 55 of file fwPaletteExtra.cc.

Referenced by fireworks::GetColorValuesForPaletteExtra().

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

Definition at line 78 of file fwPaletteExtra.cc.

References mps_fire::i, and dqmiolumiharvest::j.

Referenced by fireworks::GetColorValuesForPaletteExtra().

78  {
79  set(0, kYellow - 4); //vertices, jets
80  set(1, kRed + 1);
81  set(2, kMagenta + 3);
82  set(3, kGreen + 2);
83  set(4, kBlue + 2);
84  set(5, kOrange - 5); //hcal
85  set(6, kOrange - 8);
86  set(7, kMagenta - 1);
87  set(8, kRed - 2); // muon, ecal, met
88  set(9, kCyan + 2); // tracks
89 
90  int j = 2;
91  for (int i = 10; i < 15; ++i) {
92  set(i, kRed - j);
93  j++;
94  }
95  }
void fireworks::PaletteExtraTopBottomIndices::InitPurple ( )
inline

Definition at line 116 of file fwPaletteExtra.cc.

Referenced by fireworks::GetColorValuesForPaletteExtra().

116  {
117  set(0, kGreen - 7);
118  set(1, kRed + 1);
119  set(2, kMagenta + 3);
120  set(3, kCyan + 2);
121  set(4, kBlue + 2);
122  set(5, kViolet - 5);
123  set(6, kViolet - 6);
124  set(7, kViolet - 7);
125  set(8, kGray + 1); //ecal, muo
126  set(9, kPink - 8); //tracks
127  set(10, kBlue - 8);
128  set(11, kBlue - 4);
129  set(12, kBlue - 2);
130  set(13, kViolet + 8);
131  set(14, kViolet + 10);
132  }
void fireworks::PaletteExtraTopBottomIndices::InitSpring ( )
inline

Definition at line 97 of file fwPaletteExtra.cc.

Referenced by fireworks::GetColorValuesForPaletteExtra().

97  {
98  set(0, kRed); // jet
99  set(1, kOrange - 2);
100  set(2, kRed - 7);
101  set(3, kPink + 2);
102  set(4, kOrange - 7);
103  set(5, kSpring + 5); //hcal
104 
105  set(6, kSpring);
106  set(7, kMagenta); // electrons
107  set(8, kSpring + 4); //ecal, muons
108  set(9, kGreen + 2);
109  set(10, kSpring + 3);
110  set(11, kGreen - 5);
111  set(12, kGreen - 6);
112  set(13, kGreen - 7);
113  set(14, kTeal - 5);
114  }
void fireworks::PaletteExtraTopBottomIndices::set ( int  i,
Color_t  cidx 
)
inline

Definition at line 18 of file fwPaletteExtra.cc.

References HltBtagPostValidation_cff::c, colVals, mps_fire::i, and FWColorManager::kPurple.

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

Member Data Documentation

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

Definition at line 12 of file fwPaletteExtra.cc.

Referenced by set().

FWColorManager::EPalette fireworks::PaletteExtraTopBottomIndices::id

Definition at line 14 of file fwPaletteExtra.cc.

bool fireworks::PaletteExtraTopBottomIndices::whiteBg

Definition at line 13 of file fwPaletteExtra.cc.