Belle II Software  release-05-02-19
SVDZeroSuppressionEmulatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Giulia Casarosa *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 
12 #ifndef SVDZSEMULATOR_H
13 #define SVDZSEMULATOR_H
14 
15 
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <svd/dataobjects/SVDShaperDigit.h>
19 #include <svd/calibration/SVDNoiseCalibrations.h>
20 #include <framework/datastore/SelectSubset.h>
21 #include <string>
22 
23 namespace Belle2 {
36  class SVDZeroSuppressionEmulatorModule : public Module {
37  public:
38 
41 
43 
45  virtual void initialize() override;
46 
48  virtual void event() override;
49 
50 
51  int m_nSample = 1;
52  float m_cutSN = 3;
53  bool m_createOutside = false;
55  private:
56 
58  StoreArray<SVDShaperDigit> m_storeShaper;
59 
63  bool passesZS(const SVDShaperDigit*);
65  //calibration objects
68  protected:
69 
71  std::string m_storeShaperDigitsName;
72  std::string m_SVDShaperDigitsIN;
73  std::string m_SVDShaperDigitsOUT;
74  bool m_FADCmode = true;
76  };
78 }
79 #endif
Belle2::SVDZeroSuppressionEmulatorModule::m_NoiseCal
SVDNoiseCalibrations m_NoiseCal
SVDNoise calibration db object.
Definition: SVDZeroSuppressionEmulatorModule.h:74
Belle2::SelectSubset
Class to create a subset of a given StoreArray together with the relations with other StoreArrays.
Definition: SelectSubset.h:203
Belle2::SVDZeroSuppressionEmulatorModule::m_selectorIN
SelectSubset< SVDShaperDigit > m_selectorIN
selector of the subset of the SVDShaperDigit passing ZS
Definition: SVDZeroSuppressionEmulatorModule.h:68
Belle2::SVDZeroSuppressionEmulatorModule::m_createOutside
bool m_createOutside
if true a StoreArray of Strips zero-suppressed is created
Definition: SVDZeroSuppressionEmulatorModule.h:61
Belle2::SVDZeroSuppressionEmulatorModule::event
virtual void event() override
This method is the core of the SVDZeroSuppressionEmulator.
Definition: SVDZeroSuppressionEmulatorModule.cc:69
Belle2::SVDShaperDigit
The SVD ShaperDigit class.
Definition: SVDShaperDigit.h:46
Belle2::SVDZeroSuppressionEmulatorModule::m_storeShaper
StoreArray< SVDShaperDigit > m_storeShaper
store arrays
Definition: SVDZeroSuppressionEmulatorModule.h:66
Belle2::SVDZeroSuppressionEmulatorModule::m_SVDShaperDigitsIN
std::string m_SVDShaperDigitsIN
name of SVDShaperDigits passing ZS
Definition: SVDZeroSuppressionEmulatorModule.h:80
Belle2::SVDNoiseCalibrations
This class defines the dbobject and the method to access SVD calibrations from the noise local runs.
Definition: SVDNoiseCalibrations.h:46
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDZeroSuppressionEmulatorModule::initialize
virtual void initialize() override
Initialize the SVDZeroSuppressionEmulator.
Definition: SVDZeroSuppressionEmulatorModule.cc:54
Belle2::SVDZeroSuppressionEmulatorModule::m_cutSN
float m_cutSN
SN ratio threshold.
Definition: SVDZeroSuppressionEmulatorModule.h:60
Belle2::SVDZeroSuppressionEmulatorModule::m_nSample
int m_nSample
minimum number of samples required to be above threshold
Definition: SVDZeroSuppressionEmulatorModule.h:59
Belle2::SVDZeroSuppressionEmulatorModule::SVDZeroSuppressionEmulatorModule
SVDZeroSuppressionEmulatorModule()
Constructor defining the parameters.
Definition: SVDZeroSuppressionEmulatorModule.cc:25
Belle2::SVDZeroSuppressionEmulatorModule::passesZS
bool passesZS(const SVDShaperDigit *)
returns true if the strip passes the ZS cut
Definition: SVDZeroSuppressionEmulatorModule.cc:91
Belle2::SVDZeroSuppressionEmulatorModule::m_selectorOUT
SelectSubset< SVDShaperDigit > m_selectorOUT
selector of the subset of the SVDShaperDigit not passing ZS
Definition: SVDZeroSuppressionEmulatorModule.h:69
Belle2::SVDZeroSuppressionEmulatorModule::m_SVDShaperDigitsOUT
std::string m_SVDShaperDigitsOUT
name of SVDShaperDigits NOT passing ZS
Definition: SVDZeroSuppressionEmulatorModule.h:81
Belle2::SVDZeroSuppressionEmulatorModule::m_storeShaperDigitsName
std::string m_storeShaperDigitsName
Name of the collections to use for the SVDShaperDigits.
Definition: SVDZeroSuppressionEmulatorModule.h:79
Belle2::SVDZeroSuppressionEmulatorModule::m_FADCmode
bool m_FADCmode
if true, same algorithm as on FADC is applied
Definition: SVDZeroSuppressionEmulatorModule.h:82