Belle II Software development
SVDZeroSuppressionEmulatorModule.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
10#ifndef SVDZSEMULATOR_H
11#define SVDZSEMULATOR_H
12
13
14#include <framework/core/Module.h>
15#include <framework/datastore/StoreArray.h>
16#include <svd/dataobjects/SVDShaperDigit.h>
17#include <svd/calibration/SVDNoiseCalibrations.h>
18#include <framework/datastore/SelectSubset.h>
19#include <string>
20
21namespace Belle2 {
32 public:
33
36
38
40 virtual void initialize() override;
41
43 virtual void event() override;
44
45
46 int m_nSample = 1;
47 float m_cutSN = 3;
48 bool m_createOutside = false;
50 private:
51
54
58 bool passesZS(const SVDShaperDigit*);
60 //calibration objects
63 protected:
64
67 std::string m_SVDShaperDigitsIN;
69 bool m_FADCmode = true;
71 };
73}
74#endif
Base class for Modules.
Definition: Module.h:72
This class defines the dbobject and the method to access SVD calibrations from the noise local runs.
The SVD ShaperDigit class.
This module filters out strips that do not pass a ZS cut from the SVDShaperDigit StoreArray.
SelectSubset< SVDShaperDigit > m_selectorIN
selector of the subset of the SVDShaperDigit passing ZS
bool m_FADCmode
if true, same algorithm as on FADC is applied
virtual void initialize() override
Initialize the SVDZeroSuppressionEmulator.
std::string m_storeShaperDigitsName
Name of the collections to use for the SVDShaperDigits.
virtual void event() override
This method is the core of the SVDZeroSuppressionEmulator.
SVDNoiseCalibrations m_NoiseCal
SVDNoise calibration db object.
bool passesZS(const SVDShaperDigit *)
returns true if the strip passes the ZS cut
SelectSubset< SVDShaperDigit > m_selectorOUT
selector of the subset of the SVDShaperDigit not passing ZS
SVDZeroSuppressionEmulatorModule()
Constructor defining the parameters.
int m_nSample
minimum number of samples required to be above threshold
bool m_createOutside
if true a StoreArray of Strips zero-suppressed is created
StoreArray< SVDShaperDigit > m_storeShaper
store arrays
std::string m_SVDShaperDigitsOUT
name of SVDShaperDigits NOT passing ZS
std::string m_SVDShaperDigitsIN
name of SVDShaperDigits passing ZS
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:193
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.