Belle II Software development
ParallelTrackFilterModule.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 <framework/core/Module.h>
12#include <framework/datastore/SelectSubset.h>
13
14#include <mdst/dataobjects/Track.h>
15#include <string>
16
17
18namespace Belle2 {
28
29 public:
30
33
35 virtual void event() override;
36
38 virtual void initialize() override;
39
40
41 private:
42
43 bool isSelected(const Track* track);
45 std::string m_inputArrayName = "Tracks";
46 std::string m_outputINArrayName = "TracksIN";
47 std::string m_outputOUTArrayName = "TracksOUT";
52 double m_minD0 = -100;
53 double m_maxD0 = 100;
54 double m_minZ0 = -500;
55 double m_maxZ0 = 500;
59 double m_minPCM = 0;
60 double m_minPT = 0;
61 double m_minPval = 0;
62 };
64}
Base class for Modules.
Definition: Module.h:72
Generates a new StoreArray from the input StoreArray which contains only tracks that meet the specifi...
std::string m_outputOUTArrayName
StoreArray with the NOT selected output tracks.
SelectSubset< Track > m_selectedTracks
selected tracks
std::string m_outputINArrayName
StoreArray with the selected output tracks.
int m_minNumHitsCDC
minimum value of CDC hits
int m_minNumHitsPXD
minimum value of PXD hits
virtual void initialize() override
init the module
virtual void event() override
processes the event
bool isSelected(const Track *track)
determine if the track satisfies the selection criteria
double m_minPval
minimum P-value of the track fit
SelectSubset< Track > m_notSelectedTracks
not selected tracks
double m_minPCM
minimum value of the center of mass momentum
double m_minPT
minimum value of the transverse momentum
int m_minNumHitsSVD
minimum value of SVD hits
std::string m_inputArrayName
StoreArray with the input tracks.
ParallelTrackFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Class that bundles various TrackFitResults.
Definition: Track.h:25
Abstract base class for different kinds of events.