Belle II Software development
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
18namespace Belle2 {
28
29 public:
30
35
38
40 virtual void beginRun() override;
41
43 virtual void event() override;
44
46 virtual void endRun() override;
47
49 virtual void terminate() override;
50
52 virtual void initialize() override;
53
54 private:
55
56 std::string m_inputArrayName;
57 std::string m_outputINArrayName;
62 float m_minClSNR;
64 std::set<VxdID> m_outVxdID;
65 void create_outVxdID_set();
69 };
71}
72
73#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.