| 99 |
xmin = fRanges[icoord].front().first; |
xmin = fRanges[icoord].front().first; |
| 100 |
xmax = fRanges[icoord].front().second; |
xmax = fRanges[icoord].front().second; |
| 101 |
} |
} |
| 102 |
|
/** |
| 103 |
|
get range for the x - coordinate |
| 104 |
|
*/ |
| 105 |
|
void GetRange(double & xmin, double & xmax) const { GetRange(0,xmin,xmax); } |
| 106 |
|
/** |
| 107 |
|
get range for the x and y coordinates |
| 108 |
|
*/ |
| 109 |
|
void GetRange(double & xmin, double & xmax, double & ymin, double & ymax) const { |
| 110 |
|
GetRange(0,xmin,xmax); GetRange(1,ymin,ymax); |
| 111 |
|
} |
| 112 |
|
/** |
| 113 |
|
get range for the x and y and z coordinates |
| 114 |
|
*/ |
| 115 |
|
void GetRange(double & xmin, double & xmax, double & ymin, double & ymax, double & zmin, double & zmax) const { |
| 116 |
|
GetRange(0,xmin,xmax); GetRange(1,ymin,ymax); GetRange(2,zmin,zmax); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
/** |
/** |
| 120 |
Destructor (no operations) |
Destructor (no operations) |
| 125 |
|
|
| 126 |
/** |
/** |
| 127 |
add a range [xmin,xmax] for the new coordinate icoord |
add a range [xmin,xmax] for the new coordinate icoord |
| 128 |
|
Adding a range does not delete existing one, but takes the OR with |
| 129 |
|
existing ranges. |
| 130 |
|
if want to replace range use method SetRange, which replace range with existing one |
| 131 |
|
*/ |
| 132 |
|
void AddRange(unsigned int icoord , double xmin, double xmax ); |
| 133 |
|
|
| 134 |
|
/** |
| 135 |
|
add a range [xmin,xmax] for the first coordinate icoord |
| 136 |
|
*/ |
| 137 |
|
void AddRange(double xmin, double xmax ) { AddRange(0,xmin,xmax); } |
| 138 |
|
/** |
| 139 |
|
add a range [xmin,xmax] for the first and [ymin,ymax] for the second coordinate |
| 140 |
|
*/ |
| 141 |
|
void AddRange(double xmin, double xmax, double ymin, double ymax ) { AddRange(0,xmin,xmax); AddRange(1,ymin,ymax); } |
| 142 |
|
/** |
| 143 |
|
add a range [xmin,xmax] for the first and [ymin,ymax] for the second coordinate and |
| 144 |
|
[zmin,zmax] for the third coordinate |
| 145 |
|
*/ |
| 146 |
|
void AddRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax ) { |
| 147 |
|
AddRange(0,xmin,xmax); AddRange(1,ymin,ymax); AddRange(2,zmin,zmax); } |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
|
set a range [xmin,xmax] for the new coordinate icoord |
| 151 |
|
If more range exists for other coordinates, delete the existing one and use it the new one |
| 152 |
|
Use Add range if want to keep the union of the existing ranges |
| 153 |
|
*/ |
| 154 |
|
void SetRange(unsigned int icoord , double xmin, double xmax ); |
| 155 |
|
|
| 156 |
|
/** |
| 157 |
|
set a range [xmin,xmax] for the first coordinate icoord |
| 158 |
|
*/ |
| 159 |
|
void SetRange(double xmin, double xmax ) { SetRange(0,xmin,xmax); } |
| 160 |
|
/** |
| 161 |
|
set a range [xmin,xmax] for the first and [ymin,ymax] for the second coordinate |
| 162 |
|
*/ |
| 163 |
|
void SetRange(double xmin, double xmax, double ymin, double ymax ) { SetRange(0,xmin,xmax); SetRange(1,ymin,ymax); } |
| 164 |
|
/** |
| 165 |
|
set a range [xmin,xmax] for the first and [ymin,ymax] for the second coordinate and |
| 166 |
|
[zmin,zmax] for the third coordinate |
| 167 |
*/ |
*/ |
| 168 |
void AddRange(double xmin, double xmax, unsigned int icoord = 0 ); |
void SetRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax ) { |
| 169 |
|
SetRange(0,xmin,xmax); SetRange(1,ymin,ymax); SetRange(2,zmin,zmax); } |
| 170 |
|
|
| 171 |
/** |
/** |
| 172 |
clear all ranges in one coordinate (is now -inf, +inf) |
clear all ranges in one coordinate (is now -inf, +inf) |