Belle II Software prerelease-11-00-00a
DeadBoardAlgorithm.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 <framework/database/DBObjPtr.h>
13#include <cdc/dbobjects/CDCBadBoards.h>
14
15#include <string>
16
17namespace Belle2 {
22 namespace CDC {
23
28 public:
31
33 ~DeadBoardAlgorithm() override = default;
34
36 void setHistName(const std::string& name) { m_histName = name; }
37
39 void setThreshold(const float threshold) { m_threshold = threshold; }
40
41 protected:
43 EResult calibrate() override;
44
46 void detectDeadBoards();
47
48 private:
49 std::string m_histName = "CDCboardIDs";
50 float m_threshold = 0.0;
52 };
53
54 }
56}
Database object for bad boards.
~DeadBoardAlgorithm() override=default
Destructor.
float m_threshold
dead-board threshold
std::string m_histName
input histogram name
void detectDeadBoards()
Detect dead boards from histogram.
CDCBadBoards * m_badBoardList
bad-board list to be saved
void setThreshold(const float threshold)
Set threshold for dead board decision.
EResult calibrate() override
Run algorithm on data.
void setHistName(const std::string &name)
Set histogram name.
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
Abstract base class for different kinds of events.