Belle II Software  release-05-01-25
TOPAsicMask.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 #include <vector>
15 
16 namespace Belle2 {
25  class TOPAsicMask: public RelationsObject {
26 
27  public:
28 
32  TOPAsicMask()
33  {}
34 
39  void set(const std::vector<unsigned short>& masks) {m_masks = masks;}
40 
45  const std::vector<unsigned short>& get() const {return m_masks;}
46 
52  bool isActive(int moduleID, unsigned channel) const;
53 
54  private:
55 
56  std::vector<unsigned short> m_masks;
58  ClassDef(TOPAsicMask, 1);
60  };
61 
62 
64 } // end namespace Belle2
Belle2::TOPAsicMask::ClassDef
ClassDef(TOPAsicMask, 1)
ClassDef.
Belle2::TOPAsicMask::TOPAsicMask
TOPAsicMask()
Default constructor.
Definition: TOPAsicMask.h:40
Belle2::TOPAsicMask::get
const std::vector< unsigned short > & get() const
Returns bit fields of masked ASIC's.
Definition: TOPAsicMask.h:53
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPAsicMask::m_masks
std::vector< unsigned short > m_masks
bit fields of masked ASIC's (one per BS)
Definition: TOPAsicMask.h:64
Belle2::TOPAsicMask::isActive
bool isActive(int moduleID, unsigned channel) const
Returns true if channel is not explicitely labeled as masked.
Definition: TOPAsicMask.cc:27
Belle2::TOPAsicMask
Class to store bit fields of masked ASICs, as reported in raw data.
Definition: TOPAsicMask.h:33
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TOPAsicMask::set
void set(const std::vector< unsigned short > &masks)
Sets bit fields of masked ASIC's.
Definition: TOPAsicMask.h:47