Belle II Software  release-05-02-19
SVDClusterFilterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Lueck, Giulia Casarosa *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef CLUSTERFILTERMODULE_H
12 #define CLUSTERFILTERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/SelectSubset.h>
16 
17 #include <svd/dataobjects/SVDCluster.h>
18 
19 
20 namespace Belle2 {
32  class SVDClusterFilterModule : public Module {
33 
34  public:
35 
40 
42  virtual ~SVDClusterFilterModule();
43 
45  virtual void beginRun() override;
46 
48  virtual void event() override;
49 
51  virtual void endRun() override;
52 
54  virtual void terminate() override;
55 
57  virtual void initialize() override;
58 
59  private:
60 
61  std::string m_inputArrayName;
62  std::string m_outputINArrayName;
63  std::string m_outputOUTArrayName;
64  int m_layerNum;
65  int m_xShell;
66  int m_yShell;
67  float m_minClSNR;
69  std::set<VxdID> m_outVxdID;
74  };
76 }
77 
78 #endif /* CLUSTERFILTERMODULE_H */
Belle2::SVDClusterFilterModule::~SVDClusterFilterModule
virtual ~SVDClusterFilterModule()
if required
Definition: SVDClusterFilterModule.cc:46
Belle2::SVDClusterFilterModule::m_notSelectedClusters
SelectSubset< SVDCluster > m_notSelectedClusters
all clusters on the layer with m_layerNum
Definition: SVDClusterFilterModule.h:81
Belle2::SVDClusterFilterModule::event
virtual void event() override
processes the event
Definition: SVDClusterFilterModule.cc:82
Belle2::SelectSubset
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:203
Belle2::SVDClusterFilterModule::m_inputArrayName
std::string m_inputArrayName
StoreArray with the input clusters.
Definition: SVDClusterFilterModule.h:69
Belle2::SVDClusterFilterModule::m_xShell
int m_xShell
X shell identificator: +1(+X), -1 (-X), 0(both)
Definition: SVDClusterFilterModule.h:73
Belle2::SVDClusterFilterModule::initialize
virtual void initialize() override
init the module
Definition: SVDClusterFilterModule.cc:52
Belle2::SVDClusterFilterModule::terminate
virtual void terminate() override
terminates the module
Definition: SVDClusterFilterModule.cc:175
Belle2::SVDClusterFilterModule::m_minClSNR
float m_minClSNR
minimum cluster SNR
Definition: SVDClusterFilterModule.h:75
Belle2::SVDClusterFilterModule::m_outVxdID
std::set< VxdID > m_outVxdID
set containing the VxdID of the DUT sensors
Definition: SVDClusterFilterModule.h:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDClusterFilterModule::m_selectedClusters
SelectSubset< SVDCluster > m_selectedClusters
all clusters NOT on the layer with m_layerNum
Definition: SVDClusterFilterModule.h:80
Belle2::SVDClusterFilterModule::endRun
virtual void endRun() override
end the run
Definition: SVDClusterFilterModule.cc:171
Belle2::SVDClusterFilterModule::beginRun
virtual void beginRun() override
initializes the module
Definition: SVDClusterFilterModule.cc:77
Belle2::SVDClusterFilterModule::SVDClusterFilterModule
SVDClusterFilterModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: SVDClusterFilterModule.cc:29
Belle2::SVDClusterFilterModule::create_outVxdID_set
void create_outVxdID_set()
creates the set containing the VxdID of the DUT sensors
Definition: SVDClusterFilterModule.cc:132
Belle2::SVDClusterFilterModule::m_outputOUTArrayName
std::string m_outputOUTArrayName
StoreArray with the NOT selected output clusters.
Definition: SVDClusterFilterModule.h:71
Belle2::SVDClusterFilterModule::m_layerNum
int m_layerNum
the layer number from which the clusters should be excluded m_sensorID
Definition: SVDClusterFilterModule.h:72
Belle2::SVDClusterFilterModule::m_outputINArrayName
std::string m_outputINArrayName
StoreArray with the selectd output clusters.
Definition: SVDClusterFilterModule.h:70
Belle2::SVDClusterFilterModule::m_yShell
int m_yShell
Y shell identificator: +1(+Y), -1 (-Y), 0(both)
Definition: SVDClusterFilterModule.h:74