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
35 void setMinHits(double minHits) {m_minHits = minHits;}
36
42 void setWindowBand(int minWindow, int maxWindow)
43 {
44 m_minWindow = minWindow;
45 m_maxWindow = maxWindow;
46 }
47
48 private:
49
53 virtual EResult calibrate() final;
54
55 // algorithm parameters
56 double m_minHits = 50;
57 int m_minWindow = 215;
58 int m_maxWindow = 235;
59
60 // output file
61 TFile* m_file = 0;
62
63 // output DB object
65
66 };
67
68 } // end namespace TOP
70} // end namespace Belle2
71
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.