Belle II Software light-2406-ragdoll
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 {
29
30 public:
31
36
38 void event() override;
39
40 private:
42 static void printCovMatrix(std::ostream& out, const TMatrixDSym& cov);
43
46 };
48}
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.
Definition: ClusterUtils.h:24