ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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
 
float valueStep
 
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  }

Member Data Documentation

◆ valueBinMatrix

ValueMatrix Trk::ValueStore::valueBinMatrix

Definition at line 35 of file CompoundLayerMaterial.h.

◆ valueMin

float Trk::ValueStore::valueMin

Definition at line 33 of file CompoundLayerMaterial.h.

◆ valueStep

float Trk::ValueStore::valueStep

Definition at line 34 of file CompoundLayerMaterial.h.


The documentation for this struct was generated from the following file:
Trk::ValueStore::valueStep
float valueStep
Definition: CompoundLayerMaterial.h:34
Trk::ValueStore::value
double value(unsigned char ibin0, unsigned char ibin1) const
Definition: CompoundLayerMaterial.h:37
Trk::ValueStore::valueBinMatrix
ValueMatrix valueBinMatrix
Definition: CompoundLayerMaterial.h:35
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
Trk::ValueStore::valueMin
float valueMin
Definition: CompoundLayerMaterial.h:33