Belle II Software prerelease-11-00-00a
BadBoardADCDetector.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 <cdc/dbobjects/CDCBadBoards.h>
12#include <framework/database/DBObjPtr.h>
13#include <tracking/trackingUtilities/findlets/base/Findlet.h>
14#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
15#include <vector>
16#include <string>
17
18
19namespace Belle2 {
24
25 namespace TrackFindingCDC {
26
28 class BadBoardADCDetector : public TrackingUtilities::Findlet<TrackingUtilities::CDCWireHit&> {
29
30 private:
32 using Super = Findlet<TrackingUtilities::CDCWireHit&>;
33
34 public:
37
39 std::string getDescription() final;
40
42 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
43
45 void initialize() final;
46
48 void beginRun() final;
49
51 void apply(std::vector<TrackingUtilities::CDCWireHit>& wireHits) final;
52
53
54 private:
55
58
61
64
67 };
68 }
70}
Database object for bad boards.
Class for accessing objects in the database.
Definition DBObjPtr.h:21
The Module parameter list class.
int m_badTOTaverageMin
Min TOT value for the average.
Findlet< TrackingUtilities::CDCWireHit & > Super
Type of the base class.
int m_badADCaverageMin
Min ADC value for the average.
DBObjPtr< CDCBadBoards > m_badBoardsFromDB
Pointer to the CDCBadBoards payload.
std::string getDescription() final
Short description of the findlet.
void apply(std::vector< TrackingUtilities::CDCWireHit > &wireHits) final
Main algorithm marking hit as background.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
int m_badADCaverageMax
Max ADC value for the average.
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
STL class.
Abstract base class for different kinds of events.
STL namespace.