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