Belle II Software development
SVDClusterCalibrationsMonitorModule.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/SVDClustering.h>
15#include <svd/calibration/SVDHitTimeSelection.h>
16#include <svd/calibration/SVDCoGOnlyErrorScaleFactors.h>
17#include <svd/calibration/SVDOldDefaultErrorScaleFactors.h>
18
19#include <svd/dataobjects/SVDHistograms.h>
20
21#include <string>
22#include <TFile.h>
23#include <TTree.h>
24#include <TBranch.h>
25#include <TH1F.h>
26
27namespace Belle2 {
36
37 public:
38
43
45 virtual void beginRun() override;
46
48 virtual void event() override;
49
51 virtual void endRun() override;
52
53 /* user-defined parameters */
54 std::string m_rootFileName;
56 /* ROOT file related parameters */
57 TFile* m_rootFilePtr = nullptr;
58 TTree* m_tree = nullptr;
60 //branches
61 TBranch* b_run = nullptr;
62 TBranch* b_ladder = nullptr;
63 TBranch* b_layer = nullptr;
64 TBranch* b_sensor = nullptr;
65 TBranch* b_side = nullptr;
66 TBranch* b_clsSNR = nullptr;
67 TBranch* b_clsSeedSNR = nullptr;
68 TBranch* b_clsAdjSNR = nullptr;
69 TBranch* b_clsScaleErr1 = nullptr;
70 TBranch* b_clsScaleErr2 = nullptr;
71 TBranch* b_clsScaleErr3 = nullptr;
72 TBranch* b_clsScaleErr4 = nullptr;
73 TBranch* b_clsScaleErr5 = nullptr;
74 TBranch* b_clsTimeFunc = nullptr;
75 TBranch* b_clsTimeMin = nullptr;
78 //branch variables
79 int m_run = -1;
80 int m_layer = -1;
81 int m_ladder = -1;
82 int m_sensor = -1;
83 int m_side = -1;
84 float m_clsSNR = -1;
85 float m_clsSeedSNR = -1;
86 float m_clsAdjSNR = -1;
87 float m_clsScaleErr1 = -1;
88 float m_clsScaleErr2 = -1;
89 float m_clsScaleErr3 = -1;
90 float m_clsScaleErr4 = -1;
91 float m_clsScaleErr5 = -1;
92 int m_clsTimeFunc = -1;
93 float m_clsTimeMin = -1;
95 private:
96
102 //CLUSTERS SNR CUTS
107 //CLUSTER POSITION ERROR SCALE FACTORS
114 //CLUSTER TIME CUTS
118 };
120}
121
Base class for Modules.
Definition: Module.h:72
Module to produce a list of histogram showing the uploaded calibration constants.
SVDOldDefaultErrorScaleFactors m_OldDefaultSF
scale factors for the OldDefault algorithm
TTree * m_tree
pointer at tree containing the mean and RMS of calibration constants
float m_clsScaleErr1
cluster size 1 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsSeedSNR
cluster seed SNR histo
TBranch * b_clsScaleErr1
cluster size 1 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsScaleErr3
cluster size 3, position error scale factor histo
SVDHitTimeSelection m_HitTimeCut
hit time cuts payload
virtual void event() override
fill trees and histograms
TBranch * b_clsScaleErr5
cluster size 5 pos err scale factor SNR
virtual void endRun() override
print the payloads uniqueID and write tree and histograms to the rootfile
TBranch * b_clsScaleErr4
cluster size 4 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsTimeMin
cluster cut minimum time histo
float m_clsScaleErr4
cluster size 4 pos err scale factor SNR
SVDClustering m_ClusterCal
cluster calibrations payload
SVDHistograms< TH1F > * m_hClsScaleErr1
cluster size 1, position error scale factor histo
TBranch * b_clsScaleErr2
cluster size 2 pos err scale factor SNR
SVDClusterCalibrationsMonitorModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void beginRun() override
initialize the TTrees and check validities of payloads
float m_clsScaleErr5
cluster size 5 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsScaleErr2
cluster size 2, position error scale factor histo
SVDCoGOnlyErrorScaleFactors m_CoGOnlySF
scale factors for the CoGOnly algorithm
float m_clsScaleErr2
cluster size 2 pos err scale factor SNR
TBranch * b_clsScaleErr3
cluster size 3 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsScaleErr5
cluster size 5, position error scale factor histo
SVDHistograms< TH1F > * m_hClsScaleErr4
cluster size 4, position error scale factor histo
TFile * m_rootFilePtr
pointer at root file used for storing histograms
SVDHistograms< TH1F > * m_hClsTimeFuncVersion
cluster cut time function version histo
float m_clsScaleErr3
cluster size 3 pos err scale factor SNR
SVDHistograms< TH1F > * m_hClsAdjSNR
cluster adj SNR histo
This class defines the dbobject and the methods to access the calibration of the cluster reconstructi...
Definition: SVDClustering.h:29
This class defines the dbobject and the methods to access the scaling factors for the CoGOnly positio...
template class for SVd histograms
Definition: SVDHistograms.h:24
This class defines the dbobject and the methods to access the calibration of the cluster reconstructi...
This class defines the dbobject and the methods to access the scaling factors for the OldDefault posi...
Abstract base class for different kinds of events.