Belle II Software development
DensityScalerModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <framework/core/Module.h>
11#include <set>
12
13namespace Belle2 {
25 class DensityScalerModule : public Module {
26 public:
32 virtual void initialize() override;
33 private:
38 std::map<std::string, double> m_scaling;
40 std::set<std::string> m_ignoredMaterials;
41 };
43}
Scale density of simulation/reconstruction geometry.
virtual void initialize() override
Set the scaling.
std::map< std::string, double > m_scaling
The scale factor for each geometry component that should be scaled.
DensityScalerModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::set< std::string > m_ignoredMaterials
Set of material names to not scale.
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.