Belle II Software  release-05-01-25
TOPChannelMaskerModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: *
7  * Jan Strube (jan.strube@pnnl.gov) *
8  * Sam Cunliffe (sam.cunliffe@desy.de) *
9  * Marko Staric *
10  * *
11  * This software is provided "as is" without any warranty. *
12  **************************************************************************/
13 
14 #pragma once
15 
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/datastore/StoreObjPtr.h>
19 #include <top/dataobjects/TOPDigit.h>
20 #include <top/dataobjects/TOPAsicMask.h>
21 #include <framework/database/DBObjPtr.h>
22 #include <framework/database/DBArray.h>
23 #include <top/dbobjects/TOPCalChannelMask.h>
24 #include <top/dbobjects/TOPPmtInstallation.h>
25 #include <top/dbobjects/TOPPmtQE.h>
26 #include <top/dbobjects/TOPCalChannelRQE.h>
27 #include <top/dbobjects/TOPCalChannelThresholdEff.h>
28 #include <top/dbobjects/TOPCalChannelT0.h>
29 #include <top/dbobjects/TOPCalTimebase.h>
30 
31 namespace Belle2 {
41  class TOPChannelMaskerModule : public Module {
42 
43  public:
44 
49 
53  virtual void initialize() override;
54 
60  virtual void beginRun() override;
61 
66  virtual void event() override;
67 
68  private:
69 
70  // steering parameters
71  bool m_printMask;
75  // collections
76  StoreArray<TOPDigit> m_digits;
77  StoreObjPtr<TOPAsicMask> m_eventAsicMask;
79  // database objects for masking
80  TOPAsicMask m_savedAsicMask;
81  DBObjPtr<TOPCalChannelMask> m_channelMask;
85  // database objects used only to check "hasChanged" status
91  };
93 }
Belle2::TOPChannelMaskerModule::m_pmtInstalled
OptionalDBArray< TOPPmtInstallation > m_pmtInstalled
PMT installation data.
Definition: TOPChannelMaskerModule.h:97
Belle2::TOPChannelMaskerModule::m_timebase
DBObjPtr< TOPCalTimebase > m_timebase
timebase
Definition: TOPChannelMaskerModule.h:94
Belle2::TOPChannelMaskerModule::event
virtual void event() override
event method: removes channels from the reconstruction pdf, flags hits from noisy channels as junk
Definition: TOPChannelMaskerModule.cc:78
Belle2::TOPChannelMaskerModule::m_maskUncalibratedTimebase
bool m_maskUncalibratedTimebase
if true mask timebase-uncalibrated channels
Definition: TOPChannelMaskerModule.h:84
Belle2::TOPChannelMaskerModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPChannelMaskerModule.h:87
Belle2::TOPChannelMaskerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: TOPChannelMaskerModule.cc:63
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::TOPChannelMaskerModule::m_channelT0
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0
Definition: TOPChannelMaskerModule.h:93
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPChannelMaskerModule::m_channelRQE
DBObjPtr< TOPCalChannelRQE > m_channelRQE
channel relative quantum effi.
Definition: TOPChannelMaskerModule.h:99
Belle2::TOPChannelMaskerModule::m_pmtQEData
OptionalDBArray< TOPPmtQE > m_pmtQEData
quantum efficiencies
Definition: TOPChannelMaskerModule.h:98
Belle2::TOPChannelMaskerModule::m_printMask
bool m_printMask
if true print channel mask as set in rec
Definition: TOPChannelMaskerModule.h:82
Belle2::TOPChannelMaskerModule::m_savedAsicMask
TOPAsicMask m_savedAsicMask
the default ones or a copy from data store
Definition: TOPChannelMaskerModule.h:91
Belle2::OptionalDBArray
Optional DBArray: This class behaves the same as the DBArray except that it will not raise errors whe...
Definition: DBArray.h:107
Belle2::TOPChannelMaskerModule::TOPChannelMaskerModule
TOPChannelMaskerModule()
Constructor: Sets the description of the module.
Definition: TOPChannelMaskerModule.cc:36
Belle2::TOPChannelMaskerModule::initialize
virtual void initialize() override
initialize method: registers datastore objects (the TOP hits)
Definition: TOPChannelMaskerModule.cc:53
Belle2::TOPChannelMaskerModule::m_eventAsicMask
StoreObjPtr< TOPAsicMask > m_eventAsicMask
masked asics in firmware
Definition: TOPChannelMaskerModule.h:88
Belle2::TOPChannelMaskerModule::m_thresholdEff
DBObjPtr< TOPCalChannelThresholdEff > m_thresholdEff
channel threshold effi.
Definition: TOPChannelMaskerModule.h:100
Belle2::TOPChannelMaskerModule::m_channelMask
DBObjPtr< TOPCalChannelMask > m_channelMask
list of dead/noisy channels
Definition: TOPChannelMaskerModule.h:92
Belle2::TOPChannelMaskerModule::m_maskUncalibratedChannelT0
bool m_maskUncalibratedChannelT0
if true mask channelT0-uncalibrated channels
Definition: TOPChannelMaskerModule.h:83