 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/database/DBObjPtr.h>
16 #include <mdst/dbobjects/BeamSpot.h>
31 class BeamSpotMonitorModule :
public Module {
47 virtual void event()
override;
62 TBranch*
b_exp =
nullptr;
64 TBranch*
b_x =
nullptr;
65 TBranch*
b_y =
nullptr;
66 TBranch*
b_z =
nullptr;
TBranch * b_z
Z position of the beam spot.
double m_y
Y position of the beam spot.
double m_xSize
X position size of the beam spot.
TFile * m_rootFilePtr
pointer at root file used for storing histograms
double m_ySize
Y position size of the beam spot.
double m_zSize
Z position size of the beam spot.
TBranch * b_zSize
Z position size of the beam spot.
virtual void terminate() override
print the payloads uniqueID and write tree to the rootfile
BeamSpotMonitorModule()
Constructor: Sets the description, the properties and the parameters of the module.
TBranch * b_ySize
Y position size of the beam spot.
TBranch * b_xSize
X position size of the beam spot.
This class contains the beam spot position and size modeled as a gaussian distribution in space.
TTree * m_tree
pointer to the tree
virtual void initialize() override
initialize the TTree
Class for accessing objects in the database.
double m_xErr
X position error of the beam spot.
std::string m_rootFileName
root file name
virtual void beginRun() override
check BeamSpot payload validity
TBranch * b_yErr
Y position error of the beam spot.
DBObjPtr< BeamSpot > m_BeamSpotDB
beam spot payload from the database
Abstract base class for different kinds of events.
double m_z
Z position of the beam spot.
double m_x
X position of the beam spot.
TBranch * b_x
X position of the beam spot.
int m_exp
experiment number
BeamSpot m_BeamSpot
beam spot payload
TBranch * b_y
Y position of the beam spot.
TBranch * b_zErr
Z position error of the beam spot.
double m_zErr
Z position error of the beam spot.
TBranch * b_xErr
X position error of the beam spot.
TBranch * b_exp
experiment number
TBranch * b_run
run number
double m_yErr
Y position error of the beam spot.
virtual void event() override
fill trees