Belle II Software  release-05-01-25
WireHitMCMultiLoopBlocker.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <vector>
15 #include <string>
16 #include <cmath>
17 
18 namespace Belle2 {
24  namespace TrackFindingCDC {
25  class CDCWireHit;
26 
36  class WireHitMCMultiLoopBlocker : public Findlet<CDCWireHit&> {
37 
38  private:
40  using Super = Findlet<CDCWireHit&>;
41 
42  public:
44  std::string getDescription() final;
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48 
50  void initialize() final;
51 
53  void beginEvent() final;
54 
56  void apply(std::vector<CDCWireHit>& wireHits) final;
57 
58  private:
60  double m_param_useNLoops = INFINITY;
61  };
62  }
64 }
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::initialize
void initialize() final
Signals the start of the event processing.
Definition: WireHitMCMultiLoopBlocker.cc:48
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: WireHitMCMultiLoopBlocker.cc:33
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::Super
Findlet< CDCWireHit & > Super
Type of the base class.
Definition: WireHitMCMultiLoopBlocker.h:48
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: WireHitMCMultiLoopBlocker.cc:39
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::apply
void apply(std::vector< CDCWireHit > &wireHits) final
Main algorithm marking the hit of higher loops as background.
Definition: WireHitMCMultiLoopBlocker.cc:64
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::m_param_useNLoops
double m_param_useNLoops
Parameter : Maximal fraction of loops of the mc particles trajectory needs to the hit to unblock it.
Definition: WireHitMCMultiLoopBlocker.h:68
Belle2::TrackFindingCDC::CDCWireHit
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:65
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::WireHitMCMultiLoopBlocker::beginEvent
void beginEvent() final
Prepare the Monte Carlo information at the start of the event.
Definition: WireHitMCMultiLoopBlocker.cc:56