Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -92,7 +92,7 @@ void G4PlotMessenger::SetStyleCmd()
|
||||
"inlib_default";
|
||||
#endif
|
||||
|
||||
fSetStyleCmd = CreateCommand<G4UIcmdWithAString>("setStyle", guidance);
|
||||
fSetStyleCmd = CreateCommand<G4UIcmdWithAString>("setStyle", std::move(guidance));
|
||||
fSetStyleCmd->SetParameterName("Style", false);
|
||||
fSetStyleCmd->SetCandidates("inlib_default");
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ G4bool G4THnToolsManager<kDim1, tools::histo::h1d>::FillHT(
|
||||
tools::histo::h1d* ht, const G4HnInformation& hnInformation,
|
||||
std::array<G4double, kDim1>& value, G4double weight)
|
||||
{
|
||||
auto xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
const auto& xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
|
||||
// Apply hn information to value
|
||||
Update(value[kX], xInfo);
|
||||
|
||||
@@ -90,8 +90,8 @@ G4bool G4THnToolsManager<kDim2, tools::histo::h2d>::FillHT(
|
||||
tools::histo::h2d* ht, const G4HnInformation& hnInformation,
|
||||
std::array<G4double, kDim2>& value, G4double weight)
|
||||
{
|
||||
auto xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
auto yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
const auto& xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
const auto& yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
|
||||
// Apply hn information to value
|
||||
Update(value[kX], xInfo);
|
||||
|
||||
@@ -99,9 +99,9 @@ G4bool G4THnToolsManager<kDim3, tools::histo::h3d>::FillHT(
|
||||
tools::histo::h3d* ht, const G4HnInformation& hnInformation,
|
||||
std::array<G4double, kDim3>& value, G4double weight)
|
||||
{
|
||||
auto xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
auto yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
auto zInfo = hnInformation.GetHnDimensionInformation(kZ);
|
||||
const auto& xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
const auto& yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
const auto& zInfo = hnInformation.GetHnDimensionInformation(kZ);
|
||||
|
||||
// Apply hn information to value
|
||||
Update(value[kX], xInfo);
|
||||
|
||||
@@ -107,8 +107,8 @@ G4bool G4THnToolsManager<kDim2, tools::histo::p1d>::FillHT(
|
||||
tools::histo::p1d* ht, const G4HnInformation& hnInformation,
|
||||
std::array<G4double, kDim2>& value, G4double weight)
|
||||
{
|
||||
auto xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
auto yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
const auto& xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
const auto& yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
|
||||
// Apply hn information to value
|
||||
Update(value[kX], xInfo);
|
||||
|
||||
@@ -117,9 +117,9 @@ G4bool G4THnToolsManager<kDim3, tools::histo::p2d>::FillHT(
|
||||
tools::histo::p2d* ht, const G4HnInformation& hnInformation,
|
||||
std::array<G4double, kDim3>& value, G4double weight)
|
||||
{
|
||||
auto xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
auto yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
auto zInfo = hnInformation.GetHnDimensionInformation(kZ);
|
||||
const auto& xInfo = hnInformation.GetHnDimensionInformation(kX);
|
||||
const auto& yInfo = hnInformation.GetHnDimensionInformation(kY);
|
||||
const auto& zInfo = hnInformation.GetHnDimensionInformation(kZ);
|
||||
|
||||
// Apply hn information to value
|
||||
Update(value[kX], xInfo);
|
||||
|
||||
Reference in New Issue
Block a user