Belle II Software development
PrintBeamParametersModule.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 <framework/database/DBObjPtr.h>
14
15namespace Belle2 {
26
27 public:
28
33
35 void event() override;
36
37 private:
39 static void printCovMatrix(std::ostream& out, const TMatrixDSym& cov);
40
43 };
45}
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
Print the BeamParameters everytime they change.
static void printCovMatrix(std::ostream &out, const TMatrixDSym &cov)
print a covariance matrix and simplify it to three elements if the off diagonals are zero
DBObjPtr< BeamParameters > m_beamparams
Pointer to the BeamParameters.
void event() override
print the Beam Parameters if they changed
PrintBeamParametersModule()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.