Belle II Software  release-08-01-10
SVDClusterFilterModule.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 #ifndef CLUSTERFILTERMODULE_H
10 #define CLUSTERFILTERMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/SelectSubset.h>
14 
15 #include <svd/dataobjects/SVDCluster.h>
16 
17 
18 namespace Belle2 {
30  class SVDClusterFilterModule : public Module {
31 
32  public:
33 
38 
40  virtual ~SVDClusterFilterModule();
41 
43  virtual void beginRun() override;
44 
46  virtual void event() override;
47 
49  virtual void endRun() override;
50 
52  virtual void terminate() override;
53 
55  virtual void initialize() override;
56 
57  private:
58 
59  std::string m_inputArrayName;
60  std::string m_outputINArrayName;
61  std::string m_outputOUTArrayName;
62  int m_layerNum;
63  int m_xShell;
64  int m_yShell;
65  float m_minClSNR;
67  std::set<VxdID> m_outVxdID;
68  void create_outVxdID_set();
72  };
74 }
75 
76 #endif /* CLUSTERFILTERMODULE_H */
Base class for Modules.
Definition: Module.h:72
generates a new StoreArray from the input StoreArray which has all specified Clusters removed
std::string m_outputOUTArrayName
StoreArray with the NOT selected output clusters.
std::string m_outputINArrayName
StoreArray with the selectd output clusters.
SVDClusterFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void initialize() override
init the module
virtual void event() override
processes the event
std::set< VxdID > m_outVxdID
set containing the VxdID of the DUT sensors
virtual void endRun() override
end the run
virtual void terminate() override
terminates the module
int m_xShell
X shell identificator: +1(+X), -1 (-X), 0(both)
int m_layerNum
the layer number from which the clusters should be excluded m_sensorID
SelectSubset< SVDCluster > m_notSelectedClusters
all clusters on the layer with m_layerNum
virtual void beginRun() override
initializes the module
SelectSubset< SVDCluster > m_selectedClusters
all clusters NOT on the layer with m_layerNum
int m_yShell
Y shell identificator: +1(+Y), -1 (-Y), 0(both)
std::string m_inputArrayName
StoreArray with the input clusters.
float m_minClSNR
minimum cluster SNR
void create_outVxdID_set()
creates the set containing the VxdID of the DUT sensors
virtual ~SVDClusterFilterModule()
if required
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.