Belle II Software development
WireHitPreparer.cc
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#include <tracking/trackFindingCDC/findlets/combined/WireHitPreparer.h>
9
10using namespace Belle2;
11using namespace TrackFindingCDC;
12using namespace TrackingUtilities;
13
23
25{
26 return "Combine the CDCHits from the DataStore with the geometry information.";
27}
28
29void WireHitPreparer::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
30{
31 m_wireHitCreator.exposeParameters(moduleParamList, prefix);
32 m_badBoardADCDetector.exposeParameters(moduleParamList, prefix);
33 m_wireHitBackgroundBlocker.exposeParameters(moduleParamList, prefix);
34 m_wireHitBackgroundDetector.exposeParameters(moduleParamList, prefix);
35 m_wireHitMCMultiLoopBlocker.exposeParameters(moduleParamList, prefix);
36 m_asicBackgroundDetector.exposeParameters(moduleParamList, prefix);
37}
38
39void WireHitPreparer::apply(std::vector<CDCWireHit>& outputWireHits)
40{
41 m_wireHitCreator.apply(outputWireHits);
42 m_badBoardADCDetector.apply(outputWireHits);
43 m_wireHitBackgroundBlocker.apply(outputWireHits);
44 m_wireHitBackgroundDetector.apply(outputWireHits);
45 m_wireHitMCMultiLoopBlocker.apply(outputWireHits);
46 m_asicBackgroundDetector.apply(outputWireHits);
47}
The Module parameter list class.
void apply(std::vector< TrackingUtilities::CDCWireHit > &outputWireHits) final
Main function preparing the wire hits.
WireHitBackgroundDetector m_wireHitBackgroundDetector
Marks hits as background based on the result of a filter.
WireHitCreator m_wireHitCreator
Creates the wire hits from CDCHits attaching geometry information.
AsicBackgroundDetector m_asicBackgroundDetector
Marks hits as background based on ASIC cross-talk signature.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
WireHitBackgroundBlocker m_wireHitBackgroundBlocker
Marks hits as background based on simple heuristics.
BadBoardADCDetector m_badBoardADCDetector
Detect boards with bad ADC values.
WireHitPreparer()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
WireHitMCMultiLoopBlocker m_wireHitMCMultiLoopBlocker
Marks higher order loops as background for tuning analysis.
Abstract base class for different kinds of events.