#include <HeatMap.h>
|
| HeatMap (int _Nz, double _minz, double _maxz, int _Nx, double _minx, double _maxx) |
|
std::unique_ptr< TH2F > | AsTH2 () const |
|
double | ZBinCenter (int iz) const |
|
double | XBinCenter (int ix) const |
|
int | ZToBin (double z) const |
|
int | XToBin (double x) const |
|
|
const double | minz |
|
const double | minx |
|
const double | maxz |
|
const double | maxx |
|
const int | Nx |
|
const int | Nz |
|
std::vector< float > | map |
|
Definition at line 11 of file HeatMap.h.
quad::HeatMap::HeatMap |
( |
int |
_Nz, |
|
|
double |
_minz, |
|
|
double |
_maxz, |
|
|
int |
_Nx, |
|
|
double |
_minx, |
|
|
double |
_maxx |
|
) |
| |
std::unique_ptr< TH2F > quad::HeatMap::AsTH2 |
( |
| ) |
const |
Definition at line 16 of file HeatMap.cxx.
19 for(
unsigned int i = 0; i <
map.size(); ++i){
20 h->SetBinContent((i/Nx)+1, (i%Nx)+1,
map[i]);
24 for(
int i = 0; i < (
h->GetNbinsX()+2)*(
h->GetNbinsY()+2); ++i){
25 maxz = std::max(maxz,
h->GetBinContent(i));
29 for(
int i = 0; i < (
h->GetNbinsX()+2)*(
h->GetNbinsY()+2); ++i){
30 if(
h->GetBinContent(i) < .05*
maxz)
h->SetBinContent(i, 0);
int quad::HeatMap::fast_floor |
( |
double |
x | ) |
const |
|
inlineprivate |
Definition at line 31 of file HeatMap.h.
31 {
return int(
x+100000)-100000;}
process_name opflash particleana ie x
double quad::HeatMap::XBinCenter |
( |
int |
ix | ) |
const |
|
inline |
int quad::HeatMap::XToBin |
( |
double |
x | ) |
const |
|
inline |
Definition at line 22 of file HeatMap.h.
process_name opflash particleana ie x
int fast_floor(double x) const
double quad::HeatMap::ZBinCenter |
( |
int |
iz | ) |
const |
|
inline |
int quad::HeatMap::ZToBin |
( |
double |
z | ) |
const |
|
inline |
Definition at line 21 of file HeatMap.h.
process_name opflash particleana ie ie ie z
int fast_floor(double x) const
std::vector<float> quad::HeatMap::map |
const double quad::HeatMap::maxx |
const double quad::HeatMap::maxz |
const double quad::HeatMap::minx |
const double quad::HeatMap::minz |
const int quad::HeatMap::Nx |
const int quad::HeatMap::Nz |
The documentation for this class was generated from the following files: