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

Wrapper for G4ScoringBox to allow full access to placement. More...

#include <BDSScoringMeshBox.hh>

Inheritance diagram for BDSScoringMeshBox:
Inheritance graph
Collaboration diagram for BDSScoringMeshBox:
Collaboration graph

Public Member Functions

 BDSScoringMeshBox (const G4String &name, const BDSScorerMeshInfo &recipe, const G4Transform3D &placementTransform)
 
 BDSScoringMeshBox (const G4String &name, const G4ThreeVector &translation, const G4RotationMatrix &rotation)
 
const BDSHistBinMapperMapper () const
 

Protected Attributes

BDSHistBinMappermapper
 
G4double scorerSize [3]
 
G4int nSegment [3]
 
G4int nEnergySegments
 

Detailed Description

Wrapper for G4ScoringBox to allow full access to placement.

The G4ScoringBox class provides an incomplete interface to the underlying translation 3 vector and rotation matrix. Here, we wrap the class to assign these protected members directly.

We have several constructors to retain compatibility with Geant4's delayed construction model for use interactively.

Author
Laurie Nevay

Definition at line 43 of file BDSScoringMeshBox.hh.

Constructor & Destructor Documentation

◆ BDSScoringMeshBox() [1/2]

BDSScoringMeshBox::BDSScoringMeshBox ( const G4String &  name,
const BDSScorerMeshInfo recipe,
const G4Transform3D &  placementTransform 
)

Construct with size and divisions from recipe class. Retain full control over name of mesh.

Definition at line 28 of file BDSScoringMeshBox.cc.

◆ BDSScoringMeshBox() [2/2]

BDSScoringMeshBox::BDSScoringMeshBox ( const G4String &  name,
const G4ThreeVector &  translation,
const G4RotationMatrix &  rotation 
)

Separate constructor with objects that are assigned directly to protected base class members.

Definition at line 53 of file BDSScoringMeshBox.cc.

◆ ~BDSScoringMeshBox()

BDSScoringMeshBox::~BDSScoringMeshBox ( )
virtual

Definition at line 72 of file BDSScoringMeshBox.cc.

Member Function Documentation

◆ Mapper()

const BDSHistBinMapper * BDSScoringMeshBox::Mapper ( ) const

Definition at line 63 of file BDSScoringMeshBox.cc.

Field Documentation

◆ mapper

BDSHistBinMapper* BDSScoringMeshBox::mapper
mutableprotected

Definition at line 63 of file BDSScoringMeshBox.hh.

◆ nEnergySegments

G4int BDSScoringMeshBox::nEnergySegments
protected

Definition at line 67 of file BDSScoringMeshBox.hh.

◆ nSegment

G4int BDSScoringMeshBox::nSegment[3]
protected

Definition at line 66 of file BDSScoringMeshBox.hh.

◆ scorerSize

G4double BDSScoringMeshBox::scorerSize[3]
protected

Definition at line 65 of file BDSScoringMeshBox.hh.


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