Belle II Software  release-08-01-10
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 
21 namespace Belle2 {
35  public:
36 
39 
41 
43  virtual void initialize() override;
44 
46  virtual void event() override;
47 
48 
49  int m_nSample = 1;
50  float m_cutSN = 3;
51  bool m_createOutside = false;
53  private:
54 
57 
61  bool passesZS(const SVDShaperDigit*);
63  //calibration objects
66  protected:
67 
70  std::string m_SVDShaperDigitsIN;
71  std::string m_SVDShaperDigitsOUT;
72  bool m_FADCmode = true;
74  };
76 }
77 #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.