Belle II Software development
TOPChannelMaskAlgorithm.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/CalibrationAlgorithm.h>
12#include <TFile.h>
13#include <top/dbobjects/TOPCalChannelMask.h>
14
15namespace Belle2 {
20 namespace TOP {
21
26 public:
27
30
33
38 void setMinHits(double minHits) {m_minHits = minHits;}
39
45 void setWindowBand(int minWindow, int maxWindow)
46 {
47 m_minWindow = minWindow;
48 m_maxWindow = maxWindow;
49 }
50
51 private:
52
56 virtual EResult calibrate() final;
57
58 // algorithm parameters
59 double m_minHits = 50;
60 int m_minWindow = 215;
61 int m_maxWindow = 235;
62
63 // output file
64 TFile* m_file = 0;
65
66 // output DB object
68
69 };
70
71 } // end namespace TOP
73} // end namespace Belle2
74
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
Channel status for all 512 channels of 16 modules.
double m_minHits
minimal number of hits per channel needed for calibration
void setWindowBand(int minWindow, int maxWindow)
Sets a projection band in y for window_vs_asic histogram which defines a range of un-corrupted window...
virtual EResult calibrate() final
algorithm implementation
int m_maxWindow
band upper limit in window_vs_asic
void setMinHits(double minHits)
Sets minimal average channel statistics needed to provide calibration.
TOPCalChannelMask * m_channelMask
masks of dead and hot channels
int m_minWindow
band lower limit in window_vs_asic
Abstract base class for different kinds of events.