Belle II Software  release-05-02-19
TOPChannelMaskAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2021 - Belle II Collaboration *
4  * *
5  * *
6  * Author: The Belle II Collaboration *
7  * Contributors: Marko Staric *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #pragma once
13 
14 #include <calibration/CalibrationAlgorithm.h>
15 #include <TFile.h>
16 #include <top/dbobjects/TOPCalChannelMask.h>
17 
18 namespace Belle2 {
23  namespace TOP {
24 
28  class TOPChannelMaskAlgorithm : public CalibrationAlgorithm {
29  public:
30 
33 
35  virtual ~TOPChannelMaskAlgorithm() {}
36 
41  void setMinHits(double minHits) {m_minHits = minHits;}
42 
48  void setWindowBand(int minWindow, int maxWindow)
49  {
50  m_minWindow = minWindow;
51  m_maxWindow = maxWindow;
52  }
53 
54  private:
55 
59  virtual EResult calibrate() final;
60 
61  // algorithm parameters
62  double m_minHits = 50;
63  int m_minWindow = 215;
64  int m_maxWindow = 235;
66  // output file
67  TFile* m_file = 0;
69  // output DB object
72  };
73 
74  } // end namespace TOP
76 } // end namespace Belle2
77 
Belle2::TOP::TOPChannelMaskAlgorithm::m_minHits
double m_minHits
minimal number of hits per channel needed for calibration
Definition: TOPChannelMaskAlgorithm.h:71
Belle2::TOPCalChannelMask
Channel status for all 512 channels of 16 modules.
Definition: TOPCalChannelMask.h:39
Belle2::TOP::TOPChannelMaskAlgorithm::m_minWindow
int m_minWindow
band lower limit in window_vs_asic
Definition: TOPChannelMaskAlgorithm.h:72
Belle2::TOP::TOPChannelMaskAlgorithm::m_file
TFile * m_file
root file
Definition: TOPChannelMaskAlgorithm.h:76
Belle2::TOP::TOPChannelMaskAlgorithm::calibrate
virtual EResult calibrate() final
algorithm implementation
Definition: TOPChannelMaskAlgorithm.cc:35
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOP::TOPChannelMaskAlgorithm::setWindowBand
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...
Definition: TOPChannelMaskAlgorithm.h:57
Belle2::TOP::TOPChannelMaskAlgorithm::m_channelMask
TOPCalChannelMask * m_channelMask
masks of dead and hot channels
Definition: TOPChannelMaskAlgorithm.h:79
Belle2::TOP::TOPChannelMaskAlgorithm::setMinHits
void setMinHits(double minHits)
Sets minimal average channel statistics needed to provide calibration.
Definition: TOPChannelMaskAlgorithm.h:50
Belle2::TOP::TOPChannelMaskAlgorithm::m_maxWindow
int m_maxWindow
band upper limit in window_vs_asic
Definition: TOPChannelMaskAlgorithm.h:73
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::TOP::TOPChannelMaskAlgorithm::~TOPChannelMaskAlgorithm
virtual ~TOPChannelMaskAlgorithm()
Destructor.
Definition: TOPChannelMaskAlgorithm.h:44
Belle2::TOP::TOPChannelMaskAlgorithm::TOPChannelMaskAlgorithm
TOPChannelMaskAlgorithm()
Constructor.
Definition: TOPChannelMaskAlgorithm.cc:29