ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::ValueStore Struct Reference

#include <CompoundLayerMaterial.h>

Collaboration diagram for Trk::ValueStore:

Public Member Functions

double value (unsigned char ibin0, unsigned char ibin1) const

Public Attributes

float valueMin = 0
float valueStep = 0
ValueMatrix valueBinMatrix

Detailed Description

Definition at line 32 of file CompoundLayerMaterial.h.

Member Function Documentation

◆ value()

double Trk::ValueStore::value ( unsigned char ibin0,
unsigned char ibin1 ) const
inline

Definition at line 37 of file CompoundLayerMaterial.h.

37 {
38 // allows for single entry
39 if (valueBinMatrix.empty()) return valueMin;
40 // get the entry from the matrix
41 unsigned int ibin = static_cast<unsigned int>(
42 valueBinMatrix[static_cast<unsigned int>(ibin1)]
43 [static_cast<unsigned int>(ibin0)]);
44 if (!ibin) return 0.;
45 double value = valueMin + (double(ibin) - 0.5) * valueStep;
46 return value;
47 }
double value(unsigned char ibin0, unsigned char ibin1) const

Member Data Documentation

◆ valueBinMatrix

ValueMatrix Trk::ValueStore::valueBinMatrix

Definition at line 35 of file CompoundLayerMaterial.h.

◆ valueMin

float Trk::ValueStore::valueMin = 0

Definition at line 33 of file CompoundLayerMaterial.h.

◆ valueStep

float Trk::ValueStore::valueStep = 0

Definition at line 34 of file CompoundLayerMaterial.h.


The documentation for this struct was generated from the following file: