Belle II Software  release-05-02-19
PrintBeamParametersModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/dbobjects/BeamParameters.h>
15 #include <framework/database/DBObjPtr.h>
16 
17 namespace Belle2 {
30  class PrintBeamParametersModule : public Module {
31 
32  public:
33 
38 
40  void event() override;
41 
42  private:
44  static void printCovMatrix(std::ostream& out, const TMatrixDSym& cov);
45 
48  };
50 }
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::PrintBeamParametersModule::PrintBeamParametersModule
PrintBeamParametersModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: PrintBeamParametersModule.cc:26
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PrintBeamParametersModule::m_beamparams
DBObjPtr< BeamParameters > m_beamparams
Pointer to the BeamParameters.
Definition: PrintBeamParametersModule.h:55
Belle2::PrintBeamParametersModule::printCovMatrix
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
Definition: PrintBeamParametersModule.cc:57
Belle2::PrintBeamParametersModule::event
void event() override
print the Beam Parameters if they changed
Definition: PrintBeamParametersModule.cc:34