15 stepinv_ = (
nodes - 1) / (upper - lower);
21 int nodes()
const {
return edges_ + 2; }
22 int cells()
const {
return edges_ + 1; }
26 bool inRange(
int i)
const {
return i >= 0 &&
i <= edges_; }
31 f = modff((
a - lower()) * stepinv_, &
b);
40 }
else if (ind > edges_) {
55 int ind =
static_cast<int>((
a - lower()) /
step());
void normalize(int &ind, Scalar &f) const
int index(Scalar a, Scalar &f) const
Scalar closestNode(Scalar a) const
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
bool inRange(int i) const
Grid1D(Scalar lower, Scalar upper, int nodes)
int index(Scalar a) const
returns valid index, or -1 if the value is outside range +/- one cell.