Belle II Software  release-05-01-25
PXDRawHotPixelMaskCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Benjamin Schwenker *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/StoreArray.h>
14 #include <pxd/dataobjects/PXDRawHit.h>
15 #include <pxd/dataobjects/PXDDAQStatus.h>
16 #include <calibration/CalibrationCollectorModule.h>
17 #include <string>
18 
19 namespace Belle2 {
32  class PXDRawHotPixelMaskCollectorModule : public CalibrationCollectorModule {
33 
34  public:
35 
40  void prepare() override final;
41  void collect() override final;
42 
43  private:
44 
49 
51  std::string m_storeRawHitsName;
52 
54  int m_0cut;
55 
57  inline bool goodHit(const PXDRawHit& rawhit) const
58  {
59  short u = rawhit.getColumn();
60  bool goodU = (u == std::min(std::max(u, short(0)), short(249)));
61  short v = rawhit.getRow();
62  bool goodV = (v == std::min(std::max(v, short(0)), short(767)));
63  return (goodU && goodV);
64  }
65  };
67 }
Belle2::PXDRawHotPixelMaskCollectorModule::m_0cut
int m_0cut
Minimum charge (ADU) for detecting a hit.
Definition: PXDRawHotPixelMaskCollectorModule.h:62
Belle2::PXDRawHotPixelMaskCollectorModule::m_storeRawHitsName
std::string m_storeRawHitsName
Name of the collection to use for PXDRawHits.
Definition: PXDRawHotPixelMaskCollectorModule.h:59
Belle2::PXDRawHotPixelMaskCollectorModule::PXDRawHotPixelMaskCollectorModule
PXDRawHotPixelMaskCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: PXDRawHotPixelMaskCollectorModue.cc:32
Belle2::PXDRawHit
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Definition: PXDRawHit.h:36
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::PXDRawHotPixelMaskCollectorModule::m_pxdRawHit
StoreArray< PXDRawHit > m_pxdRawHit
Required input for PXDRawHit.
Definition: PXDRawHotPixelMaskCollectorModule.h:54
Belle2::PXDRawHotPixelMaskCollectorModule::prepare
void prepare() override final
Replacement for initialize(). Register calibration dataobjects here as well.
Definition: PXDRawHotPixelMaskCollectorModue.cc:42
Belle2::PXDDAQStatus
The PXD DAQ Status class.
Definition: PXDDAQStatus.h:45
Belle2::PXDRawHotPixelMaskCollectorModule::goodHit
bool goodHit(const PXDRawHit &rawhit) const
Utility function to check pixel coordinates.
Definition: PXDRawHotPixelMaskCollectorModule.h:65
Belle2::PXDRawHotPixelMaskCollectorModule::collect
void collect() override final
Replacement for event(). Fill you calibration data objects here.
Definition: PXDRawHotPixelMaskCollectorModue.cc:97
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::PXDRawHotPixelMaskCollectorModule::m_storeDaqStatus
StoreObjPtr< PXDDAQStatus > m_storeDaqStatus
Required input for PXD Daq Status.
Definition: PXDRawHotPixelMaskCollectorModule.h:56