Belle II Software  release-08-01-10
PXDClusterPropFilterModule.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 #include <pxd/dataobjects/PXDCluster.h>
14 
15 namespace Belle2 {
30 
31  public:
32 
37 
38  private:
39 
41  void initialize() override final;
42 
44  void event() override final;
45 
48 
49  bool m_CreateInside = true;
50  bool m_CreateOutside = false;
51  double m_minCharge = 0.0;
52  double m_maxCharge = 9999.0;
53  int m_minSize = 1;
54  int m_maxSize = 99;
56  std::string m_PXDClustersName;
63  bool CheckCuts(const PXDCluster& thePXDCluster);
65  };
67 }
Base class for Modules.
Definition: Module.h:72
The module produce a StoreArray of PXDCluster with specific properties.
double m_maxCharge
maximum charge, excluding value
int m_maxSize
maximum size, excluding value
void initialize() override final
Initialize the Module.
bool CheckCuts(const PXDCluster &thePXDCluster)
the actual check for cluster properties
SelectSubset< PXDCluster > m_selectorOUT
selector of the subset of PXDClusters NOT contained in the ROIs
int m_minSize
minimum size, including value
void event() override final
This method is the core of the module.
void filterClusters()
all the actual work is done here
std::string m_PXDClustersName
The name of the StoreArray of PXDClusters to be filtered.
bool m_CreateInside
if set, create list of inside cuts
double m_minCharge
minimum charge, including value
SelectSubset< PXDCluster > m_selectorIN
selector of the subset of PXDClusters contained in the ROIs
PXDClusterPropFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_PXDClustersOutsideCutsName
The name of the StoreArray of Filtered PXDClusters outside cuts.
bool m_CreateOutside
if set, create list of outside cuts
std::string m_PXDClustersInsideCutsName
The name of the StoreArray of Filtered PXDClusters inside cuts.
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition: PXDCluster.h:30
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Abstract base class for different kinds of events.