GGS(GenericGEANT4Simulation)Software
2.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Macros
include
display
application
gui
VPalette.h
1
/*
2
* VPalette.h
3
*
4
* Created on: 16 Mar 2017
5
* Author: Valerio Formato
6
*/
7
8
/*
9
* A simple color-palette class. Why ROOT people must always complicate things?
10
* log-scale was not tested so far
11
*/
12
13
#include "TPad.h"
14
#include "TH2D.h"
15
#include "TPaletteAxis.h"
16
17
18
#ifndef _VPALETTE_
19
#define _VPALETTE_
20
21
class
VPalette
:
public
TPaletteAxis {
22
23
public
:
24
VPalette
();
25
virtual
~
VPalette
();
26
27
void
Rebin(Double_t xmin, Double_t xmax, Int_t nbins=_defNbins);
28
void
SetLog(
bool
isLog=kTRUE){ _isLog = isLog; };
29
Int_t GetValueColor2(Double_t zc);
30
31
private
:
32
static
const
Int_t _defNbins;
33
34
Bool_t _isLog;
35
Int_t _nBins;
36
Double_t _xMin;
37
Double_t _xMax;
38
39
};
40
41
#endif
VPalette
Definition:
VPalette.h:21
Generated on Thu May 30 2019 11:52:22 for GGS(GenericGEANT4Simulation)Software by
1.8.5