Belle II Software  release-08-01-10
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 
18 namespace Belle2 {
31 
32  public:
33 
36 
38  virtual void event() override;
39 
41  virtual void initialize() override;
42 
43 
44  private:
45 
46  bool isSelected(const Track* track);
48  std::string m_inputArrayName = "Tracks";
49  std::string m_outputINArrayName = "TracksIN";
50  std::string m_outputOUTArrayName = "TracksOUT";
55  double m_minD0 = -100;
56  double m_maxD0 = 100;
57  double m_minZ0 = -500;
58  double m_maxZ0 = 500;
59  int m_minNumHitsPXD = 0;
60  int m_minNumHitsSVD = 0;
61  int m_minNumHitsCDC = 0;
62  double m_minPCM = 0;
63  double m_minPT = 0;
64  double m_minPval = 0;
65  };
67 }
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
miminum value of CDC hits
int m_minNumHitsPXD
miminum 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
miminum P-value of the track fit
SelectSubset< Track > m_notSelectedTracks
not selected tracks
double m_minPCM
miminum value of the center of mass momentum
double m_minPT
miminum value of the transverse momentum
int m_minNumHitsSVD
miminum 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.