Belle II Software development
BeamParametersModule.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#include <framework/dbobjects/BeamParameters.h>
13#include <vector>
14
15
16namespace Belle2 {
25
26 public:
27
32
34 virtual void initialize() override;
35
36 private:
38 double m_energyHER;
39 double m_angleXHER;
40 double m_angleYHER;
41 std::vector<double> m_covHER;
42 double m_energyLER;
43 double m_angleXLER;
44 double m_angleYLER;
45 std::vector<double> m_covLER;
46 std::vector<double> m_vertex;
47 std::vector<double> m_covVertex;
48 std::vector<int> m_payloadIov{0, 0, -1, -1};
55 };
57}
Setting of beam parameters.
bool m_generateCMS
if true, generate events in CMS, not lab system
bool m_createPayload
if true create a new payload with the given parameters
bool m_smearEnergy
if true, smear energy when generating initial events
virtual void initialize() override
Create the Beamparameters.
std::vector< double > m_covHER
Covariance matrix for the High Energy Ring.
double m_angleXLER
theta angle of the Low Energy Ring in the x-z plane
std::vector< double > m_covLER
Covariance matrix for the Low Energy Ring.
double m_energyHER
Energy of the High Energy Ring.
bool m_smearVertex
if true, smear vertex position when generating initial events
BeamParametersModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::vector< int > m_payloadIov
iov when creating a database payload
bool m_smearDirection
if true, smear beam direction when generating initial events
std::vector< double > m_covVertex
covariance matrix for the vertex position
double m_energyLER
Energy of the Low Energy Ring.
BeamParameters m_beamParams
Copy of the beamparameters created from the parameters.
double m_angleYHER
theta angle of the High Energy Ring in the y-z plane
std::vector< double > m_vertex
nominal vertex position
double m_angleXHER
theta angle of the High Energy Ring in the x-z plane
double m_angleYLER
theta angle of the Low Energy Ring in the y-z plane
This class contains the nominal beam parameters and the parameters used for smearing of the primary v...
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.