BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Protected Attributes
BDSHistBinMapper Class Reference

Mapping from axis indices to 1D index. More...

#include <BDSHistBinMapper.hh>

Collaboration diagram for BDSHistBinMapper:
Collaboration graph

Public Member Functions

 BDSHistBinMapper (G4int nBinsIIn, G4int nBinsJIn, G4int nBinsKIn, G4int nBinsLIn)
 
 BDSHistBinMapper (G4int nBinsIIn, G4int nBinsJIn, G4int nBinsKIn, G4int nBinsLIn, boost_histogram_axes_variant energyAxisIn)
 
virtual G4int GlobalFromIJKLIndex (G4int iIndex, G4int jIndex, G4int kIndex, G4int lIndex=0) const
 
virtual void IJKLFromGlobal (G4int globalBin, G4int &iIndex, G4int &jIndex, G4int &kIndex, G4int &lIndex) const
 
G4double NBinsI () const
 
G4double NBinsJ () const
 
G4double NBinsK () const
 
G4double NBinsL () const
 
boost_histogram_axes_variant GetEnergyAxis () const
 

Protected Attributes

G4int nBinsI
 
G4int nBinsJ
 
G4int nBinsK
 
G4int nBinsL
 
boost_histogram_axes_variant energyAxis
 

Detailed Description

Mapping from axis indices to 1D index.

Author
Eliott Ramoisiaux

Definition at line 31 of file BDSHistBinMapper.hh.

Constructor & Destructor Documentation

◆ BDSHistBinMapper() [1/2]

BDSHistBinMapper::BDSHistBinMapper ( G4int  nBinsIIn,
G4int  nBinsJIn,
G4int  nBinsKIn,
G4int  nBinsLIn 
)

Definition at line 22 of file BDSHistBinMapper.cc.

◆ BDSHistBinMapper() [2/2]

BDSHistBinMapper::BDSHistBinMapper ( G4int  nBinsIIn,
G4int  nBinsJIn,
G4int  nBinsKIn,
G4int  nBinsLIn,
boost_histogram_axes_variant  energyAxisIn 
)

Definition at line 30 of file BDSHistBinMapper.cc.

◆ ~BDSHistBinMapper()

virtual BDSHistBinMapper::~BDSHistBinMapper ( )
inlinevirtual

Definition at line 46 of file BDSHistBinMapper.hh.

Member Function Documentation

◆ GetEnergyAxis()

boost_histogram_axes_variant BDSHistBinMapper::GetEnergyAxis ( ) const
inline

Definition at line 65 of file BDSHistBinMapper.hh.

◆ GlobalFromIJKLIndex()

G4int BDSHistBinMapper::GlobalFromIJKLIndex ( G4int  iIndex,
G4int  jIndex,
G4int  kIndex,
G4int  lIndex = 0 
) const
virtual

Definition at line 43 of file BDSHistBinMapper.cc.

◆ IJKLFromGlobal()

void BDSHistBinMapper::IJKLFromGlobal ( G4int  globalBin,
G4int &  iIndex,
G4int &  jIndex,
G4int &  kIndex,
G4int &  lIndex 
) const
virtual

Definition at line 51 of file BDSHistBinMapper.cc.

◆ NBinsI()

G4double BDSHistBinMapper::NBinsI ( ) const
inline

Definition at line 59 of file BDSHistBinMapper.hh.

◆ NBinsJ()

G4double BDSHistBinMapper::NBinsJ ( ) const
inline

Definition at line 60 of file BDSHistBinMapper.hh.

◆ NBinsK()

G4double BDSHistBinMapper::NBinsK ( ) const
inline

Definition at line 61 of file BDSHistBinMapper.hh.

◆ NBinsL()

G4double BDSHistBinMapper::NBinsL ( ) const
inline

Definition at line 62 of file BDSHistBinMapper.hh.

Field Documentation

◆ energyAxis

boost_histogram_axes_variant BDSHistBinMapper::energyAxis
protected

Definition at line 74 of file BDSHistBinMapper.hh.

◆ nBinsI

G4int BDSHistBinMapper::nBinsI
protected

Definition at line 69 of file BDSHistBinMapper.hh.

◆ nBinsJ

G4int BDSHistBinMapper::nBinsJ
protected

Definition at line 70 of file BDSHistBinMapper.hh.

◆ nBinsK

G4int BDSHistBinMapper::nBinsK
protected

Definition at line 71 of file BDSHistBinMapper.hh.

◆ nBinsL

G4int BDSHistBinMapper::nBinsL
protected

Definition at line 72 of file BDSHistBinMapper.hh.


The documentation for this class was generated from the following files: