Belle II Software development
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 {
22
23 public:
29 c_ZR
30 };
31
37
39 virtual void initialize() override;
40
42 virtual void beginRun() override;
43
44 private:
46 std::string m_filename;
48 std::string m_type;
50 int m_nU {0};
52 double m_minU {0};
54 double m_maxU {0};
56 int m_nV {0};
58 double m_minV {0};
60 double m_maxV {0};
63 double m_phi {0};
65 double m_wOffset {0};
67 int m_nPhi{180};
69 bool m_createTree{false};
70 };
72}
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.