Belle II Software development
TOPValidationCollectorModule.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#include <calibration/CalibrationCollectorModule.h>
12
13#include <framework/datastore/StoreArray.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <mdst/dataobjects/Track.h>
16#include <tracking/dataobjects/ExtHit.h>
17#include <top/dataobjects/TOPDigit.h>
18#include <top/dataobjects/TOPRecBunch.h>
19
20#include <framework/database/DBObjPtr.h>
21#include <top/dbobjects/TOPCalTimebase.h>
22#include <top/dbobjects/TOPCalChannelT0.h>
23#include <top/dbobjects/TOPCalChannelMask.h>
24#include <top/dbobjects/TOPCalChannelThresholdEff.h>
25#include <top/dbobjects/TOPCalAsicShift.h>
26#include <top/dbobjects/TOPCalEventT0Offset.h>
27#include <top/dbobjects/TOPCalFillPatternOffset.h>
28
29#include <top/utilities/TrackSelector.h>
30#include <top/utilities/Chi2MinimumFinder1D.h>
31#include <top/reconstruction_cpp/PDFConstructor.h>
32#include <top/calibration/ValidationTreeStruct.h>
33
34#include <string>
35#include <vector>
36
37namespace Belle2 {
47
48 public:
53
54 private:
55
59 virtual void prepare() final;
60
64 virtual void collect() final;
65
69 virtual void startRun() final;
70
74 virtual void closeRun() final;
75
79 enum {c_numModules = TOP::ValidationTreeStruct::c_numModules,
82 };
83
84 // steering parameters
86 double m_timeRange;
87 double m_sigmaSmear;
88 std::string m_sample;
89 double m_deltaEcms;
90 double m_dr;
91 double m_dz;
92 double m_minZ;
93 double m_maxZ;
94 std::string m_pdfOption;
96 // procedure
99 std::vector<std::string> m_namesChi;
100 std::vector<std::string> m_namesHit;
101 std::vector<TOP::Chi2MinimumFinder1D> m_finders[c_numSets];
103 // collections
109 // payloads
118 // tree variables
120 };
121
123} // end namespace Belle2
Calibration collector module base class.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Collector for automatic validation of calibration with dimuon events.
DBObjPtr< TOPCalFillPatternOffset > m_fillPatternOffset
fill pattern offset
@ c_numChannels
number of channels per module
@ c_numSets
number of statistically independent subsamples
DBObjPtr< TOPCalEventT0Offset > m_eventT0Offset
detector components offsets w.r.t TOP
DBObjPtr< TOPCalChannelMask > m_channelMask
list of dead/noisy channels
TOP::ValidationTreeStruct m_treeEntry
tree entry
std::vector< std::string > m_namesHit
histogram names of photon hits (time vs.
DBObjPtr< TOPCalTimebase > m_timebase
sample time calibration constants
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
DBObjPtr< TOPCalAsicShift > m_asicShift
ASIC shifts calibration constants.
TOP::TrackSelector m_selector
track selection utility
double m_sigmaSmear
additional smearing of PDF in [ns]
DBObjPtr< TOPCalChannelThresholdEff > m_thresholdEff
channel threshold effi.
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0 calibration constants
int m_numBins
number of bins to which search region is divided
double m_maxZ
maximal local z of extrapolated hit
TOP::PDFConstructor::EPDFOption m_PDFOption
PDF option.
std::vector< std::string > m_namesChi
histogram names of chi2 scans
double m_minZ
minimal local z of extrapolated hit
StoreArray< Track > m_tracks
collection of tracks
double m_deltaEcms
c.m.s energy window if sample is "dimuon" or "bhabha"
double m_timeRange
time range in which to search for the minimum [ns]
StoreArray< TOPDigit > m_digits
collection of digits
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
std::vector< TOP::Chi2MinimumFinder1D > m_finders[c_numSets]
minimum finders, vector index = slot - 1
EPDFOption
Signal PDF construction options.
@ c_Rough
no dependence on y
Utility for the track selection - used in various calibration modules.
Definition: TrackSelector.h:27
virtual void collect() final
Replacement for event().
virtual void startRun() final
Replacement for beginRun().
virtual void closeRun() final
Replacement for endRun().
virtual void prepare() final
Replacement for initialize().
Abstract base class for different kinds of events.
Calibration validation tree structure.