Belle II Software light-2406-ragdoll
CreateFieldMapModule.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
9#pragma once
10
11#include <framework/core/Module.h>
12
13namespace Belle2 {
25
26 public:
32 c_ZR
33 };
34
40
42 virtual void initialize() override;
43
45 virtual void beginRun() override;
46
47 private:
49 std::string m_filename;
51 std::string m_type;
53 int m_nU {0};
55 double m_minU {0};
57 double m_maxU {0};
59 int m_nV {0};
61 double m_minV {0};
63 double m_maxV {0};
66 double m_phi {0};
68 double m_wOffset {0};
70 int m_nPhi{180};
72 bool m_createTree{false};
73 };
75}
Create Field maps of the Belle II magnetic field used in the simulation.
int m_nPhi
number of steps in phi
virtual void initialize() override
Check input parameters.
double m_minV
start value for the first coordinate
double m_wOffset
offset on the third coordinate
double m_minU
start value for the first coordinate
double m_phi
phi rotation when sampling magnetic field (value of pi will convert ZX to ZY scan)
int m_nV
number of steps along the second coordinate
int m_nU
number of steps along the first coordinate
std::string m_type
type of the fieldmap (zx, zy, zr)
double m_maxV
end value for the first coordinate
virtual void beginRun() override
Create the fieldmap.
std::string m_filename
output filename for the fieldmap
EFieldTypes
Types of Fieldmap to be created.
@ c_ZR
scan along Z and R, averaging over phi
double m_maxU
end value for the first coordinate
bool m_createTree
if true create a TTree with all sampled points
CreateFieldMapModule()
Constructor: Sets the description, the properties and the parameters of the module.
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24