Belle II Software development
SVDTimeCalibrationsMonitorModule.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
12#include <framework/core/Module.h>
13
14#include <svd/calibration/SVDCoGTimeCalibrations.h>
15#include <svd/calibration/SVD3SampleCoGTimeCalibrations.h>
16#include <svd/calibration/SVD3SampleELSTimeCalibrations.h>
17
18#include <string>
19#include <TFile.h>
20#include <TTree.h>
21#include <TBranch.h>
22
23namespace Belle2 {
32
33 public:
34
39
41 virtual void beginRun() override;
42
44 virtual void event() override;
45
47 virtual void endRun() override;
48
49 /* user-defined parameters */
50 std::string m_rootFileName;
51 std::string m_timeAlgo;
53 /* ROOT file related parameters */
54 TFile* m_rootFilePtr = nullptr;
55 TTree* m_tree = nullptr;
57 //branches
58 TBranch* b_exp = nullptr;
59 TBranch* b_run = nullptr;
60 TBranch* b_ladder = nullptr;
61 TBranch* b_layer = nullptr;
62 TBranch* b_sensor = nullptr;
63 TBranch* b_side = nullptr;
64 TBranch* b_triggerBin = nullptr;
65 TBranch* b_c0 = nullptr;
66 TBranch* b_c1 = nullptr;
67 TBranch* b_c2 = nullptr;
68 TBranch* b_c3 = nullptr;
70 //branch variables
71 int m_run = -1;
72 int m_exp = -1;
73 int m_layer = -1;
74 int m_ladder = -1;
75 int m_sensor = -1;
76 int m_side = -1;
77 int m_triggerBin = -1;
78 float m_c0 = -1;
79 float m_c1 = -1;
80 float m_c2 = -1;
81 float m_c3 = -1;
84 private:
85
91 };
93}
94
Base class for Modules.
Definition: Module.h:72
This class defines the dbobject and the methods to access the SVD calibrations from the local runs pr...
This class defines the dbobject and the methods to access the SVD calibrations from the local runs pr...
This class defines the dbobject and the methods to access the SVD calibrations from the local runs pr...
Module to produce a list of histogram showing the uploaded calibration constants.
TTree * m_tree
pointer at tree containing the mean and RMS of calibration constants
SVDTimeCalibrationsMonitorModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void event() override
fill trees and histograms
virtual void endRun() override
print the payloads uniqueID and write tree and histograms to the rootfile
SVD3SampleCoGTimeCalibrations m_CoG3TimeCal
CoG3 time calibrations payload.
SVDCoGTimeCalibrations m_CoG6TimeCal
CoG6 time calibrations payload.
virtual void beginRun() override
initialize the TTrees and check validities of payloads
SVD3SampleELSTimeCalibrations m_ELS3TimeCal
ELS3 time calibrations payload.
TFile * m_rootFilePtr
pointer at root file used for storing histograms
Abstract base class for different kinds of events.