Belle II Software development
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
15namespace Belle2 {
27
28 public:
29
34
35 private:
36
38 void initialize() override final;
39
41 void event() override final;
42
45
46 bool m_CreateInside = true;
47 bool m_CreateOutside = false;
48 double m_minCharge = 0.0;
49 double m_maxCharge = 9999.0;
50 int m_minSize = 1;
51 int m_maxSize = 99;
53 std::string m_PXDClustersName;
60 bool CheckCuts(const PXDCluster& thePXDCluster);
62 };
64}
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.