Belle II Software development
WireHitMCMultiLoopBlocker.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#pragma once
9
10#include <tracking/trackingUtilities/findlets/base/Findlet.h>
11
12#include <vector>
13#include <string>
14#include <cmath>
15
16namespace Belle2 {
21 namespace TrackingUtilities {
22 class CDCWireHit;
23 }
24
25 namespace TrackFindingCDC {
26
36 class WireHitMCMultiLoopBlocker : public TrackingUtilities::Findlet<TrackingUtilities::CDCWireHit&> {
37
38 private:
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<TrackingUtilities::CDCWireHit>& wireHits) final;
57
58 private:
60 double m_param_useNLoops = INFINITY;
61 };
62 }
64}
The Module parameter list class.
Marks all hits that are not on the first loop of the track as background.
void initialize() final
Signals the start of the event processing.
void beginEvent() final
Prepare the Monte Carlo information at the start of the event.
std::string getDescription() final
Short description of the findlet.
void apply(std::vector< TrackingUtilities::CDCWireHit > &wireHits) final
Main algorithm marking the hit of higher loops as background.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
TrackingUtilities::Findlet< TrackingUtilities::CDCWireHit & > Super
Type of the base class.
double m_param_useNLoops
Parameter : Maximal fraction of loops of the mc particles trajectory needs to the hit to unblock it.
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.